Rename mozjs to js in script through Cargo rather than extern crate

This commit is contained in:
Simon Sapin 2018-11-01 14:02:23 +01:00
parent e217672c1a
commit 86f0431f16
2 changed files with 6 additions and 4 deletions

View file

@ -1,3 +1,5 @@
cargo-features = ["rename-dependency"]
[package]
name = "script"
version = "0.0.1"
@ -12,7 +14,7 @@ name = "script"
path = "lib.rs"
[features]
debugmozjs = ['mozjs/debugmozjs']
debugmozjs = ['js/debugmozjs']
unstable = []
unrooted_must_root_lint = ["script_plugins/unrooted_must_root_lint"]
default = ["unrooted_must_root_lint"]
@ -60,6 +62,7 @@ hyper_serde = "0.9"
image = "0.19"
ipc-channel = "0.11"
itertools = "0.7.6"
js = {package = "mozjs", version = "0.9.3"}
jstraceable_derive = {path = "../jstraceable_derive"}
keyboard-types = {version = "0.4.2-servo", features = ["serde"]}
lazy_static = "1"
@ -71,7 +74,6 @@ metrics = {path = "../metrics"}
mitochondria = "1.1.2"
mime = "0.3"
mime_guess = "2.0.0-alpha.6"
mozjs = "0.9.3"
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
num-traits = "0.2"

View file

@ -55,6 +55,8 @@ extern crate hyper_serde;
extern crate image;
extern crate ipc_channel;
#[macro_use]
extern crate js;
#[macro_use]
extern crate jstraceable_derive;
extern crate keyboard_types;
#[macro_use]
@ -71,8 +73,6 @@ extern crate mime;
extern crate mime_guess;
extern crate mitochondria;
extern crate mozangle;
#[macro_use]
extern crate mozjs as js;
extern crate msg;
extern crate net_traits;
extern crate num_traits;