cargo-machete icon indicating copy to clipboard operation
cargo-machete copied to clipboard

Feature Idea: Centralized config file

Open torokati44 opened this issue 10 months ago • 1 comments

While adding ignore entries to Cargo.toml is fine, as there is rarely any need for it; I think it would be nicer if there was (also) a way to put this metadata in one place, into a dedicated config file somewhere; for example machete.toml in the workspace root.

PS Thank you for this tool, and the explainer blog post too!

torokati44 avatar Mar 26 '24 09:03 torokati44

Thanks for the issue. I think that would be reasonable; an alternative is to use ignored packages in the Cargo workspace, but that might be overly broad, so a more targeted machete.toml file with a mapping of crates -> ignored could work, as well as general options (e.g. use --with-metadata all the time).

If anyone wants to start implementing something like this, please go ahead!

bnjbvr avatar Mar 27 '24 10:03 bnjbvr