2 个不稳定版本
0.2.0 | 2021年11月17日 |
---|---|
0.1.0 | 2020年12月1日 |
#390 在 Cargo 插件 中
11KB
165 行
cargo-brief
显示 cargo 依赖的简要总结。
安装
cargo install cargo-brief
用法
$ cargo brief --help
cargo-brief 0.1.0
USAGE:
cargo brief [FLAGS] [OPTIONS] [package]
FLAGS:
-h, --help Prints help information
--no-dev
-r, --recursive
-V, --version Prints version information
OPTIONS:
--manifest-path <manifest-path> [default: ./Cargo.toml]
ARGS:
<package> [default: *]
显示直接依赖的简短总结
$ cargo brief
ansi_term 0.12.1 Library for ANSI terminal colours and styles (bold, underline)
cargo_metadata 0.12.1 structured access to the output of `cargo metadata`
structopt 0.3.21 Parse command line argument by defining a struct.
tabwriter 1.2.1 Elastic tabstops.
thiserror 1.0.22 derive(Error)
wildmatch 1.0.12 Simple string matching with questionmark and star wildcard operator.
显示一个依赖的详细总结
$ cargo brief structopt
name : structopt
descrip. : Parse command line argument by defining a struct.
keywords : clap, cli, derive, docopt
categories : command-line-interface
version : 0.3.21
license : Apache-2.0 OR MIT
homepage :
repository : https://github.com/TeXitoi/structopt
features : no_cargo, yaml, debug, suggestions, doc, color, default, paw, lints, wrap_help
包名参数支持通配符
$ cargo brief serde*
serde 1.0.117 A generic serialization/deserialization framework
serde_json 1.0.59 A JSON serialization file format
可以使用 --recursive
选项来显示工作空间中所有 crate 的依赖
$ cargo brief --recursive
# elephantry 1.1.1 (path+file:///home/sanpi/projects/elephantry/elephantry/core)
async-std 1.6.5 Async version of the Rust standard library
byteorder 1.3.4 Library for reading/writing numbers in big-endian and little-endian.
bytes 0.6.0 Types and traits for working with bytes
elephantry-derive 1.1.1 Macro implementation of #[derive(Entity)]
lazy_static 1.4.0 A macro for declaring lazily evaluated statics in Rust.
libpq 1.0.0 Safe binding for libpq
log 0.4.11 A lightweight logging facade for Rust
pretty_env_logger 0.4.0 a visually pretty env_logger
regex 1.4.1 An implementation of regular expressions for Rust. This implementation uses…
serde_json 1.0.59 A JSON serialization file format
tuple_len 1.0.0 macro to get the number of elements in a tuple
uuid 0.8.1 A library to generate and parse UUIDs.
# elephantry-derive 1.1.1 (path+file:///home/sanpi/projects/elephantry/elephantry/derive)
quote 1.0.7 Quasi-quoting macro quote!(...)
syn 1.0.45 Parser for Rust source code
# elephantry-cli 1.1.1 (path+file:///home/sanpi/projects/elephantry/elephantry/cli)
case 1.0.0 A set of letter case string helpers
dotenv 0.15.0 A `dotenv` implementation for Rust
elephantry 1.1.1 Object model manager for PostgreSQL
structopt 0.3.20 Parse command line argument by defining a struct.
term-table 1.3.0 Tables for CLI apps
依赖
~4MB
~72K SLoC