Rust packaging: Difference between revisions
From wikinotes
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
</blockquote><!-- Remove Dependency --> | </blockquote><!-- Remove Dependency --> | ||
</blockquote><!-- Project Dependencies --> | </blockquote><!-- Project Dependencies --> | ||
= OS Package Management = | |||
<blockquote> | |||
See https://doc.rust-lang.org/cargo/commands/cargo-install.html | |||
<syntaxhighlight lang="bash"> | |||
cargo install my_crate | |||
cargo install my_crate@1.1.1 | |||
cargo install --path /path/to/crate | |||
</syntaxhighlight> | |||
</blockquote><!-- Package Management --> |
Revision as of 21:36, 9 February 2023
Rust primarily uses rust cargo for packaging.
These packages are referred to as crates.
Project Dependencies
Add Dependency
Update Dependency
Remove Dependency
OS Package Management
See https://doc.rust-lang.org/cargo/commands/cargo-install.html
cargo install my_crate cargo install my_crate@1.1.1 cargo install --path /path/to/crate