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

Upgrade nftnl to fix cargo deny error #6748

Merged
merged 4 commits into from
Sep 20, 2024

Conversation

MarkusPettersson98
Copy link
Contributor

@MarkusPettersson98 MarkusPettersson98 commented Sep 6, 2024

This PR resolves #6747.

Fix cargo deny complaining about proc-macro-error being unmaintained by upgrading nftnl to a version which no longer depends on err-derive, which in turn depended on proc-macro-error.

This PR also upgrades bitflags to 2.6.0 from 2.5.0 in talpid-core. Version 2.6.0 is pinned by nftnl for some reason, and cargo was unhappy with having both 2.5.0 and 2.6.0 in the same crate.

With this change we also drop 5 direct dependencies, and even more indirect dependencies! 🎉

Fixes DES-1228

TODO

  • Blocked on new release of nftnl.
  • Un-silence RUSTSEC-2024-0370 in cargo deny
  • Un-silence RUSTSEC-2024-0370 in osv-scanner
  • Un-silence RUSTSEC-2024-0370 in cargo audit

This change is Reviewable

Copy link

linear bot commented Sep 6, 2024

Copy link
Member

@faern faern left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 6 files at r1, 1 of 2 files at r2.
Reviewable status: 5 of 6 files reviewed, all discussions resolved

Copy link
Collaborator

@pinkisemils pinkisemils left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Collaborator

@pinkisemils pinkisemils left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 6 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Member

@faern faern left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Fix `cargo deny` complaining about `proc-macro-error` being unmaintained
by upgrading `nftnl` to a version which no longer depends on
`err-derive`, which in turn depended on `proc-macro-error`.

This commit also upgrades `bitflags` to `2.6.0` from `2.5.0` in
`talpid-core`. Version `2.6.0` is pinned by `nftnl` for some reason,
and `cargo` was unhappy with having both `2.5.0` and `2.6.0` in the same
crate. Manually derive `Debug` where needed after upgrade to
`bitflags 2.6.0`.
@MarkusPettersson98 MarkusPettersson98 merged commit f20eda4 into main Sep 20, 2024
55 checks passed
@MarkusPettersson98 MarkusPettersson98 deleted the proc-macro-error-unmaintained branch September 20, 2024 07:27
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

Successfully merging this pull request may close these issues.

RUSTSEC-2024-0370: proc-macro-error is unmaintained
3 participants