1CARGO-SEARCH(1)                                                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           No output printed to stdout.
41
42       --color WHEN
43           Control when colored output is used. Valid values:
44
45           ·   auto (default): Automatically detect if color support is
46               available on the terminal.
47
48           ·   always: Always display colors.
49
50           ·   never: Never display colors.
51
52           May also be specified with the term.color config value
53           <https://doc.rust-lang.org/cargo/reference/config.html>.
54
55   Common Options
56       -h, --help
57           Prints help information.
58
59       -Z FLAG...
60           Unstable (nightly-only) flags to Cargo. Run cargo -Z help for
61           details.
62

ENVIRONMENT

64       See the reference
65       <https://doc.rust-lang.org/cargo/reference/environment-variables.html>
66       for details on environment variables that Cargo reads.
67

EXIT STATUS

69       0
70           Cargo succeeded.
71
72       101
73           Cargo failed to complete.
74

EXAMPLES

76        1. Search for a package from crates.io:
77
78               cargo search serde
79

SEE ALSO

81       cargo(1), cargo-install(1), cargo-publish(1)
82
83
84
85                                  2019-06-03                   CARGO-SEARCH(1)
Impressum