Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

Unpin bindgen and use --size_t-is-usize #235

Merged
merged 1 commit into from
Aug 9, 2020
Merged

Unpin bindgen and use --size_t-is-usize #235

merged 1 commit into from
Aug 9, 2020

Conversation

geofft
Copy link
Collaborator

@geofft geofft commented Aug 9, 2020

Add an assertion that doing so is safe.
See rust-lang/rust-bindgen#1671

Can't use static_assert from <linux/build_bug.h> because that's
5.1+-only, but the underlying _Static_assert compiler builtin is
available widely.
See torvalds/linux@6bab69c

@geofft geofft requested a review from alex August 9, 2020 20:37
Cargo.toml Outdated
@@ -8,6 +8,6 @@ edition = "2018"
bitflags = "1"

[build-dependencies]
bindgen = "0.51.0"
bindgen = "*"
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we should be unpinning. I think we should bump the pin and maybe add depndabot.

Add an assertion that doing so is safe.
See rust-lang/rust-bindgen#1671

Can't use static_assert from <linux/build_bug.h> because that's
5.1+-only, but the underlying _Static_assert compiler builtin is
available widely.
See torvalds/linux@6bab69c
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants