Our great sponsors
-
Typically programs are configured through a config object. People like to use things like clap, structopt, or argh for passing in arguments through the CLI https://github.com/google/argh. You can also use the env! macro for embedding values in at compile time, or by going through the std::env::var infrastructure for runtime env vars.
-
For sure! Actually, it has been suggested to be to the standard library. Right now, it's available as the experimental feature once_cell.
-
SonarLint
Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.
-
You may be pleased to learn that this is in the works as std::lazy::SyncLazy -- currently feature gated because it's unstable behind RFC 2788.
-
Try rouille. It's a threaded web server (no async).
-
By that metric, you should claim that Rust is 15 years old, because Graydon started it July 23rd, 2006 as a personal project.
-
Why not use something like actix-web that is more "complete"?
-
I've been messing around learning web dev in rust recently, feel free to check out my hello-actix repo for some guidance. The most complete example there is the sqlite project.
-
Scout APM
Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
-
Maybe you would like using rocket, which is following a more batteries included approach.
-
parking_lot
Compact and efficient synchronization primitives for Rust. Also provides an API for creating custom synchronization primitives. (by faern)
parking_lot is being considered for replacing the mutexes in std. Last I checked the libs team did a review of its internals and left some feedback for the implementor to address before it could be considered further: https://github.com/faern/parking_lot/pull/1