mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Rename mozjs to js in script through Cargo rather than extern crate
This commit is contained in:
parent
e217672c1a
commit
86f0431f16
2 changed files with 6 additions and 4 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
cargo-features = ["rename-dependency"]
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "script"
|
name = "script"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
|
@ -12,7 +14,7 @@ name = "script"
|
||||||
path = "lib.rs"
|
path = "lib.rs"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
debugmozjs = ['mozjs/debugmozjs']
|
debugmozjs = ['js/debugmozjs']
|
||||||
unstable = []
|
unstable = []
|
||||||
unrooted_must_root_lint = ["script_plugins/unrooted_must_root_lint"]
|
unrooted_must_root_lint = ["script_plugins/unrooted_must_root_lint"]
|
||||||
default = ["unrooted_must_root_lint"]
|
default = ["unrooted_must_root_lint"]
|
||||||
|
@ -60,6 +62,7 @@ hyper_serde = "0.9"
|
||||||
image = "0.19"
|
image = "0.19"
|
||||||
ipc-channel = "0.11"
|
ipc-channel = "0.11"
|
||||||
itertools = "0.7.6"
|
itertools = "0.7.6"
|
||||||
|
js = {package = "mozjs", version = "0.9.3"}
|
||||||
jstraceable_derive = {path = "../jstraceable_derive"}
|
jstraceable_derive = {path = "../jstraceable_derive"}
|
||||||
keyboard-types = {version = "0.4.2-servo", features = ["serde"]}
|
keyboard-types = {version = "0.4.2-servo", features = ["serde"]}
|
||||||
lazy_static = "1"
|
lazy_static = "1"
|
||||||
|
@ -71,7 +74,6 @@ metrics = {path = "../metrics"}
|
||||||
mitochondria = "1.1.2"
|
mitochondria = "1.1.2"
|
||||||
mime = "0.3"
|
mime = "0.3"
|
||||||
mime_guess = "2.0.0-alpha.6"
|
mime_guess = "2.0.0-alpha.6"
|
||||||
mozjs = "0.9.3"
|
|
||||||
msg = {path = "../msg"}
|
msg = {path = "../msg"}
|
||||||
net_traits = {path = "../net_traits"}
|
net_traits = {path = "../net_traits"}
|
||||||
num-traits = "0.2"
|
num-traits = "0.2"
|
||||||
|
|
|
@ -55,6 +55,8 @@ extern crate hyper_serde;
|
||||||
extern crate image;
|
extern crate image;
|
||||||
extern crate ipc_channel;
|
extern crate ipc_channel;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
extern crate js;
|
||||||
|
#[macro_use]
|
||||||
extern crate jstraceable_derive;
|
extern crate jstraceable_derive;
|
||||||
extern crate keyboard_types;
|
extern crate keyboard_types;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
@ -71,8 +73,6 @@ extern crate mime;
|
||||||
extern crate mime_guess;
|
extern crate mime_guess;
|
||||||
extern crate mitochondria;
|
extern crate mitochondria;
|
||||||
extern crate mozangle;
|
extern crate mozangle;
|
||||||
#[macro_use]
|
|
||||||
extern crate mozjs as js;
|
|
||||||
extern crate msg;
|
extern crate msg;
|
||||||
extern crate net_traits;
|
extern crate net_traits;
|
||||||
extern crate num_traits;
|
extern crate num_traits;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue