In Rust, we could get, list, or update environment variables using functions provided in the std::env module.
Rust Framework Rocket Goes Stable With No Exact Date
Rust framework Rocket goes stable, starting with version 0.5 and Rust 1.45.0. No doubt, it is one of the best frameworks out there. However, it requires Rust Nightly. When I started learning Rust, I needed to choose between Actix-Web and
Rust Find Duplicate Files With The Same Digests
This post shows how to find duplicate files in Rust with the same digests. The codes display list of duplicate files under the same digest. Personal Use Case I have a lot of files stored in Google Drive. I plan
Rust Array Size Limit To 32 No More In 1.47.0 Release
Before 1.47.0, there is the Rust array size limit size of 32. This is evident when we get the E0277 error that has the following message.
1 | arrays only have std trait implementations for lengths 0..=32 |
When Do We Get The Error? Personally, I have never encountered this error
Rust Generics With Structs, Functions, Methods, and Enums
Rust Generics is a language feature for code reuse in multiple contexts using different actual types for Structs, Functions, Methods, and Enums. Moreover, they allow for concise and clean codes by minimizing boilerplates while providing type-safety. When we use Generics,
Rust IDE Plugin For Visual Studio Code – Install And Use
Have you been looking for a Rust IDE? Unfortunately, there are no IDEs specifically written for Rust. There are, however, Rust IDE plugins (or extensions) for IntelliJ IDEA and Visual Studio Code IDE. This post shows how to install and
Rust Plugin for IntelliJ IDEA – Install And Use
By default, IntelliJ IDEA does not support Rust. However, there is a plugin that we can use to start programming in the IDE.
Rust E0384 Cannot Assign Twice To Immutable Variable
By default, variables are immutable in Rust. This design helps up write concurrent codes and avoid common problems that come along with concurrency.
How To Windows Batch Files Using Rust
In Rust, we can use std::process::Command to run a .bat or .cmd file in Windows.
Path Parameter and JSON Payload in Actix-Web
This post demonstrates how to capture path parameters and JSON payload in Actix-web .