Category Rust Programming

Tokio Application in Rust

Tokio Application in Rust

Introduction Tokio application in rust is an asynchronous runtime and network application framework. This is developed for fast development and highly scalable deployments of clients and servers in the Rust programming language. It offers the building blocks required for writing…

Rust HTTP Client

HTTP Client with Reqwest by using Rust

Introduction The reqwest crate delivers a suitable, higher-level HTTP Client. It controls several of the things that record people just imagine an HTTP client to do for them. The reqwest::Client is asynchronous. The reqwest::blocking API can be more useful for…

Rust Refactoring to enhance Modularity

Introduction Producing reliable system software is challenging. Pointer manipulation, mutable heap data, and concurrency are typically employed to realize high performance but cause subtle bugs that are notoriously difficult to uncover and reproduce. The Rust programing language resolves this problem by preventing…

Iterators Pattern in Rust

Iterators Pattern in Rust

Handling a Series of Items with Iterators The iterator form permits us to perform some tasks on a sequence of items in turn. An iterator is in authority for the logic of iterating over each item. It is also responsible…

Rust Macros and Functions

Rust Macros and Functions

Introduction The term macro refers to a family of features in Rust: declarative macros with macro_rules! and three sorts of procedural macros: Custom #[derive] macros that specify code added with the derive attribute used on structs and enums Attribute-like macros…

Rust Regular References with the Deref Trait

Introduction Implementing the Deref trait permits us to customize the behavior of the dereference operator, * (as against the multiplication or glob operator). By implementing Deref in such how that a wise pointer is often treated kind of a daily reference, we’ll write code that operates on…

Building,Flashing and Debugging Embedded Rust Program

Building,Flashing and Debugging Embedded Rust Program

Building Program Cargo provides 4 different targets that cover the different processor families within that architecture. thumbv6m-none-eabi, for the Cortex-M0 and Cortex-M1 processors thumbv7m-none-eabi, for the Cortex-M3 processor thumbv7em-none-eabi, for the Cortex-M4 and Cortex-M7 processors thumbv7em-none-eabihf, for the Cortex-M4F and Cortex-M7F…