Skip to content

Commit f37cd0a

Browse files
committed
Bump bindgen to 0.71.1
1 parent 3432d2b commit f37cd0a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ lazy_static = "1.0"
1515
dlopen = "0.1"
1616

1717
[build-dependencies]
18-
bindgen = { version = "0.69", default-features = false, features = [
18+
bindgen = { version = "0.71.1", default-features = false, features = [
1919
"runtime",
2020
"which-rustfmt",
2121
] }

build.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,14 @@ fn build_translator(compiled_libraries: &mut HashSet<Libs>, target: &String) {
341341
build.compile("glslang_glue");
342342
}
343343

344+
let Ok(rust_target) = bindgen::RustTarget::stable(80, 0) else {
345+
// `InvalidRustTarget` doesn't implement debug so we manually panic.
346+
panic!("Invalid rust target specified");
347+
};
348+
344349
// now generate bindings
345350
let mut builder = bindgen::builder()
346-
.rust_target(bindgen::RustTarget::Stable_1_59)
351+
.rust_target(rust_target)
347352
.header("./src/shaders/glslang-c.cpp")
348353
.opaque_type("std.*")
349354
.allowlist_type("Sh.*")

0 commit comments

Comments
 (0)