How to use compression algorithms in Rust
Pure Rust implementations of many compression algorithms exist and waiting for you to try them out. This article describes what’s available, when to choose one over another and how to use them.
How to accept a file as a command-line argument in Rust
Use std::path::PathBuf instead of String as the type to provide to an Args struct for clap.
Compile-time assertions
Sometimes, you want to add checks to ensure that your constants are protected from typos or other logic errors. Here is how to implement compile-time assertions in Rust.
Explaining Rust’s Deref trait
Deref is an interesting one. Depending on your perspective, or mood, it either provides a lot of frustration because of hidden control flow or a lot of delight because it adds a lot of convenience.