GithubHelp home page GithubHelp logo

dalance / cargo-trend Goto Github PK

View Code? Open in Web Editor NEW
28.0 7.0 1.0 43.09 GB

Cargo subcommand to generate trend graph of dependent crates

License: MIT License

Rust 99.07% Makefile 0.93%
rust cargo cargo-subcommand cargo-plugin

cargo-trend's Introduction

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.

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

Samples

The most trending crates by 4 weeks

$ cargo trend --top 5 --duration 4

top5.svg

$ cargo trend --relative --top 5 --duration 4

top5_relative.svg

Error management library

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

error.svg

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

error_relative.svg

Argument parser library

$ cargo trend clap structopt docopt argparse getopts

arg.svg

$ cargo trend --relative clap structopt docopt argparse getopts

arg_relative.svg

Terminal library

$ cargo trend ansi_term termcolor term termion colored console

term.svg

$ cargo trend --relative ansi_term termcolor term termion colored console

term_relative.svg

Async runtime library

$ cargo trend tokio smol async-std

async.svg

$ cargo trend --relative tokio smol async-std

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

cargo-trend's People

Contributors

dalance avatar dependabot-preview[bot] avatar dependabot[bot] avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

icodein

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.