#cargo-toml #cargo-subcommand

bin+lib cargo-extract

Cargo subcommand to extract information from Cargo.toml files

3 releases (breaking)

0.3.0 Apr 12, 2024
0.2.0 Apr 8, 2024
0.1.0 Apr 4, 2024

#374 in Cargo plugins

MIT license

8KB
133 lines

CI status Latest version

cargo-extract

This cargo subcommand allows you to extract specific information from a Cargo.toml file.

Installation

$ cargo install cargo-extract

Examples

$ cargo extract package.name
cargo-extract

$ cargo extract package.version
0.3.0

$ cargo extract package.categories
command-line-utilities
development-tools::build-utils
development-tools::cargo-plugins

$ cargo extract package.categories.0
command-line-utilities

Dependencies

~2.5MB
~40K SLoC