-
Notifications
You must be signed in to change notification settings - Fork 54
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
Use cargo-deny
to prevent duplicate dependencies
#349
Comments
@emilk Thanks for the feedback. We actually already added cargo deny in a recent PR. I guess our deny.toml might need tweaking though. Are you having a problem now with AccessKit introducing duplicate dependencies in egui? |
Oh sorry, I thought I checked first 🤦 Yeah I got some duplicated deps via |
We haven't actually published a release since adding cargo deny. |
Ah, yes, the --- a/deny.toml
+++ b/deny.toml
@@ -34,7 +34,7 @@ exceptions = [
]
[bans]
-multiple-versions = "warn"
+multiple-versions = "deny"
wildcards = "allow"
highlight = "all"
workspace-default-features = "allow" and then duplicates popup fast when checking different platforms with
Some are small things like There are for instance multiple version of |
cargo-deny
to CI to prevent duplicate dependenciescargo-deny
to prevent duplicate dependencies
cargo-deny
to prevent duplicate dependenciescargo-deny
to prevent duplicate dependencies
Hello, I won't comment about I just wanted to say that I don't think we need to run |
By running cargo-deny on CI for all supported platforms, we can ensure users of accesskit won't have duplicated dependencies. Reducing duplicated dependencies reduces compile times and binary bloat.
Here's how it is done in
winit
, for instance:https://github.com/rust-windowing/winit/blob/4d4d6e5052877d9578bac73f52eaf323e9089998/.github/workflows/ci.yml#L180-L203
and their
deny.toml
:https://github.com/rust-windowing/winit/blob/master/deny.toml
The text was updated successfully, but these errors were encountered: