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

Non-transitive version of external-default-features #699

Open
sergiimk opened this issue Sep 12, 2024 · 0 comments
Open

Non-transitive version of external-default-features #699

sergiimk opened this issue Sep 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@sergiimk
Copy link

Is your feature request related to a problem? Please describe.
I have a large workspace with 900+ crate dependencies in total. I would like to enforce that every dependency added to the project uses default-features = false and lists needed features explicitly to prevent bloat.

If I specify external-default-features = "deny" currently I get errors for creates with default features enabled including transitive dependencies, deep in the dependency hierarchy, on which I have no control over.

I would like to have an ability to separately "deny" default features on immediate dependencies, and "warn" on transitive dependencies so I could consider submitting upstream PRs to those.

Describe the solution you'd like
Perhaps allow syntax like:

external-default-features = { transitive = "deny", immediate = "warn" }
@sergiimk sergiimk added the enhancement New feature or request label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant