393 private links
A thin HTTP API interface pattern.
This is what we often build in UIs with JS to interface with backends.
A faster implementation of the rust datetime library
A rust example project using SQLx and sqlite.
Read the pp_dataserver later to learn how to use Axum with a SQLite database.
A lightweight version of the builder pattern
anyhow works well.
A lot of confusion around unwrap(), I think, comes from well meaning folks saying things like “don’t use unwrap(),” when what they actually mean is “don’t use panicking as an error handling strategy.”
Of course, when possible, pushing runtime invariants to compile-time invariants is generally preferred. Then one doesn’t have to worry about unwrap() or assert! or anything else. The invariant is maintained by virtue of the program compiling. Rust is exceptionally well suited to pushing a lot of runtime invariants to compile-time invariants. Indeed, its entire mechanism of maintaining memory safety depends crucially on it.
A lightweight version of the heavy clap
Crates relying on a lot of crates are potential security flaws
An alternative to nginx. Is it needed though? Maybe I don't know much and my use cases of nginx are pretty limited. Let's see!
An awesome guide about the newtypes pattern. Great writing btw!
The name LOL.
volkswagen detects when your tests are executed in a CI-environment and makes them pass.
For educational purposes
A great example of how rust shines and how to use it.
A lightweight 70 KB implementation of the Jinja template engine. It was 130MB with the python environment and moustache divided the payload size by 1857! It is useful to run it for CI/CD pipelines if a subset of Jinja is needed.
rust programming competition called "Getting Lucky" where you try to write the most horribly unsound code with as much undefined behavior as possible that nonetheless compiles to an executable that always runs successfully.
Eventuell die unsafe-Pakete markieren?
Start a process and populate it with a .env file