Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

25
cargo-install Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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`