Skip to content

Commit

Permalink
ref(sys): let bindgen target Rust 1.82
Browse files Browse the repository at this point in the history
This will make it slightly easier to target Rust's 2024 edition, where
the `unsafe` keyword will be required for `extern` blocks like these.

I'd like to also not use the now deprecated Rust version constants
offered by `bindgen`, but the ergonomics of the alternative syntax can
be improved and we can try to make it better upstream - see
rust-lang/rust-bindgen#3055.
  • Loading branch information
AlexTMjugador committed Dec 13, 2024
1 parent 1e8a8fa commit b0ae63b
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 148 deletions.
2 changes: 1 addition & 1 deletion packages/aotuv_lancer_vorbis_sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fn main() {
.blocklist_item("FILE")
.blocklist_item("ogg_.*")
.blocklist_item("__.*")
.rust_target(RustTarget::Stable_1_77)
.rust_target(RustTarget::Stable_1_82)
.layout_tests(false) // Type layout is platform-specific
.generate()
.expect("Unable to generate bindings")
Expand Down
Loading

0 comments on commit b0ae63b

Please sign in to comment.