Upgrade bindgen to fix warnings on new Rust
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ tree-sitter = "0.19"
|
||||
usvg = "0.14"
|
||||
|
||||
[build-dependencies]
|
||||
bindgen = "0.57"
|
||||
bindgen = "0.58.1"
|
||||
cc = "1.0.67"
|
||||
|
||||
[dev-dependencies]
|
||||
|
||||
+3
-3
@@ -17,8 +17,8 @@ fn generate_dispatch_bindings() {
|
||||
|
||||
let bindings = bindgen::Builder::default()
|
||||
.header("src/platform/mac/dispatch.h")
|
||||
.whitelist_var("_dispatch_main_q")
|
||||
.whitelist_function("dispatch_async_f")
|
||||
.allowlist_var("_dispatch_main_q")
|
||||
.allowlist_function("dispatch_async_f")
|
||||
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
|
||||
.generate()
|
||||
.expect("unable to generate bindings");
|
||||
@@ -94,7 +94,7 @@ fn compile_metal_shaders() {
|
||||
fn generate_shader_bindings() {
|
||||
let bindings = bindgen::Builder::default()
|
||||
.header(SHADER_HEADER_PATH)
|
||||
.whitelist_type("GPUI.*")
|
||||
.allowlist_type("GPUI.*")
|
||||
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
|
||||
.generate()
|
||||
.expect("unable to generate bindings");
|
||||
|
||||
Reference in New Issue
Block a user