diff options
author | Alan Jeffrey <ajeffrey@mozilla.com> | 2017-11-07 12:18:07 -0600 |
---|---|---|
committer | Alan Jeffrey <ajeffrey@mozilla.com> | 2017-11-08 11:43:30 -0600 |
commit | 8008ba50813d5a33d9430d7c348d730f538f0118 (patch) | |
tree | b070e4a77c9bb2880da3bc9f03eb0144c66ebbb4 | |
parent | 70bbb9bf940835f01d0fe87fc617c44a5556541c (diff) | |
download | servo-8008ba50813d5a33d9430d7c348d730f538f0118.tar.gz servo-8008ba50813d5a33d9430d7c348d730f538f0118.zip |
Renamed js crate to mozjs
-rw-r--r-- | Cargo.lock | 39 | ||||
-rw-r--r-- | components/malloc_size_of/Cargo.toml | 4 | ||||
-rw-r--r-- | components/malloc_size_of/lib.rs | 2 | ||||
-rw-r--r-- | components/script/Cargo.toml | 4 | ||||
-rw-r--r-- | components/script/lib.rs | 4 |
5 files changed, 26 insertions, 27 deletions
diff --git a/Cargo.lock b/Cargo.lock index f4e949a133e..9a9168f61f9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1396,20 +1396,6 @@ dependencies = [ ] [[package]] -name = "js" -version = "0.1.6" -source = "git+https://github.com/servo/rust-mozjs#cdb9570900b74cf4e0ba129eeb8bf527cee3ddb5" -dependencies = [ - "cmake 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", - "heapsize 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.23 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", - "mozjs_sys 0.0.0 (git+https://github.com/servo/mozjs)", - "num-traits 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] name = "jstraceable_derive" version = "0.0.1" dependencies = [ @@ -1680,7 +1666,7 @@ dependencies = [ "cssparser 0.22.0 (registry+https://github.com/rust-lang/crates.io-index)", "euclid 0.15.3 (registry+https://github.com/rust-lang/crates.io-index)", "hashglobe 0.1.0", - "js 0.1.6 (git+https://github.com/servo/rust-mozjs)", + "mozjs 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", "servo_arc 0.0.1", "smallbitvec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1829,9 +1815,22 @@ version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] +name = "mozjs" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "cmake 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", + "lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.23 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", + "mozjs_sys 0.50.0 (registry+https://github.com/rust-lang/crates.io-index)", + "num-traits 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] name = "mozjs_sys" -version = "0.0.0" -source = "git+https://github.com/servo/mozjs#424067c8d176bf1ee4c7f90c56916d35542de672" +version = "0.50.0" +source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "libc 0.2.23 (registry+https://github.com/rust-lang/crates.io-index)", "libz-sys 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2532,7 +2531,6 @@ dependencies = [ "hyper_serde 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "image 0.16.0 (registry+https://github.com/rust-lang/crates.io-index)", "ipc-channel 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", - "js 0.1.6 (git+https://github.com/servo/rust-mozjs)", "jstraceable_derive 0.0.1", "lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.23 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2543,6 +2541,7 @@ dependencies = [ "mime 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "mime_guess 1.8.1 (registry+https://github.com/rust-lang/crates.io-index)", "mitochondria 1.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "mozjs 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", "msg 0.0.1", "net_traits 0.0.1", "nonzero 0.0.1", @@ -3776,7 +3775,6 @@ dependencies = [ "checksum jemalloc-sys 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "479294d130502fada93c7a957e8d059b632b03d6204aca37af557dee947f30a9" "checksum jemallocator 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "28b211ca65c440322b6d4d9b5b850b01e8e298393b7ebcb8205b7cbb14ea6329" "checksum jpeg-decoder 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)" = "2805ccb10ffe4d10e06ef68a158ff94c255211ecbae848fbde2146b098f93ce7" -"checksum js 0.1.6 (git+https://github.com/servo/rust-mozjs)" = "<none>" "checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" "checksum khronos_api 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d5a08e2a31d665af8f1ca437eab6d00a93c9d62a549f73f9ed8fc2e55b5a91a7" "checksum language-tags 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a" @@ -3802,7 +3800,8 @@ dependencies = [ "checksum mio 0.6.9 (registry+https://github.com/rust-lang/crates.io-index)" = "9e965267d4d58496fc4f740e9861118367f13570cadf66316ed2c3f2f14d87c7" "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 mozjs_sys 0.0.0 (git+https://github.com/servo/mozjs)" = "<none>" +"checksum mozjs 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "a77c99a22091d3e6f7cd93caaf18bcb9ce5ff0a5d93c45aa73e443a447ab4296" +"checksum mozjs_sys 0.50.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ef1e24df9f76502cd4459919098ec1ac3af75ce694ec5b8837aa91f69f2ad0eb" "checksum mp3-metadata 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "4ab5f1d2693586420208d1200ce5a51cd44726f055b635176188137aff42c7de" "checksum mp4parse 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7b81651f9ede53d59281b54c7eb51ae50a868ac4765dd3bdfbbc79ce3d8aca7a" "checksum multistr 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "90fb6e1b4f6ca2f2098a437e1c7f09c122da62bbf2bde45b3693defc1eb61e2d" diff --git a/components/malloc_size_of/Cargo.toml b/components/malloc_size_of/Cargo.toml index bad3b277a95..38dc0cabf87 100644 --- a/components/malloc_size_of/Cargo.toml +++ b/components/malloc_size_of/Cargo.toml @@ -9,14 +9,14 @@ publish = false path = "lib.rs" [features] -servo = ["js", "string_cache", "url", "webrender_api", "xml5ever"] +servo = ["mozjs", "string_cache", "url", "webrender_api", "xml5ever"] [dependencies] app_units = "0.5.5" cssparser = "0.22.0" euclid = "0.15" hashglobe = { path = "../hashglobe" } -js = { git = "https://github.com/servo/rust-mozjs", features = ["promises"], optional = true } +mozjs = { version = "0.1.7", features = ["promises"], optional = true } servo_arc = { path = "../servo_arc" } smallbitvec = "1.0.3" smallvec = "0.4" diff --git a/components/malloc_size_of/lib.rs b/components/malloc_size_of/lib.rs index d3ec9d52a23..1fc3fe560ae 100644 --- a/components/malloc_size_of/lib.rs +++ b/components/malloc_size_of/lib.rs @@ -48,7 +48,7 @@ extern crate cssparser; extern crate euclid; extern crate hashglobe; #[cfg(feature = "servo")] -extern crate js; +extern crate mozjs as js; extern crate servo_arc; extern crate smallbitvec; extern crate smallvec; diff --git a/components/script/Cargo.toml b/components/script/Cargo.toml index 9523dc628c2..ebb27656941 100644 --- a/components/script/Cargo.toml +++ b/components/script/Cargo.toml @@ -12,7 +12,7 @@ name = "script" path = "lib.rs" [features] -debugmozjs = ['js/debugmozjs'] +debugmozjs = ['mozjs/debugmozjs'] unstable = ["servo_allocator/unstable"] unrooted_must_root_lint = ["script_plugins/unrooted_must_root_lint"] default = ["unrooted_must_root_lint"] @@ -51,7 +51,7 @@ hyper = "0.10" hyper_serde = "0.7" image = "0.16" ipc-channel = "0.9" -js = {git = "https://github.com/servo/rust-mozjs", features = ["promises"]} +mozjs = { version = "0.1.7", features = ["promises"]} jstraceable_derive = {path = "../jstraceable_derive"} lazy_static = "0.2" libc = "0.2" diff --git a/components/script/lib.rs b/components/script/lib.rs index 719275dc3ec..33f78b886a9 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -47,8 +47,6 @@ extern crate hyper_serde; extern crate image; extern crate ipc_channel; #[macro_use] -extern crate js; -#[macro_use] extern crate jstraceable_derive; #[macro_use] extern crate lazy_static; @@ -62,6 +60,8 @@ extern crate metrics; extern crate mime; extern crate mime_guess; extern crate mitochondria; +#[macro_use] +extern crate mozjs as js; extern crate msg; extern crate net_traits; extern crate nonzero; |