mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Remove some unused dependency declarations
This is based on compiling with `RUSTFLAGS="-W unused_crate_dependencies"` (CC https://github.com/rust-lang/rust/pull/72342) in a recent Nightly (more so than used in the tree as of this writing, CC https://github.com/servo/servo/issues/26661 for work-arounds). Only one crate is actually removed from the dependency graph, others are still dependended from other places.
This commit is contained in:
parent
c389d7d8c0
commit
d4227b5b0d
20 changed files with 7 additions and 57 deletions
|
@ -21,7 +21,6 @@ byteorder = "1"
|
|||
canvas_traits = { path = "../canvas_traits" }
|
||||
crossbeam-channel = "0.4"
|
||||
cssparser = "0.27"
|
||||
embedder_traits = { path = "../embedder_traits" }
|
||||
euclid = "0.20"
|
||||
fnv = "1.0"
|
||||
gleam = "0.11"
|
||||
|
|
|
@ -37,7 +37,6 @@ profile_traits = { path = "../profile_traits" }
|
|||
script_traits = { path = "../script_traits" }
|
||||
serde = "1.0"
|
||||
servo_config = { path = "../config" }
|
||||
servo_geometry = { path = "../geometry" }
|
||||
servo_rand = {path = "../rand" }
|
||||
servo_remutex = { path = "../remutex" }
|
||||
servo_url = { path = "../url" }
|
||||
|
|
|
@ -17,11 +17,9 @@ app_units = "0.7"
|
|||
atomic_refcell = "0.1"
|
||||
bitflags = "1.0"
|
||||
canvas_traits = { path = "../canvas_traits" }
|
||||
crossbeam-channel = "0.4"
|
||||
embedder_traits = { path = "../embedder_traits" }
|
||||
euclid = "0.20"
|
||||
fnv = "1.0"
|
||||
fxhash = "0.2"
|
||||
gfx = { path = "../gfx" }
|
||||
gfx_traits = { path = "../gfx_traits" }
|
||||
html5ever = "0.25"
|
||||
|
|
|
@ -39,7 +39,6 @@ script_traits = { path = "../script_traits" }
|
|||
serde = "1.0"
|
||||
serde_json = "1.0"
|
||||
servo_arc = { path = "../servo_arc" }
|
||||
servo_geometry = { path = "../geometry" }
|
||||
servo_url = { path = "../url" }
|
||||
style = { path = "../style", features = ["servo", "servo-layout-2020"] }
|
||||
style_traits = { path = "../style_traits" }
|
||||
|
|
|
@ -45,7 +45,6 @@ servo_allocator = { path = "../allocator" }
|
|||
servo_arc = { path = "../servo_arc" }
|
||||
servo_atoms = { path = "../atoms" }
|
||||
servo_config = { path = "../config" }
|
||||
servo_geometry = { path = "../geometry" }
|
||||
servo_url = { path = "../url" }
|
||||
style = { path = "../style" }
|
||||
style_traits = { path = "../style_traits" }
|
||||
|
|
|
@ -42,9 +42,7 @@ servo_allocator = { path = "../allocator" }
|
|||
servo_arc = { path = "../servo_arc" }
|
||||
servo_atoms = { path = "../atoms" }
|
||||
servo_config = { path = "../config" }
|
||||
servo_geometry = { path = "../geometry" }
|
||||
servo_url = { path = "../url" }
|
||||
style = { path = "../style" }
|
||||
style_traits = { path = "../style_traits" }
|
||||
time = "0.1.17"
|
||||
webrender_api = { git = "https://github.com/servo/webrender" }
|
||||
|
|
|
@ -12,7 +12,6 @@ path = "lib.rs"
|
|||
|
||||
[dependencies]
|
||||
crossbeam-channel = "0.4"
|
||||
euclid = "0.20"
|
||||
gfx = { path = "../gfx" }
|
||||
ipc-channel = "0.14"
|
||||
metrics = { path = "../metrics" }
|
||||
|
@ -20,6 +19,5 @@ msg = { path = "../msg" }
|
|||
net_traits = { path = "../net_traits" }
|
||||
profile_traits = { path = "../profile_traits" }
|
||||
script_traits = { path = "../script_traits" }
|
||||
servo_geometry = { path = "../geometry" }
|
||||
servo_url = { path = "../url" }
|
||||
webrender_api = { git = "https://github.com/servo/webrender" }
|
||||
|
|
|
@ -19,7 +19,6 @@ malloc_size_of = { path = "../malloc_size_of" }
|
|||
malloc_size_of_derive = "0.1"
|
||||
parking_lot = "0.10"
|
||||
serde = "1.0.60"
|
||||
servo_url = { path = "../url" }
|
||||
webrender_api = { git = "https://github.com/servo/webrender" }
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
@ -44,3 +44,6 @@ pub mod test {
|
|||
pub use crate::hosts::{parse_hostsfile, replace_host_table};
|
||||
pub use crate::http_loader::HttpState;
|
||||
}
|
||||
|
||||
// This dependency gives `build.rs` access to the `DEP_OPENSSL_VERSION_NUMBER` env variable.
|
||||
use openssl_sys as _;
|
||||
|
|
|
@ -19,7 +19,6 @@ serde = "1.0"
|
|||
serde_json = "1.0"
|
||||
servo_config = {path = "../config"}
|
||||
time_crate = {package = "time", version = "0.1.12"}
|
||||
tokio = "0.1"
|
||||
|
||||
[target.'cfg(target_os = "macos")'.dependencies]
|
||||
task_info = {path = "../../support/rust-task_info"}
|
||||
|
|
|
@ -14,7 +14,6 @@ path = "lib.rs"
|
|||
energy-profiling = ["energymon", "energy-monitor"]
|
||||
|
||||
[dependencies]
|
||||
bincode = "1"
|
||||
crossbeam-channel = "0.4"
|
||||
energy-monitor = {version = "0.2.0", optional = true}
|
||||
energymon = {git = "https://github.com/energymon/energymon-rust.git", optional = true}
|
||||
|
|
|
@ -34,11 +34,9 @@ accountable-refcell = { version = "0.2.0", optional = true }
|
|||
app_units = "0.7"
|
||||
backtrace = { version = "0.3", optional = true }
|
||||
base64 = "0.10.1"
|
||||
bincode = "1"
|
||||
bitflags = "1.0"
|
||||
bluetooth_traits = { path = "../bluetooth_traits" }
|
||||
canvas_traits = { path = "../canvas_traits" }
|
||||
caseless = "0.2"
|
||||
chrono = "0.4"
|
||||
content-security-policy = { version = "0.4.0", features = ["serde"] }
|
||||
cookie = "0.11"
|
||||
|
|
|
@ -40,7 +40,6 @@ servo_url = {path = "../url"}
|
|||
smallvec = "0.6"
|
||||
style_traits = {path = "../style_traits", features = ["servo"]}
|
||||
time = "0.1.12"
|
||||
url = "2.0"
|
||||
uuid = {version = "0.8", features = ["v4"]}
|
||||
webdriver = "0.40"
|
||||
webgpu = {path = "../webgpu"}
|
||||
|
|
|
@ -16,7 +16,8 @@ path = "lib.rs"
|
|||
doctest = false
|
||||
|
||||
[features]
|
||||
gecko = ["style_traits/gecko", "fallible/known_system_malloc", "bindgen", "regex", "toml"]
|
||||
gecko = ["style_traits/gecko", "fallible/known_system_malloc", "bindgen", "regex", "toml",
|
||||
"num_cpus", "thin-slice"]
|
||||
servo = ["serde", "style_traits/servo", "servo_atoms", "servo_config", "html5ever",
|
||||
"cssparser/serde", "encoding_rs", "malloc_size_of/servo", "servo_url",
|
||||
"string_cache", "to_shmem/servo",
|
||||
|
@ -49,7 +50,7 @@ lazy_static = "1"
|
|||
log = { version = "0.4", features = ["std"] }
|
||||
malloc_size_of = { path = "../malloc_size_of" }
|
||||
malloc_size_of_derive = "0.1"
|
||||
num_cpus = {version = "1.1.0"}
|
||||
num_cpus = {version = "1.1.0", optional = true}
|
||||
num-integer = "0.1"
|
||||
num-traits = "0.2"
|
||||
num-derive = "0.3"
|
||||
|
@ -68,7 +69,7 @@ string_cache = { version = "0.8", optional = true }
|
|||
style_derive = {path = "../style_derive"}
|
||||
style_traits = {path = "../style_traits"}
|
||||
servo_url = {path = "../url", optional = true}
|
||||
thin-slice = "0.1.0"
|
||||
thin-slice = {version = "0.1.0", optional = true}
|
||||
to_shmem = {path = "../to_shmem"}
|
||||
to_shmem_derive = {path = "../to_shmem_derive"}
|
||||
time = "0.1"
|
||||
|
|
|
@ -29,6 +29,5 @@ script_traits = {path = "../script_traits"}
|
|||
servo_config = {path = "../config"}
|
||||
servo_url = {path = "../url"}
|
||||
style_traits = {path = "../style_traits"}
|
||||
url = "2.0"
|
||||
uuid = {version = "0.8", features = ["v4"]}
|
||||
webdriver = "0.40"
|
||||
|
|
|
@ -11,7 +11,6 @@ name = "webgpu"
|
|||
path = "lib.rs"
|
||||
|
||||
[dependencies]
|
||||
embedder_traits = {path = "../embedder_traits"}
|
||||
ipc-channel = "0.14"
|
||||
log = "0.4"
|
||||
malloc_size_of = { path = "../malloc_size_of" }
|
||||
|
|
|
@ -12,6 +12,5 @@ path = "lib.rs"
|
|||
|
||||
[dependencies]
|
||||
euclid = "0.20"
|
||||
servo_geometry = {path = "../geometry"}
|
||||
webrender_api = {git = "https://github.com/servo/webrender"}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue