The Intricate Relationship Between let, mut, and const in Rust

The Intricate Relationship Between let, mut, and const in Rust

This article is suitable for anyone who wants to understand Rust variable declarations—even if you haven’t figured out whether a “variable” is male or female. Hello everyone, I am your emotional observer, Xiao R. Today, we won’t talk about love or code performance; instead, let’s discuss— the “marriage system” in Rust. That’s right, you read … Read more

Open Source Tutorial: rust-raspberrypi-OS-tutorials – Building an Operating System on Raspberry Pi from Scratch Using Rust

Open Source Tutorial: rust-raspberrypi-OS-tutorials - Building an Operating System on Raspberry Pi from Scratch Using Rust

rust-raspberrypi-OS-tutorials is • An open-source tutorial series, where each chapter is a standalone bootable kernel image. • Each chapter builds upon the previous one, adding new features (serial output, virtual memory, exception handling, etc.). • The target is ARMv8-A (AArch64), primarily running on Raspberry Pi 3 and 4. • System development using Rust balances performance … Read more

How to Gracefully Handle HTTP Server Shutdown in Rust

How to Gracefully Handle HTTP Server Shutdown in Rust

Gracefully shutting down or restarting an HTTP server allows existing client requests that have not been disconnected to be properly completed, avoiding inconsistencies in business state caused by abrupt program termination during logic execution. Now, let’s take a look at how to correctly handle graceful shutdown when using the Rust axum HTTP framework. Of course, … Read more

Dynamic Dispatch and Generics in Rust: Making Informed Choices

Dynamic Dispatch and Generics in Rust: Making Informed Choices

Introduction In the world of Rust programming, we often need to choose between dynamic dispatch and static dispatch (achieved through generics and monomorphism). This choice is not always about performance, but rather a trade-off between code design and flexibility. This article will take you deep into the implementation principles and use cases of these two … Read more

A Step-by-Step Tutorial for Developing an Operating System in Rust for Raspberry Pi (Raspberry Pi 3 / 4)

A Step-by-Step Tutorial for Developing an Operating System in Rust for Raspberry Pi (Raspberry Pi 3 / 4)

rust-raspberrypi-OS-tutorials is a step-by-step tutorial for developing an operating system in Rust, aimed at Raspberry Pi (Raspberry Pi 3 / 4). Each chapter (tutorial) is a bootable, standalone kernel version, and subsequent chapters expand on the functionality of the previous ones. The author breaks down common OS tasks from the basics of “writing characters to … Read more

ESP32 Microcontroller LED Control with Rust

ESP32 Microcontroller LED Control with Rust

ESP32 Microcontroller LED Control with Rust When you step into the world of Rust embedded development, controlling the ESP32 microcontroller to light up an LED and make it blink regularly feels like your first conversation with hardware. Based on the previous Rust embedded ESP32 “Hello World”, we will modify the code. Modify the Code Add … Read more

Implementing Embedded Programming on ESP32 Using Rust

Implementing Embedded Programming on ESP32 Using Rust

With the rapid development of the Internet of Things and embedded systems, developers are increasingly demanding efficient and reliable programming interfaces. The Rust programming language, known for its excellent memory safety and concurrency performance, is gaining more attention in the embedded development field. The esp-hal project is a perfect example of the combination of Rust … Read more

Rust Embedded Development with ESP32 Microcontroller

Rust Embedded Development with ESP32 Microcontroller

Rust Embedded Development with ESP32 Microcontroller Learn Rust embedded development with the ESP32 microcontroller, starting with printing “hello world”. Setting Up the Environment: Relevant link: https://docs.espressif.com/projects/rust/book/ Install <span>rust</span> https://www.rust-lang.org/zh-CN/tools/install Verify successful installation: cargo -V Install <span>espup</span> cargo install espup –locked <span>espup</span> Install related dependencies espup install Install <span>ldproxy</span> related configuration cargo install ldproxy Install <span>esp-generate</span> … Read more

Feasibility of Pluginization in Tauri Applications for GUI Development with Rust

Feasibility of Pluginization in Tauri Applications for GUI Development with Rust

There are several approaches to pluginization, including <span>Webview</span>, iframe, and shadow DOM. Essentially, a <span>sandbox</span> is needed to load untrusted third-party resources without affecting the main application. Webview Whether in Tauri or Electron, the structure of the application window is generally as follows: +————————————-+ | Window | | +——————————-+ | | | WindowApp | | … Read more

The Way of Rust: Seeking the True Meaning of Software Development through Mastery and Restraint

The Way of Rust: Seeking the True Meaning of Software Development through Mastery and Restraint

In today’s rapidly evolving programming language ecosystem, Rust is undoubtedly a shining star. It has won the title of “Most Loved Programming Language” in the Stack Overflow Developer Survey for several consecutive years, attracting the attention of countless developers from diverse backgrounds. However, amidst this learning frenzy, a crucial question needs to be addressed: what … Read more