< 返回版块

weaming 发表于 2021-03-26 16:48

Tags:cargo,子命令

cargo-vcs

Print the content of .cargo_vcs_info.json in the downloaded .crate file.

Install

pip3 install -U cargo-vcs

例子

> cargo vcs filecoin-proofs-api -v 5.4.1
versions: 6.1.0, 6.0.0, 5.4.1, 5.4.0, 5.3.0, 5.2.0, 5.1.1, 5.1.0, 5.0.0, 4.0.4, 4.0.3, 4.0.2, 4.0.1, 4.0.0, 3.0.0, 2.0.0, 1.0.0
https://crates.io/api/v1/crates/filecoin-proofs-api/5.4.1/download
found filecoin-proofs-api-5.4.1/.cargo_vcs_info.json
{
  "git": {
    "sha1": "1e2ccacdb4c706a96b11878c67681096e133d30e"
  }
}

源码

weaming/cargo-vcs

评论区

写评论

还没有评论

1 共 0 条评论, 1 页