cargo-machete
cargo-machete copied to clipboard
Feature Idea: Centralized config file
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!
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!