You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, unsafe extern is a very new syntax, which will be available only after Rust 1.82. So, it would be a headache to support both the 2021 edition and the 2024 edition (I'll probably use rustversion to switch the implementations).
You can follow the discussion on bindgen's side here:
This is a bit too early to worry about, but it seems Rust 2024 is going to require an explicit
unsafe
on everyextern
block.https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-extern.html
However,
unsafe extern
is a very new syntax, which will be available only after Rust 1.82. So, it would be a headache to support both the 2021 edition and the 2024 edition (I'll probably userustversion
to switch the implementations).You can follow the discussion on bindgen's side here:
rust-lang/rust-bindgen#2901
The text was updated successfully, but these errors were encountered: