#cargo #toml #cli #manipulate

app cargoman

small command line tool to programmatically manipulate Cargo.toml files

2 releases

0.2.2 Nov 1, 2020
0.2.1 Oct 30, 2020

#1817 in Command line utilities

MIT/Apache

18KB
365 lines

cargoman

cargoman provides a basic CLI to manipulate Cargo.toml files.

At the moment, it can perform two tasks that are frequently necessary for RPM packaging:

  • normalize targets (flatten "targets" by either making the dependencies target-independent or by removing them)
  • override dependency versions

The goal of this project is to eventually make it unnecessary to manually patch Cargo.toml files for RPM packages of Rust crates in Fedora and to automate these modifications as part of the build process instead.

Dependencies

~3–4MB
~79K SLoC