| Crates.io | cargo-trend |
| lib.rs | cargo-trend |
| version | 0.4.0 |
| created_at | 2019-10-03 11:45:46.454148+00 |
| updated_at | 2023-05-18 09:58:05.792916+00 |
| description | Cargo subcommand to generate trend graph of dependent crates |
| homepage | |
| repository | https://github.com/dalance/cargo-trend |
| max_upload_size | |
| id | 169604 |
| size | 100,479 |
cargo-trend is a cargo subcommand to generate trend graph of dependent crates.
You can install by cargo.
cargo install cargo-trend
Type cargo trend only. trend.svg show the trend graph of current project's dependencies.
$ cargo trend
If crate names are given, trend.svg show the trend graph of the given crates.
$ cargo trend failure error-chain quick-error snafu err-derive anyhow thiserror
--output option can specify the filename of the trend graph.
The extension can be .svg, .png, .bmp, .jpeg and .jpg.
$ cargo trend --output trend.png
If --relative option is given, the y-axis of the output becomes fraction of crates.io.
If --transitive option is given, the way counting dependents changes from direct-dependencies to transitive-dependencies.
If --top option is given, the most trending crates are shown.
$ cargo trend --top 5 --duration 4
$ cargo trend --relative --top 5 --duration 4
$ cargo trend failure error-chain quick-error snafu err-derive anyhow thiserror
$ cargo trend --relative failure error-chain quick-error snafu err-derive anyhow thiserror
$ cargo trend clap structopt docopt argparse getopts
$ cargo trend --relative clap structopt docopt argparse getopts
$ cargo trend ansi_term termcolor term termion colored console
$ cargo trend --relative ansi_term termcolor term termion colored console
$ cargo trend tokio smol async-std
$ cargo trend --relative tokio smol async-std
The database of dependent crates is ./db/db.gz.
cargo-trend fetch it from github.com and generate graph.
The database is constructed from crates.io-index and updated daily.