Rust Quick Tips
cargo project commands
| command | description |
| cargo run -- --arg --arg1 test | Run executable with commandline arguments |
| cargo test -- --nocapture | Display stdout during testrun |
| cargo doc --no-deps | Create documentation without dependencies |
| cargo doc --open | Create local full documentation and open it in browser |
| cargo fmt | Format sourcecode in project |
| cargo tree | Show dependencie tree |
cargo commands
| command | description |
| cargo install [crate] | Install [crate] |
| cargo uninstall [crate] | Uninstall [crate] |
| cargo install --list | List all installed crates |
cargo plugins
| plugin | description |
| expand | expand Rust macros |
| upgrades | check for outdated dependencies |
| bloat | space used by functions in executable |
| audit | check for security vulnerabilities in libs |
| deb | create debian package |
| update | uodate installed packages |
warning settings
See also the Lint Listing
in the Rust Documentation
#![warn(missing_debug_implementations)]
#![warn(missing_docs)]
Comment on this page!