cargo-trend

Actions Status Crates.io

cargo-trend is a cargo subcommand to generate trend graph of dependent crates.

Installation

You can install by cargo.

cargo install cargo-trend

Usage

Type cargo trend only. trend.svg show the trend graph of current project's dependencies.

console $ cargo trend

If crate names are given, trend.svg show the trend graph of the given crates.

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

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

Samples

Error management library

console $ cargo trend failure error-chain quick-error snafu err-derive anyhow thiserror

error.svg

Argument parser library

console $ cargo trend clap structopt docopt argparse getopts

arg.svg

Terminal library

console $ cargo trend ansi_term termcolor term termion colored console

term.svg

Database

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.