Skip to content

Commit b4b16ae

Browse files
SimonSapinskrzyp1
authored andcommitted
Remove some unused dependency declarations
This is based on compiling with `RUSTFLAGS="-W unused_crate_dependencies"` (CC rust-lang/rust#72342) in a recent Nightly (more so than used in the tree as of this writing, CC servo#26661 for work-arounds). Only one crate is actually removed from the dependency graph, others are still dependended from other places.
1 parent b5911bf commit b4b16ae

File tree

20 files changed

+7
-57
lines changed

20 files changed

+7
-57
lines changed

Cargo.lock

Lines changed: 0 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/canvas/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ byteorder = "1"
2121
canvas_traits = { path = "../canvas_traits" }
2222
crossbeam-channel = "0.4"
2323
cssparser = "0.27"
24-
embedder_traits = { path = "../embedder_traits" }
2524
euclid = "0.20"
2625
fnv = "1.0"
2726
gleam = "0.11"

components/constellation/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ profile_traits = { path = "../profile_traits" }
3737
script_traits = { path = "../script_traits" }
3838
serde = "1.0"
3939
servo_config = { path = "../config" }
40-
servo_geometry = { path = "../geometry" }
4140
servo_rand = {path = "../rand" }
4241
servo_remutex = { path = "../remutex" }
4342
servo_url = { path = "../url" }

components/layout/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ app_units = "0.7"
1717
atomic_refcell = "0.1"
1818
bitflags = "1.0"
1919
canvas_traits = { path = "../canvas_traits" }
20-
crossbeam-channel = "0.4"
2120
embedder_traits = { path = "../embedder_traits" }
2221
euclid = "0.20"
2322
fnv = "1.0"
24-
fxhash = "0.2"
2523
gfx = { path = "../gfx" }
2624
gfx_traits = { path = "../gfx_traits" }
2725
html5ever = "0.25"

components/layout_2020/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ script_traits = { path = "../script_traits" }
3939
serde = "1.0"
4040
serde_json = "1.0"
4141
servo_arc = { path = "../servo_arc" }
42-
servo_geometry = { path = "../geometry" }
4342
servo_url = { path = "../url" }
4443
style = { path = "../style", features = ["servo", "servo-layout-2020"] }
4544
style_traits = { path = "../style_traits" }

components/layout_thread/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ servo_allocator = { path = "../allocator" }
4545
servo_arc = { path = "../servo_arc" }
4646
servo_atoms = { path = "../atoms" }
4747
servo_config = { path = "../config" }
48-
servo_geometry = { path = "../geometry" }
4948
servo_url = { path = "../url" }
5049
style = { path = "../style" }
5150
style_traits = { path = "../style_traits" }

components/layout_thread_2020/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ servo_allocator = { path = "../allocator" }
4242
servo_arc = { path = "../servo_arc" }
4343
servo_atoms = { path = "../atoms" }
4444
servo_config = { path = "../config" }
45-
servo_geometry = { path = "../geometry" }
4645
servo_url = { path = "../url" }
4746
style = { path = "../style" }
4847
style_traits = { path = "../style_traits" }
49-
time = "0.1.17"
5048
webrender_api = { git = "https://github.com/servo/webrender" }

components/layout_traits/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ path = "lib.rs"
1212

1313
[dependencies]
1414
crossbeam-channel = "0.4"
15-
euclid = "0.20"
1615
gfx = { path = "../gfx" }
1716
ipc-channel = "0.14"
1817
metrics = { path = "../metrics" }
1918
msg = { path = "../msg" }
2019
net_traits = { path = "../net_traits" }
2120
profile_traits = { path = "../profile_traits" }
2221
script_traits = { path = "../script_traits" }
23-
servo_geometry = { path = "../geometry" }
2422
servo_url = { path = "../url" }
2523
webrender_api = { git = "https://github.com/servo/webrender" }

components/msg/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ malloc_size_of = { path = "../malloc_size_of" }
1919
malloc_size_of_derive = "0.1"
2020
parking_lot = "0.10"
2121
serde = "1.0.60"
22-
servo_url = { path = "../url" }
2322
webrender_api = { git = "https://github.com/servo/webrender" }
2423

2524
[dev-dependencies]

components/net/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ pub mod test {
4444
pub use crate::hosts::{parse_hostsfile, replace_host_table};
4545
pub use crate::http_loader::HttpState;
4646
}
47+
48+
// This dependency gives `build.rs` access to the `DEP_OPENSSL_VERSION_NUMBER` env variable.
49+
use openssl_sys as _;

components/profile/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ serde = "1.0"
1919
serde_json = "1.0"
2020
servo_config = {path = "../config"}
2121
time_crate = {package = "time", version = "0.1.12"}
22-
tokio = "0.1"
2322

2423
[target.'cfg(target_os = "macos")'.dependencies]
2524
task_info = {path = "../../support/rust-task_info"}

components/profile_traits/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ path = "lib.rs"
1414
energy-profiling = ["energymon", "energy-monitor"]
1515

1616
[dependencies]
17-
bincode = "1"
1817
crossbeam-channel = "0.4"
1918
energy-monitor = {version = "0.2.0", optional = true}
2019
energymon = {git = "https://github.com/energymon/energymon-rust.git", optional = true}

components/script/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ accountable-refcell = { version = "0.2.0", optional = true }
3434
app_units = "0.7"
3535
backtrace = { version = "0.3", optional = true }
3636
base64 = "0.10.1"
37-
bincode = "1"
3837
bitflags = "1.0"
3938
bluetooth_traits = { path = "../bluetooth_traits" }
4039
canvas_traits = { path = "../canvas_traits" }
41-
caseless = "0.2"
4240
chrono = "0.4"
4341
content-security-policy = { version = "0.4.0", features = ["serde"] }
4442
cookie = "0.11"

components/script_traits/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ servo_url = {path = "../url"}
4040
smallvec = "0.6"
4141
style_traits = {path = "../style_traits", features = ["servo"]}
4242
time = "0.1.12"
43-
url = "2.0"
4443
uuid = {version = "0.8", features = ["v4"]}
4544
webdriver = "0.40"
4645
webgpu = {path = "../webgpu"}

components/style/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ path = "lib.rs"
1616
doctest = false
1717

1818
[features]
19-
gecko = ["style_traits/gecko", "fallible/known_system_malloc", "bindgen", "regex", "toml"]
19+
gecko = ["style_traits/gecko", "fallible/known_system_malloc", "bindgen", "regex", "toml",
20+
"num_cpus", "thin-slice"]
2021
servo = ["serde", "style_traits/servo", "servo_atoms", "servo_config", "html5ever",
2122
"cssparser/serde", "encoding_rs", "malloc_size_of/servo", "servo_url",
2223
"string_cache", "to_shmem/servo",
@@ -49,7 +50,7 @@ lazy_static = "1"
4950
log = { version = "0.4", features = ["std"] }
5051
malloc_size_of = { path = "../malloc_size_of" }
5152
malloc_size_of_derive = "0.1"
52-
num_cpus = {version = "1.1.0"}
53+
num_cpus = {version = "1.1.0", optional = true}
5354
num-integer = "0.1"
5455
num-traits = "0.2"
5556
num-derive = "0.3"
@@ -68,7 +69,7 @@ string_cache = { version = "0.8", optional = true }
6869
style_derive = {path = "../style_derive"}
6970
style_traits = {path = "../style_traits"}
7071
servo_url = {path = "../url", optional = true}
71-
thin-slice = "0.1.0"
72+
thin-slice = {version = "0.1.0", optional = true}
7273
to_shmem = {path = "../to_shmem"}
7374
to_shmem_derive = {path = "../to_shmem_derive"}
7475
time = "0.1"

components/webdriver_server/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,5 @@ script_traits = {path = "../script_traits"}
2929
servo_config = {path = "../config"}
3030
servo_url = {path = "../url"}
3131
style_traits = {path = "../style_traits"}
32-
url = "2.0"
3332
uuid = {version = "0.8", features = ["v4"]}
3433
webdriver = "0.40"

components/webgpu/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ name = "webgpu"
1111
path = "lib.rs"
1212

1313
[dependencies]
14-
embedder_traits = {path = "../embedder_traits"}
1514
ipc-channel = "0.14"
1615
log = "0.4"
1716
malloc_size_of = { path = "../malloc_size_of" }

components/webrender_traits/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ path = "lib.rs"
1212

1313
[dependencies]
1414
euclid = "0.20"
15-
servo_geometry = {path = "../geometry"}
1615
webrender_api = {git = "https://github.com/servo/webrender"}
1716

ports/gstplugin/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ path = "lib.rs"
1717
[dependencies]
1818
crossbeam-channel = "0.4"
1919
euclid = "0.20"
20-
gleam = "0.11"
2120
glib = "0.9"
2221
gstreamer = "0.15"
2322
gstreamer-base = "0.15"

ports/winit/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ backtrace = "0.3"
5252
clipboard = "0.5"
5353
euclid = "0.20"
5454
getopts = "0.2.11"
55-
gleam = "0.11"
5655
keyboard-types = "0.4.3"
5756
lazy_static = "1"
5857
libc = "0.2"
@@ -63,7 +62,6 @@ shellwords = "1.0.0"
6362
surfman = { version = "0.2", features = ["sm-winit", "sm-x11"] }
6463
tinyfiledialogs = "3.0"
6564
webxr = { git = "https://github.com/servo/webxr", features = ["ipc", "glwindow", "headless"] }
66-
webxr-api = { git = "https://github.com/servo/webxr", features = ["ipc"] }
6765
winit = "0.19"
6866

6967
[target.'cfg(any(target_os = "linux", target_os = "windows"))'.dependencies]

0 commit comments

Comments
 (0)