diff options
author | Paul Rouget <me@paulrouget.com> | 2018-11-19 09:11:54 +0100 |
---|---|---|
committer | Paul Rouget <me@paulrouget.com> | 2018-11-19 09:11:54 +0100 |
commit | d27cfb3ee97c68bdb99bf6e3d22cac2e12a599d1 (patch) | |
tree | 2dda8cee0ca4c1fedb44af37457590d4b7b3483b | |
parent | 63a96a5d3758fea4cc5562f44777fcca393cd5ad (diff) | |
download | servo-d27cfb3ee97c68bdb99bf6e3d22cac2e12a599d1.tar.gz servo-d27cfb3ee97c68bdb99bf6e3d22cac2e12a599d1.zip |
Update mozjs and enable 'init_once' feature for Android
-rw-r--r-- | Cargo.lock | 8 | ||||
-rw-r--r-- | components/malloc_size_of/Cargo.toml | 7 | ||||
-rw-r--r-- | components/script/Cargo.toml | 7 |
3 files changed, 16 insertions, 6 deletions
diff --git a/Cargo.lock b/Cargo.lock index b2acb6357fa..c91536322e9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2236,7 +2236,7 @@ dependencies = [ "hyper 0.12.12 (registry+https://github.com/rust-lang/crates.io-index)", "hyper_serde 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "keyboard-types 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", - "mozjs 0.9.4 (registry+https://github.com/rust-lang/crates.io-index)", + "mozjs 0.9.5 (registry+https://github.com/rust-lang/crates.io-index)", "selectors 0.20.0", "serde 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)", "serde_bytes 0.10.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2457,7 +2457,7 @@ dependencies = [ [[package]] name = "mozjs" -version = "0.9.4" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "cc 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)", @@ -3237,7 +3237,7 @@ dependencies = [ "mime_guess 2.0.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)", "mitochondria 1.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "mozangle 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", - "mozjs 0.9.4 (registry+https://github.com/rust-lang/crates.io-index)", + "mozjs 0.9.5 (registry+https://github.com/rust-lang/crates.io-index)", "msg 0.0.1", "net_traits 0.0.1", "num-traits 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4986,7 +4986,7 @@ dependencies = [ "checksum miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" "checksum mitochondria 1.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9de3eca27871df31c33b807f834b94ef7d000956f57aa25c5aed9c5f0aae8f6f" "checksum mozangle 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "45a8a18a41cfab0fde25cc2f43ea89064d211a0fbb33225b8ff93ab20406e0e7" -"checksum mozjs 0.9.4 (registry+https://github.com/rust-lang/crates.io-index)" = "2c7319f00f7847cca3290f7af7cef5947110f62fe5c792a6c4cb9a4518076d96" +"checksum mozjs 0.9.5 (registry+https://github.com/rust-lang/crates.io-index)" = "6d1db0edead699324dd1768f74054a5a759de36a8ce92b15e8b179ec2549d19e" "checksum mozjs_sys 0.61.2 (registry+https://github.com/rust-lang/crates.io-index)" = "28276d28cc79226f3a26c790f00c8ce74459d097d3698f17df05ab9f683c1e52" "checksum msdos_time 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "aad9dfe950c057b1bfe9c1f2aa51583a8468ef2a5baba2ebbe06d775efeb7729" "checksum muldiv 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "451a9a05d2a32c566c897835e0ea95cf79ed2fdfe957924045a1721a36c9980f" diff --git a/components/malloc_size_of/Cargo.toml b/components/malloc_size_of/Cargo.toml index 47d586c3092..22840c89d8a 100644 --- a/components/malloc_size_of/Cargo.toml +++ b/components/malloc_size_of/Cargo.toml @@ -33,7 +33,6 @@ hashglobe = { path = "../hashglobe" } hyper = { version = "0.12", optional = true } hyper_serde = { version = "0.9", optional = true } keyboard-types = {version = "0.4.3", optional = true} -mozjs = { version = "0.9.4", optional = true } selectors = { path = "../selectors" } serde = { version = "1.0.27", optional = true } serde_bytes = { version = "0.10", optional = true } @@ -47,3 +46,9 @@ url = { version = "1.2", optional = true } webrender_api = { git = "https://github.com/servo/webrender", features = ["ipc"], optional = true } xml5ever = { version = "0.12", optional = true } void = "1.0.2" + +[target.'cfg(target_os = "android")'.dependencies] +mozjs = { version = "0.9.5", optional = true, features=["init_once"]} + +[target.'cfg(not(target_os = "android"))'.dependencies] +mozjs = { version = "0.9.5", optional = true} diff --git a/components/script/Cargo.toml b/components/script/Cargo.toml index 83d827ea6a2..2b9f62ed3b9 100644 --- a/components/script/Cargo.toml +++ b/components/script/Cargo.toml @@ -63,7 +63,6 @@ hyper_serde = "0.9" image = "0.20" ipc-channel = "0.11" itertools = "0.7.6" -js = {package = "mozjs", version = "0.9.4"} jstraceable_derive = {path = "../jstraceable_derive"} keyboard-types = "0.4.3" lazy_static = "1" @@ -115,3 +114,9 @@ webvr_traits = {path = "../webvr_traits"} [target.'cfg(not(target_os = "ios"))'.dependencies] mozangle = "0.1" + +[target.'cfg(target_os = "android")'.dependencies] +js = {package = "mozjs", version = "0.9.5", features=["init_once"]} + +[target.'cfg(not(target_os = "android"))'.dependencies] +js = {package = "mozjs", version = "0.9.5"} |