Escribe para buscar…

Cargo

Esta página todavía no se ha traducido — se muestra en su idioma original:English

Install

From the crate’s directory:

shell
cargo install --path .

This builds in release mode and drops the binary into ~/.cargo/bin/ (make sure that’s on your PATH).

Useful flags:

  • --force — reinstall over an existing version
  • --locked — respect Cargo.lock exactly
  • --debug — skip release optimizations for faster install
  • --bin <name> — pick a specific binary if the crate has several
  • --root <dir> — install somewhere other than ~/.cargo

To uninstall: cargo uninstall <crate-name> (the name from Cargo.toml, not the path).