mirror of
https://github.com/servo/servo.git
synced 2025-06-20 07:08:59 +01:00
Remove unnecessary dependencies and features from top-level Cargo.tomls
The features for each crate will be computed based on the union of features specified in the dependency graph. Specifying the same ones again just adds more ways for them to get out of sync.
This commit is contained in:
parent
cce565466d
commit
b2e874e151
11 changed files with 15 additions and 37 deletions
|
@ -63,6 +63,6 @@ smallvec = "0.1"
|
||||||
string_cache = {version = "0.2.12", features = ["heap_size", "unstable"]}
|
string_cache = {version = "0.2.12", features = ["heap_size", "unstable"]}
|
||||||
time = "0.1.12"
|
time = "0.1.12"
|
||||||
unicase = "1.0"
|
unicase = "1.0"
|
||||||
url = {version = "1.0.0", features = ["heap_size"]}
|
url = {version = "1.0.0", features = ["heap_size", "query_encoding"]}
|
||||||
uuid = { version = "0.2", features = ["v4"] }
|
uuid = { version = "0.2", features = ["v4"] }
|
||||||
websocket = "0.17"
|
websocket = "0.17"
|
||||||
|
|
1
components/servo/Cargo.lock
generated
1
components/servo/Cargo.lock
generated
|
@ -19,7 +19,6 @@ dependencies = [
|
||||||
"glutin_app 0.0.1",
|
"glutin_app 0.0.1",
|
||||||
"image 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"image 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)",
|
"ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)",
|
||||||
"layers 0.2.5 (git+https://github.com/servo/rust-layers)",
|
|
||||||
"layout 0.0.1",
|
"layout 0.0.1",
|
||||||
"layout_tests 0.0.1",
|
"layout_tests 0.0.1",
|
||||||
"libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
"libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|
|
@ -65,18 +65,17 @@ devtools = {path = "../devtools"}
|
||||||
webdriver_server = {path = "../webdriver_server", optional = true}
|
webdriver_server = {path = "../webdriver_server", optional = true}
|
||||||
devtools_traits = {path = "../devtools_traits"}
|
devtools_traits = {path = "../devtools_traits"}
|
||||||
glutin_app = {path = "../../ports/glutin", optional = true}
|
glutin_app = {path = "../../ports/glutin", optional = true}
|
||||||
android_glue = {version = "0.1.3", optional = true}
|
|
||||||
ipc-channel = {git = "https://github.com/servo/ipc-channel"}
|
ipc-channel = {git = "https://github.com/servo/ipc-channel"}
|
||||||
layers = {git = "https://github.com/servo/rust-layers", features = ["plugins"]}
|
|
||||||
gleam = "0.2"
|
gleam = "0.2"
|
||||||
browserhtml = {git = "https://github.com/browserhtml/browserhtml", branch = "gh-pages"}
|
browserhtml = {git = "https://github.com/browserhtml/browserhtml", branch = "gh-pages"}
|
||||||
env_logger = "0.3"
|
env_logger = "0.3"
|
||||||
euclid = {version = "0.6.4", features = ["plugins"]}
|
euclid = "0.6.4"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
url = {version = "1.0.0", features = ["heap_size", "serde", "query_encoding"]}
|
url = "1.0.0"
|
||||||
|
|
||||||
[target.'cfg(target_os = "android")'.dependencies]
|
[target.'cfg(target_os = "android")'.dependencies]
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
|
android_glue = "0.1.3"
|
||||||
|
|
||||||
[target.'cfg(not(target_os = "windows"))'.dependencies]
|
[target.'cfg(not(target_os = "windows"))'.dependencies]
|
||||||
gaol = {git = "https://github.com/servo/gaol"}
|
gaol = {git = "https://github.com/servo/gaol"}
|
||||||
|
|
|
@ -30,7 +30,6 @@ pub extern crate devtools_traits;
|
||||||
pub extern crate euclid;
|
pub extern crate euclid;
|
||||||
pub extern crate gfx;
|
pub extern crate gfx;
|
||||||
pub extern crate ipc_channel;
|
pub extern crate ipc_channel;
|
||||||
pub extern crate layers;
|
|
||||||
pub extern crate layout;
|
pub extern crate layout;
|
||||||
pub extern crate msg;
|
pub extern crate msg;
|
||||||
pub extern crate net;
|
pub extern crate net;
|
||||||
|
|
7
ports/cef/Cargo.lock
generated
7
ports/cef/Cargo.lock
generated
|
@ -2,7 +2,6 @@
|
||||||
name = "embedding"
|
name = "embedding"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"azure 0.4.5 (git+https://github.com/servo/rust-azure)",
|
|
||||||
"cgl 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"cgl 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"cocoa 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"cocoa 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"compositing 0.0.1",
|
"compositing 0.0.1",
|
||||||
|
@ -11,10 +10,8 @@ dependencies = [
|
||||||
"core-text 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"core-text 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"devtools 0.0.1",
|
"devtools 0.0.1",
|
||||||
"euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
"euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gfx 0.0.1",
|
|
||||||
"gleam 0.2.17 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gleam 0.2.17 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"glutin_app 0.0.1",
|
"glutin_app 0.0.1",
|
||||||
"js 0.1.2 (git+https://github.com/servo/rust-mozjs)",
|
|
||||||
"layers 0.2.5 (git+https://github.com/servo/rust-layers)",
|
"layers 0.2.5 (git+https://github.com/servo/rust-layers)",
|
||||||
"libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
"libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
"log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -22,10 +19,8 @@ dependencies = [
|
||||||
"net_traits 0.0.1",
|
"net_traits 0.0.1",
|
||||||
"objc 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"objc 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"plugins 0.0.1",
|
"plugins 0.0.1",
|
||||||
"script 0.0.1",
|
|
||||||
"script_traits 0.0.1",
|
"script_traits 0.0.1",
|
||||||
"servo 0.0.1",
|
"servo 0.0.1",
|
||||||
"style 0.0.1",
|
|
||||||
"style_traits 0.0.1",
|
"style_traits 0.0.1",
|
||||||
"url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"util 0.0.1",
|
"util 0.0.1",
|
||||||
|
@ -1836,6 +1831,7 @@ dependencies = [
|
||||||
name = "servo"
|
name = "servo"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"android_glue 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"browserhtml 0.1.5 (git+https://github.com/browserhtml/browserhtml?branch=gh-pages)",
|
"browserhtml 0.1.5 (git+https://github.com/browserhtml/browserhtml?branch=gh-pages)",
|
||||||
"canvas 0.0.1",
|
"canvas 0.0.1",
|
||||||
"canvas_traits 0.0.1",
|
"canvas_traits 0.0.1",
|
||||||
|
@ -1849,7 +1845,6 @@ dependencies = [
|
||||||
"gleam 0.2.17 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gleam 0.2.17 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"glutin_app 0.0.1",
|
"glutin_app 0.0.1",
|
||||||
"ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)",
|
"ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)",
|
||||||
"layers 0.2.5 (git+https://github.com/servo/rust-layers)",
|
|
||||||
"layout 0.0.1",
|
"layout 0.0.1",
|
||||||
"libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
"libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
"log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|
|
@ -16,27 +16,22 @@ codegen-units = 4
|
||||||
# lto = false
|
# lto = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
euclid = {version = "0.6.4", features = ["plugins"]}
|
euclid = "0.6.4"
|
||||||
gleam = "0.2.8"
|
gleam = "0.2.8"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
url = {version = "1.0.0", features = ["heap_size"]}
|
url = "1.0.0"
|
||||||
servo = {path = "../../components/servo"}
|
servo = {path = "../../components/servo"}
|
||||||
glutin_app = {path = "../glutin"}
|
glutin_app = {path = "../glutin"}
|
||||||
plugins = {path = "../../components/plugins"}
|
plugins = {path = "../../components/plugins"}
|
||||||
compositing = {path = "../../components/compositing"}
|
compositing = {path = "../../components/compositing"}
|
||||||
gfx = {path = "../../components/gfx"}
|
|
||||||
log = {version = "0.3.5", features = ["release_max_level_info"]}
|
log = {version = "0.3.5", features = ["release_max_level_info"]}
|
||||||
script = {path = "../../components/script"}
|
|
||||||
script_traits = {path = "../../components/script_traits"}
|
script_traits = {path = "../../components/script_traits"}
|
||||||
net_traits = {path = "../../components/net_traits"}
|
net_traits = {path = "../../components/net_traits"}
|
||||||
msg = {path = "../../components/msg"}
|
msg = {path = "../../components/msg"}
|
||||||
util = {path = "../../components/util", features = ["non-geckolib"]}
|
util = {path = "../../components/util", features = ["non-geckolib"]}
|
||||||
style = {path = "../../components/style"}
|
|
||||||
style_traits = {path = "../../components/style_traits"}
|
style_traits = {path = "../../components/style_traits"}
|
||||||
devtools = {path = "../../components/devtools"}
|
devtools = {path = "../../components/devtools"}
|
||||||
azure = {git = "https://github.com/servo/rust-azure", features = ["plugins"]}
|
layers = {git = "https://github.com/servo/rust-layers"}
|
||||||
js = {git = "https://github.com/servo/rust-mozjs"}
|
|
||||||
layers = {git = "https://github.com/servo/rust-layers", features = ["plugins"]}
|
|
||||||
|
|
||||||
[target.'cfg(target_os="macos")'.dependencies]
|
[target.'cfg(target_os="macos")'.dependencies]
|
||||||
objc = "0.2"
|
objc = "0.2"
|
||||||
|
|
|
@ -22,21 +22,16 @@ extern crate log;
|
||||||
extern crate servo;
|
extern crate servo;
|
||||||
extern crate compositing;
|
extern crate compositing;
|
||||||
|
|
||||||
extern crate azure;
|
|
||||||
extern crate euclid;
|
extern crate euclid;
|
||||||
extern crate gfx;
|
|
||||||
extern crate gleam;
|
extern crate gleam;
|
||||||
extern crate glutin_app;
|
extern crate glutin_app;
|
||||||
extern crate js;
|
|
||||||
extern crate layers;
|
extern crate layers;
|
||||||
extern crate rustc_unicode;
|
extern crate rustc_unicode;
|
||||||
extern crate script;
|
|
||||||
extern crate script_traits;
|
extern crate script_traits;
|
||||||
|
|
||||||
extern crate net_traits;
|
extern crate net_traits;
|
||||||
extern crate msg;
|
extern crate msg;
|
||||||
extern crate util;
|
extern crate util;
|
||||||
extern crate style;
|
|
||||||
extern crate style_traits;
|
extern crate style_traits;
|
||||||
|
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
|
|
1
ports/geckolib/Cargo.lock
generated
1
ports/geckolib/Cargo.lock
generated
|
@ -618,7 +618,6 @@ name = "url"
|
||||||
version = "1.1.0"
|
version = "1.1.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"encoding 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
||||||
"heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
"heapsize 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"heapsize_plugin 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"heapsize_plugin 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"idna 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"idna 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|
|
@ -11,18 +11,18 @@ path = "lib.rs"
|
||||||
crate-type = ["staticlib"]
|
crate-type = ["staticlib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
app_units = {version = "0.2.3", features = ["plugins"]}
|
app_units = "0.2.3"
|
||||||
cssparser = {version = "0.5.4", features = ["heap_size", "serde-serialization"]}
|
cssparser = "0.5.4"
|
||||||
euclid = {version = "0.6.4", features = ["plugins"]}
|
euclid = "0.6.4"
|
||||||
heapsize = "0.3.0"
|
heapsize = "0.3.0"
|
||||||
heapsize_plugin = "0.1.2"
|
heapsize_plugin = "0.1.2"
|
||||||
lazy_static = "0.2"
|
lazy_static = "0.2"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
num_cpus = "0.2.2"
|
num_cpus = "0.2.2"
|
||||||
selectors = {version = "0.5", features = ["heap_size", "unstable"]}
|
selectors = "0.5"
|
||||||
smallvec = "0.1"
|
smallvec = "0.1"
|
||||||
string_cache = {version = "0.2.12", features = ["heap_size", "unstable"]}
|
string_cache = "0.2.12"
|
||||||
url = {version = "1.0.0", features = ["heap_size", "query_encoding", "serde"]}
|
url = "1.0.0"
|
||||||
log = {version = "0.3.5", features = ["release_max_level_info"]}
|
log = {version = "0.3.5", features = ["release_max_level_info"]}
|
||||||
plugins = {path = "../../components/plugins"}
|
plugins = {path = "../../components/plugins"}
|
||||||
util = {path = "../../components/util"}
|
util = {path = "../../components/util"}
|
||||||
|
|
2
ports/gonk/Cargo.lock
generated
2
ports/gonk/Cargo.lock
generated
|
@ -1819,6 +1819,7 @@ dependencies = [
|
||||||
name = "servo"
|
name = "servo"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"android_glue 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"browserhtml 0.1.5 (git+https://github.com/browserhtml/browserhtml?branch=gh-pages)",
|
"browserhtml 0.1.5 (git+https://github.com/browserhtml/browserhtml?branch=gh-pages)",
|
||||||
"canvas 0.0.1",
|
"canvas 0.0.1",
|
||||||
"canvas_traits 0.0.1",
|
"canvas_traits 0.0.1",
|
||||||
|
@ -1831,7 +1832,6 @@ dependencies = [
|
||||||
"gfx 0.0.1",
|
"gfx 0.0.1",
|
||||||
"gleam 0.2.17 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gleam 0.2.17 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)",
|
"ipc-channel 0.2.2 (git+https://github.com/servo/ipc-channel)",
|
||||||
"layers 0.2.5 (git+https://github.com/servo/rust-layers)",
|
|
||||||
"layout 0.0.1",
|
"layout 0.0.1",
|
||||||
"libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
"libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
"log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|
|
@ -197,9 +197,6 @@ class MachCommands(CommandBase):
|
||||||
if debug_mozjs or self.config["build"]["debug-mozjs"]:
|
if debug_mozjs or self.config["build"]["debug-mozjs"]:
|
||||||
features += ["script/debugmozjs"]
|
features += ["script/debugmozjs"]
|
||||||
|
|
||||||
if android:
|
|
||||||
features += ["android_glue"]
|
|
||||||
|
|
||||||
if features:
|
if features:
|
||||||
opts += ["--features", "%s" % ' '.join(features)]
|
opts += ["--features", "%s" % ' '.join(features)]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue