0.2.0 2019年4月21日
0.1.0 2019年4月17日

#70 in #crate

MIT/Apache

70KB
1.5K SLoC

crin

(crate information)

crates.io API的便捷CLI

特性

  • 彩色、紧凑且可解析的输出
  • 显示crate信息
  • 搜索crate
  • 显示crate摘要
  • 用户配置文件(TOML格式)
    • 管理自定义crate列表

计划中的特性

  • 改进搜索
    • 按关键字和分类过滤
    • 按字母顺序或下载量排序
    • 选择页面和每页结果数
  • 显示依赖项
  • 显示版本列表
    • 下载任何版本
  • 自定义颜色

用法示例

显示crate信息

$ crin show regex-syntax

# If you want to show the number of reverse dependencies  use `-r` or `--reverse`:
$ crin show -r regex-syntax

# If you want the full list of reverse dependencies use `-rr` or `--reverse --reverse`:
$ crin show  -rr regex-syntax
$ crin search network

摘要

$ crin summary

# More details on new crates
$ crin summary new

列表

$ crin list                      # show your existing lists
$ crin list new devlist          # create a new list named 'devlist'
$ crin list add devlist reqwest  # add the crate to your list
$ crin list add devlist clap     # add another crate
$ crin list show devlist -i      # show information about each crate
$ crin list rem devlist clap     # remove the crate from your list

$ crin list help                 # for more...

帮助

$ crin help
$ crin help crate
$ crin help summary new
$ crin help list

安装

$ cargo install crin

依赖项

~25–36MB
~687K SLoC