1CARGO-SEARCH(1)             General Commands Manual            CARGO-SEARCH(1)
2
3
4

NAME

6       cargo-search - Search packages in crates.io
7

SYNOPSIS

9       cargo search [options] [query...]
10

DESCRIPTION

12       This performs a textual search for crates on <https://crates.io>. The
13       matching crates will be displayed along with their description in TOML
14       format suitable for copying into a Cargo.toml manifest.
15

OPTIONS

17   Search Options
18       --limit limit
19           Limit the number of results (default: 10, max: 100).
20
21       --index index
22           The URL of the registry index to use.
23
24       --registry registry
25           Name of the registry to use. Registry names are defined in Cargo
26           config files
27           <https://doc.rust-lang.org/cargo/reference/config.html>. If not
28           specified, the default registry is used, which is defined by the
29           registry.default config key which defaults to crates-io.
30
31   Display Options
32       -v, --verbose
33           Use verbose output. May be specified twice for "very verbose"
34           output which includes extra output such as dependency warnings and
35           build script output. May also be specified with the term.verbose
36           config value
37           <https://doc.rust-lang.org/cargo/reference/config.html>.
38
39       -q, --quiet
40           Do not print cargo log messages. May also be specified with the
41           term.quiet config value
42           <https://doc.rust-lang.org/cargo/reference/config.html>.
43
44       --color when
45           Control when colored output is used. Valid values:
46
47auto (default): Automatically detect if color support is
48               available on the terminal.
49
50always: Always display colors.
51
52never: Never display colors.
53
54           May also be specified with the term.color config value
55           <https://doc.rust-lang.org/cargo/reference/config.html>.
56
57   Common Options
58       +toolchain
59           If Cargo has been installed with rustup, and the first argument to
60           cargo begins with +, it will be interpreted as a rustup toolchain
61           name (such as +stable or +nightly). See the rustup documentation
62           <https://rust-lang.github.io/rustup/overrides.html> for more
63           information about how toolchain overrides work.
64
65       -h, --help
66           Prints help information.
67
68       -Z flag
69           Unstable (nightly-only) flags to Cargo. Run cargo -Z help for
70           details.
71

ENVIRONMENT

73       See the reference
74       <https://doc.rust-lang.org/cargo/reference/environment-variables.html>
75       for details on environment variables that Cargo reads.
76

EXIT STATUS

780: Cargo succeeded.
79
80101: Cargo failed to complete.
81

EXAMPLES

83        1. Search for a package from crates.io:
84
85               cargo search serde
86

SEE ALSO

88       cargo(1), cargo-install(1), cargo-publish(1)
89
90
91
92                                                               CARGO-SEARCH(1)
Impressum