Master Rust Language Efficiently in One Month

Master Rust Language Efficiently in One Month

Rust is not a simple language; it maximizes both safety and performance. But don’t be intimidated by its reputation. Follow this roadmap, and in a month, you can transform from a novice to a Rust expert. Let’s start planning this learning journey! Week 1: Build a Strong Foundation Honestly, the first time I saw Rust … Read more

Building Stock Market Engine From Scratch in Rust

Building Stock Market Engine From Scratch in Rust

This article is translated from Medium Original: Building Stock Market Engine from scratch in Rust https://github.com/Harshil-Jani/stock_engine_rs Medium This article is relatively basic, but it is very helpful for beginners to understand a simple trading system prototype. From the perspective of the exchange matching engine, the main structure is shown in the figure below: The four … Read more

Boost Frontend Development Efficiency by 300% with Rust-Web-Sys

Boost Frontend Development Efficiency by 300% with Rust-Web-Sys

In frontend development, calling Web APIs is an inevitable operation, especially when we want to interact with the browser environment. Today, let’s talk about how to use Rust-Web-Sys to call Web APIs and see how we can boost our frontend development efficiency by 300%. What is Rust-Web-Sys? Rust-Web-Sys is a Rust library for generating interactions … Read more

My Experience Learning Rust as a Web Developer

My Experience Learning Rust as a Web Developer

At that time, I was preparing to develop a new desktop application. Can Rust really save me from being replaced by AI? Can I become the legendary “10x engineer”? As a web developer, I feel a bit uneasy about whether I can be considered a “real developer.” Moreover, since this is a desktop application, I … Read more

Introduction to Rust Programming: Error Handling and User Feedback

Introduction to Rust Programming: Error Handling and User Feedback

14.2 Error Handling and User Feedback When building command-line tools, error handling and user feedback are crucial components. Proper error handling not only ensures the stability of the program but also provides users with clear and friendly feedback, helping them understand how to use the program and how to fix errors. Rust itself provides a … Read more

Introduction to Rust Programming: Project Structure and Modular Design

Introduction to Rust Programming: Project Structure and Modular Design

14.3 Project Structure and Modular Design When building command-line tools, a reasonable project structure and modular design are key to ensuring the project’s scalability, maintainability, and readability. Rust’s module system is very powerful, allowing you to organize your code into multiple files and modules for better management of complex projects. In this section, we will … Read more

Lapce: A High-Performance Code Editor Written in Pure Rust

Lapce: A High-Performance Code Editor Written in Pure Rust

Lapce is a code editor written in pure Rust, rapidly becoming a favorite among developers due to its outstanding performance, rich features, and modern design. This article will delve into the core characteristics, advantages, and future development directions of Lapce, showcasing the charm of this next-generation code editor.

In-Depth Understanding of Rust’s Asynchronous Lifetimes

In-Depth Understanding of Rust's Asynchronous Lifetimes

In-Depth Understanding of Rust’s Asynchronous Lifetimes Recently, I researched Rust’s asynchronous programming and found it to be both interesting and complex. Today, let’s talk about the lifetime issues in Rust’s asynchronous programming, which can be quite a headache for many. Basic Concepts of Asynchronous Programming To discuss asynchronous programming, we first need to clarify what … Read more

Fast LaTeX Formatting Tool Written in Rust

Fast LaTeX Formatting Tool Written in Rust

Click 👇“LaTeX Studio” Follow the public account Start a beautiful and exquisite research life with LaTeX! Written in Rust, this is a fast LaTeX formatting tool: ⚡ Extremely fast runtime performance🔧 Minimal configuration required📟 Command line interface📜 Handles LaTeX file types .tex, .bib, .cls, and .sty🦀 Completely written in safe Rust Source: https://github.com/WGUNDERWOOD/tex-fmt Click 👇“LaTeX … Read more

TonboLite – SQLite Extension Based on Tonbo

TonboLite - SQLite Extension Based on Tonbo

Swiftide – Develop AI Agent with Rust Example of searching code with ripgrep. #[swiftide_macros::tool( description = "Searches code", param(name = "code_query", description = "The code query") )] async fn search_code( context: &dyn AgentContext, code_query: &str, ) -> Result<ToolOutput, ToolError> { let command_output = context .exec_cmd(&Command::shell(format!("rg '{code_query}'"))) .await?; Ok(command_output.into()) } agents::Agent::builder() .llm(&openai) .tools(vec![search_code()]) .build()? .query("In what … Read more