Skip to content

Commit 899791f

Browse files
authored
Merge pull request #147 from servo/align
Update bindgen and bump the minimum Rust version to 1.25
2 parents 3d1d66d + 901f6f2 commit 899791f

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ rust:
33
- nightly
44
- beta
55
- stable
6+
- 1.25.0
67
sudo: 9000
78
dist: trusty
89
os:

Cargo.toml

+2-2
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

+5-5
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ 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()
179-
.rust_target(bindgen::RustTarget::Stable_1_19)
179+
.rust_target(bindgen::RustTarget::Stable_1_25)
180180
.header("./src/jsglue.hpp")
181181
// Translate every enum with the "rustified enum" strategy. We should
182182
// investigate switching to the "constified module" strategy, which has

src/jsval.rs

-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ const JSVAL_PAYLOAD_MASK: u64 = 0x00007FFFFFFFFFFF;
7979
#[inline(always)]
8080
fn AsJSVal(val: u64) -> JSVal {
8181
JSVal {
82-
#[cfg(all(target_os = "android", target_arch = "x86"))]
83-
__bindgen_align: [],
8482
data: Value_layout {
8583
asBits: val,
8684
}

0 commit comments

Comments
 (0)