Skip to content

Latest commit

 

History

History
101 lines (68 loc) · 4.54 KB

cargo-search.zh.md

File metadata and controls

101 lines (68 loc) · 4.54 KB

cargo-search(1)

NAME

Cargo搜索——在箱子中搜索包。木卫一

SYNOPSIS

cargo search [options][query...]

DESCRIPTION

这将对机器上的箱子执行文本搜索https://crates.io.匹配的箱子将以适合复制到文件中的TOML格式显示及其说明Cargo.toml显示

OPTIONS

Search Options

--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 to crates-io.

Display Options

-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.

Common Options

+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.

ENVIRONMENT

查看the reference有关Cargo读取的环境变量的详细信息。

EXIT STATUS

  • 0:Cargo成功。
  • 101:Cargo未能完成。

EXAMPLES

  1. 从箱子中寻找包。io:

    Cargo搜索服务

SEE ALSO

cargo(1), cargo-install(1), cargo-publish(1)