#cargo-toml #toml #manipulate #cargo #command-line-tool #cli #version

deprecated app cargoman

Small command line tool to programmatically manipulate Cargo.toml files

3 releases

0.2.3 Apr 7, 2024
0.2.2 Nov 1, 2020
0.2.1 Oct 30, 2020

#53 in #manipulate

MIT/Apache

19KB
365 lines

cargoman (DEPRECATED)

WARNING: This project has been superseded by rust2rpm-helper and is no longer maintained.


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

~4–5.5MB
~90K SLoC