Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Idea: Centralized config file #118

Open
torokati44 opened this issue Mar 26, 2024 · 1 comment
Open

Feature Idea: Centralized config file #118

torokati44 opened this issue Mar 26, 2024 · 1 comment

Comments

@torokati44
Copy link

torokati44 commented Mar 26, 2024

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!

@bnjbvr
Copy link
Owner

bnjbvr commented Mar 27, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants