CARGO-SEARCH(1)
💖 CARGO-SEARCH — bestie's guide to searching packages 💖
okay so this is the cargo-search manual page, and no, it's not some dusty old scroll, it's literally your new fave command for finding crates. Let's get into it 🫶
✨ SYNOPSIS ✨
cargo search [options] [query…]
🌸 DESCRIPTION 🌸
so what does this do? it does a textual search for crates over on https://crates.io. and the way it serves the results back to you? immaculate. every matching crate shows up next to its description in TOML format, all pretty and pre-formatted so you can literally copy-paste it straight into your Cargo.toml manifest. it's giving "i did the work so you don't have to" 💅
🎀 OPTIONS 🎀
🔍 Search Options
--limit limit— caps how many results you get back. default is10, max is100. yes bestie, there IS a ceiling, don't push it 😌--index index— the URL of the registry index you wanna use.--registry registry— the name of the registry to use. registry names live in the Cargo config files (https://doc.rust-lang.org/cargo/reference/config.html). if you don't specify one, the default registry gets used, and that default is decided by theregistry.defaultconfig key — which itself defaults tocrates-io. layers on layers, ik ik 🧚
🖥️ Display Options
-v,--verbose— verbose output. you can pass it twice for "very verbose" output, which throws in extra stuff like dependency warnings and build script output. can also be set with theterm.verboseconfig value (https://doc.rust-lang.org/cargo/reference/config.html).-q,--quiet— do NOT print cargo log messages. silence, but make it fashion 💜. can also be set with theterm.quietconfig value (https://doc.rust-lang.org/cargo/reference/config.html).--color when— controls when colored output kicks in. valid values are:auto(the default): automatically detects whether your terminal can even do color support.always: always display colors. always. no matter what. slay 🌈never: never display colors. monochrome era 🖤
can also be set with the term.color config value (https://doc.rust-lang.org/cargo/reference/config.html).
🧩 Common Options
+toolchain— if Cargo was installed withrustup, and the first argument tocargostarts with+, it gets interpreted as a rustup toolchain name (like+stableor+nightly). peep the rustup documentation (https://rust-lang.github.io/rustup/overrides.html) for the full tea on how toolchain overrides work.--config KEY=VALUEorPATH— overrides a Cargo configuration value. the argument has to be in TOML syntax ofKEY=VALUE, or you can hand it a path to an extra config file instead. this flag is stackable — specify it as many times as you want. check the command-line overrides section (https://doc.rust-lang.org/cargo/reference/config.html#command-line-overrides) for more.-C PATH— changes the current working directory before executing any specified operations. this affects stuff like where cargo looks by default for the project manifest (Cargo.toml), and also the directories it searches when discovering.cargo/config.toml, for example. this option must appear before the command name, likecargo -C path/to/my-project build.
⚠️ heads up bestie: this option is only available on the nightly channel (https://doc.rust-lang.org/book/appendix-07-nightly-rust.html) and it requires the-Z unstable-optionsflag to enable (see #10098,https://github.com/rust-lang/cargo/issues/10098). unstable queen behavior only 👑
-h,--help— prints help information. the classic.-Z flag— unstable (nightly-only) flags for Cargo. runcargo -Z helpfor the details. iykyk 😭
🌿 ENVIRONMENT 🌿
see the reference (https://doc.rust-lang.org/cargo/reference/environment-variables.html) for all the deets on environment variables that Cargo reads. it's a whole vibe in there.
💫 EXIT STATUS 💫
0: Cargo succeeded. we ate and left no crumbs ✨101: Cargo failed to complete. it's not giving, it's giving up 💀
🦋 EXAMPLES 🦋
- search for a package from crates.io:
cargo search serde
🌈 SEE ALSO 🌈
okay that's the whole page bestie, you're officially a cargo search expert, go find some crates and make something iconic 🎀
this was CARGO-SEARCH(1) from the General Commands Manual, part of the Cargo source & version family, dated to match its manpage release. mwah, love u, go touch some crates 💖
📦 where this page comes from
- alpine 3.22: cargo-doc 1.87.0-r1 · Apache-2.0 OR MIT
- alpine 3.23: cargo-doc 1.91.1-r2 · Apache-2.0 OR MIT
- alpine 3.24: cargo-doc 1.96.1-r0 · Apache-2.0 OR MIT
- alpine 3.24: chromium-cargo-doc 1.97.0-r0 · Apache-2.0 OR MIT
- centos-stream 10: cargo 1.99.1-1.el10 · (Apache-2.0 OR MIT) AND (Artistic-2.0 AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND Unicode-3.0)
- centos-stream 9: cargo 1.99.1-1.el9 · (Apache-2.0 OR MIT) AND (Artistic-2.0 AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND Unicode-3.0)
- debian bookworm: cargo-web 1.96.0+dfsg1-1~deb12u2 · MIT OR Apache-2.0
- debian trixie: cargo-web 1.96.0+dfsg1-1~deb13u1+b1 · MIT OR Apache-2.0
- fedora 43: cargo 1.90.0-1.fc43 · (Apache-2.0 OR MIT) AND (Artistic-2.0 AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND Unicode-3.0)
- fedora 43: cargo 1.98.1-1.fc43
- fedora 43: cargo 1.99.0-1.fc43
- fedora 43: cargo 1.99.1-2.fc43 · (Apache-2.0 OR MIT) AND (Artistic-2.0 AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND Unicode-3.0)
- fedora 44: cargo 1.94.1-1.fc44 · (Apache-2.0 OR MIT) AND (Artistic-2.0 AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND Unicode-3.0)
- fedora 44: cargo 1.98.1-1.fc44
- fedora 44: cargo 1.99.0-1.fc44
- fedora 44: cargo 1.99.1-2.fc44 · (Apache-2.0 OR MIT) AND (Artistic-2.0 AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND Unicode-3.0)
- nixos 26.05: cargo 1.95.0
- opensuse-leap 16.0: cargo1.86 1.86.0-160000.2.2 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.86 1.86.0-160000.2.2 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.86 1.86.0-160000.2.2 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.86 1.86.0-160000.2.2 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.87 1.87.0-160000.2.2 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.87 1.87.0-160000.2.2 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.87 1.87.0-160000.2.2 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.87 1.87.0-160000.2.2 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.88 1.88.0-160000.2.2 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.88 1.88.0-160000.2.2 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.88 1.88.0-160000.2.2 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.88 1.88.0-160000.2.2 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.89 1.89.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.89 1.89.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.89 1.89.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.89 1.89.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.90 1.90.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.90 1.90.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.90 1.90.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.90 1.90.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.91 1.91.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.91 1.91.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.91 1.91.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.91 1.91.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.92 1.92.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.92 1.92.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.92 1.92.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.92 1.92.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.93 1.93.0-160000.2.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.93 1.93.0-160000.2.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.93 1.93.0-160000.2.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.93 1.93.0-160000.2.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.94 1.94.1-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.94 1.94.1-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.94 1.94.1-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.94 1.94.1-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.95 1.95.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.95 1.95.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.95 1.95.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.95 1.95.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.96 1.96.1-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.96 1.96.1-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.96 1.96.1-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.96 1.96.1-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.97 1.97.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.97 1.97.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.97 1.97.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.97 1.97.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.98 1.98.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.98 1.98.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.98 1.98.0-160000.1.1 · Apache-2.0 OR MIT
- opensuse-leap 16.0: cargo1.98 1.98.0-160000.1.1 · Apache-2.0 OR MIT
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms