#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

#1154 in Development tools


365 lines


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.


~84K SLoC