cargo install cargo-check
cargo check
cargo install cargo-edit
cargo list env_logger ~0.3 hyper ~0.7 json_macro 0.1.1 log ~0.3 lua git: "https://github.com/jcmoyer/rust-lua53" mould path: "C:\\DEVELOPMENT\\rust-dev\\mould" r2d2 0.6.3 r2d2_sqlite 0.0.4 rusqlite 0.6.0 rust-crypto 0.2.34 rustc-serialize ~0.3.16 static-server path: "C:\\DEVELOPMENT\\rust-dev\\static-server" uuid 0.1.18
cargo add <crate> [--dev|--build|--optional] [--vers=<ver>|--git=<uri>|--path=<uri>] [options]
cargo install cargo-graph
cargo graph > deps.dot
dot deps.dot -Tpng -o deps.png
cargo install cargo-watch
cargo watch
cargo help watch Usage: cargo-watch [watch] [options] cargo watch [options] cargo-watch [watch] [<args>...] cargo watch [<args>...] Options: -h, --help Display this message `cargo watch` can take one or more arguments to pass to cargo. For example, `cargo watch "test ex_ --release"` will run `cargo test ex_ --release` If no arguments are provided, then cargo will run `build` and `test`
cargo install cargo-count
cargo count
Gathering information... Language Files Lines Blanks Comments Code -------- ----- ----- ------ -------- ---- TOML 1 19 1 0 18 Python 1 63 11 5 47 Rust 7 824 89 17 718 HTML 41218 5218543 1016734 239837 3961972 CSS 5 907 130 38 739 C 37 19303 2665 1964 14673 C Header 25 3970 1049 1012 1907 C++ Header 1 9 1 3 5 JavaScript 788 4024 591 155 3278 -------- ----- ----- ------ -------- ---- Totals: 42083 5247662 1021271 243031 3983357
cargo install rustfmt
cargo fmt
ls -lah ~/.cargo/bin/ 33M drwxr-xr-x 1 denis_000 denis_000 0 15 12:17 . drwxr-xr-x 1 denis_000 denis_000 0 15 16:37 .. -rwxr-xr-x 1 denis_000 denis_000 3,5M 15 12:13 cargo-add.exe -rwxr-xr-x 1 denis_000 denis_000 2,2M 15 12:04 cargo-check.exe -rwxr-xr-x 1 denis_000 denis_000 3,3M 15 16:44 cargo-count.exe -rwxr-xr-x 1 denis_000 denis_000 2,4M 15 12:03 cargo-fmt.exe -rwxr-xr-x 1 denis_000 denis_000 3,1M 15 12:17 cargo-graph.exe -rwxr-xr-x 1 denis_000 denis_000 3,2M 15 12:13 cargo-list.exe -rwxr-xr-x 1 denis_000 denis_000 3,2M 15 12:12 cargo-rm.exe -rwxr-xr-x 1 denis_000 denis_000 3,3M 15 16:37 cargo-watch.exe -rwxr-xr-x 1 denis_000 denis_000 8,4M 15 12:03 rustfmt.exe
Source: https://habr.com/ru/post/275157/
All Articles