Rust supports the creation of threads to run code simultaneously using the spawn function and a closure argument.
Function Accepts Struct That Implements A Trait
This post briefly talks about how to create functions that accept struct instances that implement a specific trait.
Using #[non_exhaustive] for Non-exhaustive Enums
Using non-exhaustive enums in one crate prevents codes in other crates from listing all the possible matches in a match expression. It forces developers to use wildcards for future-proofing.
How to use Local Unpublished Crates
At some point in learning Rust, we will encounter the need to create our own crates. They need to go through development and testing before there are published to creates.io. This brief post is about creating and using local unpublished crates.
Pattern Matching for Declarative Macros in Rust
Macros are like functions but only better. They are triggered based on their patterns using pattern matching for declarative Macros. They group together our codes into a unit (or units) and there are 2 types of macros in Rust – declarative and procedural. This brief post is about declarative macros.
Have You Started Using Actix-Web? It May Already Be Dead
Have you started using Actix-Web in your learning of Rust or real projects? Actix-web is now dead and no longer an open-source project. The author has moved it, along with Actix-Net, to his personal GitHub account. He is taking his
10 Alternatives To The Defunct Actix-Web
People have started looking for 10 alternatives to the now-defunct Actix-web since its death. Some may end up forking Actix-web and evolve it into something uniquely theirs. Others may have started porting their applications to other frameworks or even out of Rust.
Actix-Web: The Most Fun Rust Web Framework Is Back!
The most fun Rust web framework is back with a new project leader! I feel relieved by its comeback. Today, I was trying out one of the alternatives to Actix-web. But I was having difficulties making it read and parse
Why You Should Choose Rust Stable Over Nightly
If you are new to Rust, choose Rust Stable over Nightly to make your life and other people’s lives simple – may apply to both crate producers and consumers. There are three types of Rust compiler – Nightly, Beta, and
Vec With Specific Trait Type
In this post, we want to create a Vec instance that only accepts struct instances that implements a particular trait.