Skip to content

Commit 2f6e61e

Browse files
committed
Trim dependencies.
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.
1 parent b807286 commit 2f6e61e

File tree

9 files changed

+0
-28
lines changed

9 files changed

+0
-28
lines changed

Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -613,17 +613,11 @@ crossbeam-channel = "0.5.0"
613613
argh = "0.1.12"
614614
thiserror = "2.0"
615615
event-listener = "5.3.0"
616-
hyper = { version = "1", features = ["server", "http1"] }
617-
http-body-util = "0.1"
618616
anyhow = "1"
619-
macro_rules_attribute = "0.2"
620617
accesskit = "0.19"
621618
nonmax = "0.5"
622619

623620
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
624-
smol = "2"
625-
smol-macros = "0.1"
626-
smol-hyper = "0.1"
627621
ureq = { version = "3.0.8", features = ["json"] }
628622

629623
[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_audio/Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,12 @@ bevy_reflect = { path = "../bevy_reflect", version = "0.17.0-dev" }
1818
bevy_transform = { path = "../bevy_transform", version = "0.17.0-dev" }
1919

2020
# other
21-
# TODO: Remove `coreaudio-sys` dep below when updating `cpal`.
2221
rodio = { version = "0.20", default-features = false }
2322
tracing = { version = "0.1", default-features = false, features = ["std"] }
2423

2524
[target.'cfg(target_os = "android")'.dependencies]
2625
cpal = { version = "0.15", optional = true }
2726

28-
[target.'cfg(target_vendor = "apple")'.dependencies]
29-
# NOTE: Explicitly depend on this patch version to fix:
30-
# https://github.com/bevyengine/bevy/issues/18893
31-
coreaudio-sys = { version = "0.2.17", default-features = false }
32-
3327
[target.'cfg(target_arch = "wasm32")'.dependencies]
3428
# TODO: Assuming all wasm builds are for the browser. Require `no_std` support to break assumption.
3529
rodio = { version = "0.20", default-features = false, features = [

crates/bevy_reflect/derive/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ proc-macro2 = "1.0"
2525
quote = "1.0"
2626
syn = { version = "2.0", features = ["full", "extra-traits"] }
2727

28-
[target.'cfg(target_arch = "wasm32")'.dependencies]
29-
# TODO: Assuming all wasm builds are for the browser. Require `no_std` support to break assumption.
30-
uuid = { version = "1.13.1", default-features = false, features = ["js"] }
31-
3228
[lints]
3329
workspace = true
3430

crates/bevy_render/Cargo.toml

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

8989
# misc
90-
codespan-reporting = "0.12.0"
9190
# `fragile-send-sync-non-atomic-wasm` feature means we can't use Wasm threads for rendering
9291
# It is enabled for now to avoid having to do a significant overhaul of the renderer just for wasm.
9392
# 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ accesskit_winit = { version = "0.27", default-features = false, features = [
5454
] }
5555
approx = { version = "0.5", default-features = false }
5656
cfg-if = "1.0"
57-
raw-window-handle = "0.6"
5857
bytemuck = { version = "1.5", optional = true }
5958
wgpu-types = { version = "25", optional = true }
6059
accesskit = "0.19"
@@ -63,7 +62,6 @@ tracing = { version = "0.1", default-features = false, features = ["std"] }
6362
[target.'cfg(target_arch = "wasm32")'.dependencies]
6463
wasm-bindgen = { version = "0.2" }
6564
web-sys = "0.3"
66-
crossbeam-channel = "0.5"
6765
# TODO: Assuming all wasm builds are for the browser. Require `no_std` support to break assumption.
6866
bevy_app = { path = "../bevy_app", version = "0.17.0-dev", default-features = false, features = [
6967
"web",

errors/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ publish = false
66
license = "MIT OR Apache-2.0"
77

88
[dependencies]
9-
bevy = { path = ".." }
109

1110
[lints]
1211
workspace = true

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)