Skip to content

Exclude dev dependencies from cargo-deny - #9771

Merged
cwfitzgerald merged 1 commit into
gfx-rs:trunkfrom
cwfitzgerald:push-yzyurxzrvzsz
Jun 30, 2026
Merged

Exclude dev dependencies from cargo-deny#9771
cwfitzgerald merged 1 commit into
gfx-rs:trunkfrom
cwfitzgerald:push-yzyurxzrvzsz

Conversation

@cwfitzgerald

Copy link
Copy Markdown
Member

Connections

Found in #8388

Description

This solves the active advisory for a dependency of winit. I'm not entirely 100% convinced this is the correct solution, but please discuss.

Comment thread .deny.toml
{ name = "linux-raw-sys", version = "0.9.4" },

# wgpu-hal -> ndk-sys -> jni-sys uses an old version, while jni-sys 0.4 re-exports it
{ name = "jni-sys", version = "0.3.1" },

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only happened if you counted winit

@kpreid

kpreid commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

I'm not entirely 100% convinced this is the correct solution, but please discuss.

Ideally, cargo-deny would distinguish “unmaintained” as less noteworthy. (Arguably, given how the system works overall, unmaintained advisories shouldn’t exist until they are handled better.) But, for the moment, this seems reasonable.

We might want to run the check including dev-deps but report the results in some way with less noise than failing PR CI. (It would also be nice to distinguish “malicious” (remove ASAP) from “buggy” (leave alone in dev-deps) and “unmaintained” (fix someday) advisories.)

@andyleiserson

andyleiserson commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

It would also be nice if this could be integrated with renovate somehow, and we could say "medium or low-severity, don't flag until renovate has had a chance to apply a fix on the regular schedule; high, out-of-cycle renovate PR and some short grace period to merge that PR; only reject in a way that fails CI if a renovate fix is not available by the applicable deadline.

(To contribute an opinion on the actual question, disabling for dev-dependencies seems fine to me if that's the best we can do with the available knobs.)

@cwfitzgerald

Copy link
Copy Markdown
Member Author

Alright, then I think we should merge this, and see if we can improve the situation as some subsequent work

@cwfitzgerald
cwfitzgerald merged commit 378124a into gfx-rs:trunk Jun 30, 2026
58 checks passed
@cwfitzgerald
cwfitzgerald deleted the push-yzyurxzrvzsz branch June 30, 2026 02:49
@ErichDonGubler ErichDonGubler added the area: infrastructure Testing, building, coordinating issues label Jun 30, 2026
@ErichDonGubler

Copy link
Copy Markdown
Member

This is one of the "other config. mechanisms" I was thinking about when we previously configured cargo-deny to ignore unpublished crates, so LGTM (after the fact), too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: infrastructure Testing, building, coordinating issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants