Shipping Rust means more than compiling—configure releases, logging, metrics, CI, and dependency auditing.
Checklist
cargo build --releasefor optimized binaries- Structured logging (
tracing,log) cargo audit/denyfor supply chain- Clippy and rustfmt in CI
- Document unsafe invariants if any unsafe blocks exist
Important interview questions and answers
- Q: How reduce binary size?
A: Release profile, strip symbols, LTO, avoid unused features in dependencies.
Self-check
- Why run clippy in CI?
- What does --release change?