CARGO-INSTALL(1) General Commands Manual CARGO-INSTALL(1) (NAME) cargo-install - Rust (SYNOPSIS) cargo install [] crate[@version] cargo install [] --path path cargo install [] --git url [crate] cargo install [] --list (DESCRIPTION) Cargo . [[bin]] [[example]] bin . (examples) . : o --root o CARGO_INSTALL_ROOT o Cargo install.root o CARGO_HOME o $HOME/.cargo . crates.io --git --path --registry . ( crates.io git ) crate . crates.io --version git (revision) . --bin --example . Cargo . Cargo : o . o . o (features) . o (--profile). o (--target). --path . --force Cargo . crates.io --git . CARGO_TARGET_DIR . (CI) ..SS " (Dealing with the Lockfile)" Cargo.lock . Cargo . --locked Cargo Cargo.lock ( ) . (reproducible builds) . . --locked . Cargo 1.37 Cargo.lock Cargo.lock . (Configuration Discovery) . . $CARGO_HOME/config.toml . --path $PATH $PATH/.cargo/config.toml . (OPTIONS) (Install Options) --vers version, --version version . ~1.2 Cargo . ( ^ ~) MAJOR.MINOR.PATCH Cargo (caret) . --git url Git crate . --branch branch (branch) git . --tag tag (tag) git . --rev sha git . --path path crate . --list . -n, --dry-run () . -f, --force crate . . rustc . --no-track Cargo . Cargo . Cargo --force . Cargo Cargo . --bin name . --bins . . --example name . --examples . --root dir . --registry registry registry . registry Cargo . registry registry.default crates-io . --index index (URL) registry . . default . . -F features, --features features . package-name/feature-name . . --all-features . --no-default-features default . (Compilation Options) --target triple . . --- . : o rustc --print target-list. o "host-tuple" . (cross-compiling) ( xtask ). o . Custom Target Lookup Path . build.target config value . Cargo . build cache . --target-dir directory . CARGO_TARGET_DIR build.target-dir config value . . --path target --target-dir . --debug dev release. --profile . --profile name . . --timings . cargo-timing.html target/cargo-timings . . . --ignore-rust-version rust-version . --locked Cargo.lock . Cargo : o lock . o Cargo lock . (deterministic) CI . --offline Cargo . Cargo . Cargo . . Cargo crate (index) . cargo-fetch(1) . net.offline . --frozen --locked --offline. (Miscellaneous Options) -j N, --jobs N . build.jobs . . . default . 0 . --keep-going crate . fails works cargo install -j1 ( Cargo ) cargo install -j1 --keep-going . (Display Options) -v, --verbose . << >> . term.verbose . -q, --quiet (log) cargo . term.quiet . --color when . : o auto (): . o always: . o never: . term.color . --message-format fmt . . : o human (): . short json . o short: . human json . o json: JSON stdout. . human short . o json-diagnostic-short: rendered JSON <<>> rustc . human short . o json-diagnostic-rendered-ansi: rendered JSON ANSI rustc . human short . o json-render-diagnostics: Cargo rustc JSON Cargo JSON rustc . JSON Cargo rustc . human short . +toolchain Cargo rustup cargo + (toolchain) rustup ( +stable +nightly). rustup . --config KEY=VALUE PATH Cargo . TOML KEY=VALUE . . . -C PATH . cargo (Cargo.toml) .cargo/config.toml . : cargo -C path/to/my-project build. nightly -Z unstable-options (: #10098 ). -h, --help . -Z flag ( nightly) Cargo. cargo -Z help . (ENVIRONMENT) Cargo . (EXIT STATUS) o 0: Cargo . o 101: Cargo . (EXAMPLES) 1. crates.io: cargo install ripgrep 2. : cargo install --path . 3. : cargo install --list cargo(1), cargo-uninstall(1), cargo-search(1), cargo-publish(1) CARGO-INSTALL(1)