1 个不稳定版本
0.1.1 | 2023 年 7 月 12 日 |
---|
#608 在 Cargo 插件
13KB
126 行
货物元数据解析器
描述
这是一个旨在以 JSON 格式获取当前包元数据的可执行程序。这是我为了学习 Rust 而进行的项目,因此不要期待大量的更新/改进。
安装说明
cargo install cargo-metadata-resolver
用法
在您想要获取元数据的目录中运行
cargo-metadata-resolver
例如,在此项目中运行时,您将看到
[{"name":"chrono","version":"0.4.26","authors":"","publish_date":"05-30-2023 14:38:13","description":"Date and time library for Rust"},{"name":"dict","version":"0.1.5","authors":"nacho <[email protected]>","publish_date":"04-17-2018 11:00:57","
description":"Exercise crate implementing real associative arrays, also known as dictionaries"},{"name":"reqwest","version":"0.11.18","authors":"Sean McArthur <[email protected]>","publish_date":"05-16-2023 16:26:33","description":"higher level
HTTP client library"},{"name":"serde","version":"1.0.171","authors":"Erick Tryzelaar <[email protected]>, David Tolnay <[email protected]>","publish_date":"07-09-2023 20:10:15","description":"A generic serialization/deserialization framewor
k"},{"name":"serde_json","version":"1.0.100","authors":"","publish_date":"","description":""},{"name":"toml","version":"0.7.6","authors":"Alex Crichton <[email protected]>","publish_date":"07-05-2023 15:50:42","description":"A native Rust encoder and decoder of TOML-formatted files and streams. Provides\nimplementations of the standard Serialize/Deserialize traits for TOML data to\nfacilitate deserializing and serializing Rust structures.\n"}]
依赖项
~5–20MB
~267K SLoC