File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ libc.workspace = true
35
35
libz-sys = " 1.0"
36
36
37
37
[build-dependencies ]
38
- bindgen = { version = " 0.62 " , default-features = false , features = [
38
+ bindgen = { version = " 0.66 " , default-features = false , features = [
39
39
" runtime" ,
40
40
" which-rustfmt" ,
41
41
] }
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ extern crate bindgen;
6
6
extern crate cc;
7
7
extern crate walkdir;
8
8
9
+ use bindgen:: Formatter ;
9
10
use std:: env;
10
11
use std:: ffi:: { OsStr , OsString } ;
11
12
use std:: fs;
@@ -294,7 +295,7 @@ fn build_jsapi_bindings(build_dir: &Path) {
294
295
config &= !bindgen:: CodegenConfig :: METHODS ;
295
296
296
297
let mut builder = bindgen:: builder ( )
297
- . rust_target ( bindgen:: RustTarget :: Stable_1_40 )
298
+ . rust_target ( bindgen:: RustTarget :: Stable_1_59 )
298
299
. header ( "./src/jsglue.hpp" )
299
300
// Translate every enum with the "rustified enum" strategy. We should
300
301
// investigate switching to the "constified module" strategy, which has
@@ -303,7 +304,7 @@ fn build_jsapi_bindings(build_dir: &Path) {
303
304
. size_t_is_usize ( true )
304
305
. enable_cxx_namespaces ( )
305
306
. with_codegen_config ( config)
306
- . rustfmt_bindings ( true )
307
+ . formatter ( Formatter :: Rustfmt )
307
308
. clang_arg ( "-I" )
308
309
. clang_arg ( build_dir. join ( "dist/include" ) . to_str ( ) . expect ( "UTF-8" ) )
309
310
. clang_arg ( "-I" )
You can’t perform that action at this time.
0 commit comments