Skip to content

Commit 0fc17e9

Browse files
nnethercotealice-i-cecilejames7132
authored
Trim dependencies. (#20426)
# Objective Remove unneeded dependencies. ## Solution Found using `cargo-shear`, `cargo-machete`, and `cargo-udeps`. They all do the same thing (identify unused dependencies), they are all so-so at it (with lots of false negatives and positives) but the combination of all three is enough to get a useful outcome. ## Testing - I double-checked all the removals by grepping for each removed dependency's name within the affected crate, to make sure there weren't any uses remaining. I think they're all ok. - `cargo run -p ci` Co-authored-by: Alice Cecile <[email protected]> Co-authored-by: James Liu <[email protected]>
1 parent e6ec2c1 commit 0fc17e9

File tree

6 files changed

+0
-16
lines changed

6 files changed

+0
-16
lines changed

Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -627,17 +627,11 @@ crossbeam-channel = "0.5.0"
627627
argh = "0.1.12"
628628
thiserror = "2.0"
629629
event-listener = "5.3.0"
630-
hyper = { version = "1", features = ["server", "http1"] }
631-
http-body-util = "0.1"
632630
anyhow = "1"
633-
macro_rules_attribute = "0.2"
634631
accesskit = "0.21"
635632
nonmax = "0.5"
636633

637634
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
638-
smol = "2"
639-
smol-macros = "0.1"
640-
smol-hyper = "0.1"
641635
ureq = { version = "3.0.8", features = ["json"] }
642636

643637
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]

benches/Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ bevy_picking = { path = "../crates/bevy_picking", features = [
2323
bevy_reflect = { path = "../crates/bevy_reflect", features = ["functions"] }
2424
bevy_render = { path = "../crates/bevy_render" }
2525
bevy_tasks = { path = "../crates/bevy_tasks" }
26-
bevy_utils = { path = "../crates/bevy_utils" }
2726
bevy_platform = { path = "../crates/bevy_platform", default-features = false, features = [
2827
"std",
2928
] }
@@ -34,11 +33,6 @@ rand = "0.8"
3433
rand_chacha = "0.3"
3534
nonmax = { version = "0.5", default-features = false }
3635

37-
# Make `bevy_render` compile on Linux with x11 windowing. x11 vs. Wayland does not matter here
38-
# because the benches do not actually open any windows.
39-
[target.'cfg(target_os = "linux")'.dev-dependencies]
40-
bevy_winit = { path = "../crates/bevy_winit", features = ["x11"] }
41-
4236
[lints.clippy]
4337
doc_markdown = "warn"
4438
manual_let_else = "warn"

crates/bevy_render/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ bevy_platform = { path = "../bevy_platform", version = "0.17.0-dev", default-fea
8686
image = { version = "0.25.2", default-features = false }
8787

8888
# misc
89-
codespan-reporting = "0.12.0"
9089
# `fragile-send-sync-non-atomic-wasm` feature means we can't use Wasm threads for rendering
9190
# It is enabled for now to avoid having to do a significant overhaul of the renderer just for wasm.
9291
# When the 'atomics' feature is enabled `fragile-send-sync-non-atomic` does nothing

crates/bevy_text/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ cosmic-text = { version = "0.14", features = ["shape-run-cache"] }
3737
thiserror = { version = "2", default-features = false }
3838
serde = { version = "1", features = ["derive"] }
3939
smallvec = { version = "1", default-features = false }
40-
unicode-bidi = "0.3.13"
4140
sys-locale = "0.3.0"
4241
tracing = { version = "0.1", default-features = false, features = ["std"] }
4342

crates/bevy_winit/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ bevy_android = { path = "../bevy_android", version = "0.17.0-dev", default-featu
7575
[target.'cfg(target_arch = "wasm32")'.dependencies]
7676
wasm-bindgen = { version = "0.2" }
7777
web-sys = "0.3"
78-
crossbeam-channel = "0.5"
7978
# TODO: Assuming all wasm builds are for the browser. Require `no_std` support to break assumption.
8079
bevy_app = { path = "../bevy_app", version = "0.17.0-dev", default-features = false, features = [
8180
"web",

tools/example-showcase/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ license = "MIT OR Apache-2.0"
88
[dependencies]
99
xshell = "0.2"
1010
clap = { version = "4.0", features = ["derive"] }
11-
ron = "0.10"
1211
toml_edit = { version = "0.22.7", default-features = false, features = [
1312
"parse",
1413
] }

0 commit comments

Comments
 (0)