cargo-{install,uninstall,search}: add page (#11351)

This commit is contained in:
Lena
2023-11-01 06:12:12 +01:00
committed by GitHub
parent ab8e6f24c4
commit 03161cf052
3 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# cargo install
> Build and install a Rust binary.
> More information: <https://doc.rust-lang.org/cargo/commands/cargo-install.html>.
- Install a package from <https://crates.io> (the version is optional - latest by default):
`cargo install {{package}}@{{version}}`
- Install a package from the specified Git repository:
`cargo install --git {{repo_url}}`
- Build from the specified branch/tag/commit when installing from a Git repository:
`cargo install --git {{repo_url}} --{{branch|tag|rev}} {{branch_name|tag|commit_hash}}`
- List all installed packages and their versions:
`cargo install --list`