snippetbashTip
cargo search — Search for packages on <https://crates.io>. The crates are displayed along with descriptions in TOML
Viewed 0 times
httpscommandcratessearchclicargo searchforpackages
Problem
How to use the
cargo search command: Search for packages on <https://crates.io>. The crates are displayed along with descriptions in TOML format suitable for copying into Cargo.toml. More information: <https://doc.rust-lang.org/cargo/commands/cargo-search.html>.Solution
cargo search — Search for packages on <https://crates.io>. The crates are displayed along with descriptions in TOML format suitable for copying into Cargo.toml. More information: <https://doc.rust-lang.org/cargo/commands/cargo-search.html>.Search for packages:
cargo search {{query}}Show
n results (default: 10, max: 100):cargo search --limit {{n}} {{query}}Code Snippets
Search for packages
cargo search {{query}}Show `n` results (default: 10, max: 100)
cargo search --limit {{n}} {{query}}Context
tldr-pages: common/cargo search
Revisions (0)
No revisions yet.