Skip to content

Commit ebe9172

Browse files
committed
refactor: nginx-sys bindgen settings to support edition 2024
wrap_unsafe_ops(true) shouldn't be necessary since that is a requirement in edition 2024, but apparently that is an outstanding bug in bindgen: rust-lang/rust-bindgen#3147
1 parent ef26134 commit ebe9172

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nginx-sys/build/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ fn generate_binding(nginx: &NginxSource) {
236236
.clang_args(clang_args)
237237
.layout_tests(false)
238238
.rust_target(rust_target)
239+
.rust_edition(bindgen::RustEdition::Edition2024)
240+
.wrap_unsafe_ops(true)
239241
.use_core()
240242
.generate()
241243
.expect("Unable to generate bindings");

0 commit comments

Comments
 (0)