Rust ================== ## Resources - [http://xion.io/post/code/rust-iter-patterns.html]() - [https://deterministic.space/rust-cli-tips.html]() Optimization: use `RUSTFLAGS="-C target-cpu=native"` to take advantage of CPU special features. (via http://vfoley.xyz/rust-compilation-tip/) For local rust/std documentation, do `rustup doc`. ## Little tricks Run tests with stdout output: cargo test -- --nocapture To run tests with logging enabled (eg, with `env_logger`), make sure you add `env_logger::init()` to the test function itself.