Skip to content

Commit 643afcd

Browse files
committed
Update bindgen to 0.39
1 parent 3d1d66d commit 643afcd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "mozjs_sys"
33
description = "System crate for the Mozilla SpiderMonkey JavaScript engine."
44
repository = "https://github.com/servo/mozjs/"
5-
version = "0.60.1"
5+
version = "0.61.0"
66
authors = ["Mozilla"]
77
links = "mozjs"
88
build = "build.rs"
@@ -26,5 +26,5 @@ libc = "0.2"
2626
libz-sys = "1.0"
2727

2828
[build-dependencies]
29-
bindgen = "0.37"
29+
bindgen = "0.39"
3030
cc = "1.0"

build.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ fn build_jsapi_bindings() {
171171
// so their symbols aren't available. Adding the -fkeep-inlined-functions option
172172
// causes the jsapi library to bloat from 500M to 6G, so that's not an option.
173173
let mut config = bindgen::CodegenConfig::all();
174-
config.constructors = false;
175-
config.destructors = false;
176-
config.methods = false;
177-
174+
config &= !bindgen::CodegenConfig::CONSTRUCTORS;
175+
config &= !bindgen::CodegenConfig::DESTRUCTORS;
176+
config &= !bindgen::CodegenConfig::METHODS;
177+
178178
let mut builder = bindgen::builder()
179179
.rust_target(bindgen::RustTarget::Stable_1_19)
180180
.header("./src/jsglue.hpp")

0 commit comments

Comments
 (0)