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 _;

0 commit comments

Comments
 (0)