Rust
Quick Links - Official Documentation
Learn Rust - Documentation Home
Cookbooks
Scaffolding
cargo new hello
- Create a new project.
Dependencies
- Add dep to
Cargo.toml
and run any cargo command.
Build
cargo clean|build|run
- Clean, build (debug target), run the crate entrypoint.cargo build --release
- Build the optimized, stripped targetRUST_LOG=DEBUG cargo run
- Switch on all debug messages and run.
Logging
RUST_LOG=critical,fserv::index_route=trace cargo run ...
- run a binary with a global and module Rust log level set. See Rust Log Configuration