Cargo搜索——在箱子中搜索包。木卫一
cargo search
[options][query...]
这将对机器上的箱子执行文本搜索https://crates.io.匹配的箱子将以适合复制到文件中的TOML格式显示及其说明Cargo.toml
显示
--limit
limit- Limit the number of results (default: 10, max: 100).
--index
index- The URL of the registry index to use.
--registry
registry- Name of the registry to use. Registry names are defined in Cargo config
files. If not specified, the default registry is used,
which is defined by the
registry.default
config key which defaults tocrates-io
.
-v
--verbose
- Use verbose output. May be specified twice for "very verbose" output which
includes extra output such as dependency warnings and build script output.
May also be specified with the
term.verbose
config value. -q
--quiet
- Do not print cargo log messages.
May also be specified with the
term.quiet
config value. --color
when- Control when colored output is used. Valid values:
auto
(default): Automatically detect if color support is available on the terminal.always
: Always display colors.never
: Never display colors.
May also be specified with the
term.color
config value.
+
toolchain- If Cargo has been installed with rustup, and the first argument to
cargo
begins with+
, it will be interpreted as a rustup toolchain name (such as+stable
or+nightly
). See the rustup documentation for more information about how toolchain overrides work. -h
--help
- Prints help information.
-Z
flag- Unstable (nightly-only) flags to Cargo. Run
cargo -Z help
for details.
查看the reference有关Cargo读取的环境变量的详细信息。
0
:Cargo成功。101
:Cargo未能完成。
-
从箱子中寻找包。io:
Cargo搜索服务