mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 14:08:32 +00:00
Remove unused deps (#2455)
# Objective Reduce compilation time # Solution Remove unused dependencies. While this PR doesn't remove any crates from `Cargo.lock`, it may unlock more build parallelism.
This commit is contained in:
parent
d80303d138
commit
ebd10681ac
12 changed files with 10 additions and 18 deletions
|
@ -14,7 +14,7 @@ keywords = ["bevy"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
trace = []
|
trace = []
|
||||||
bevy_ci_testing = ["ron"]
|
bevy_ci_testing = ["serde", "ron"]
|
||||||
default = ["bevy_reflect"]
|
default = ["bevy_reflect"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
@ -25,7 +25,7 @@ bevy_reflect = { path = "../bevy_reflect", version = "0.5.0", optional = true }
|
||||||
bevy_utils = { path = "../bevy_utils", version = "0.5.0" }
|
bevy_utils = { path = "../bevy_utils", version = "0.5.0" }
|
||||||
|
|
||||||
# other
|
# other
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"], optional = true }
|
||||||
ron = { version = "0.6.2", optional = true }
|
ron = { version = "0.6.2", optional = true }
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,6 @@ bevy_utils = { path = "../bevy_utils", version = "0.5.0" }
|
||||||
|
|
||||||
# other
|
# other
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
ron = "0.6.2"
|
|
||||||
crossbeam-channel = "0.5.0"
|
crossbeam-channel = "0.5.0"
|
||||||
anyhow = "1.0"
|
anyhow = "1.0"
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
|
|
|
@ -19,6 +19,5 @@ proc-macro = true
|
||||||
bevy_macro_utils = { path = "../bevy_macro_utils", version = "0.5.0" }
|
bevy_macro_utils = { path = "../bevy_macro_utils", version = "0.5.0" }
|
||||||
|
|
||||||
Inflector = { version = "0.11.4", default-features = false }
|
Inflector = { version = "0.11.4", default-features = false }
|
||||||
proc-macro2 = "1.0"
|
|
||||||
quote = "1.0"
|
quote = "1.0"
|
||||||
syn = "1.0"
|
syn = "1.0"
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
use bevy_macro_utils::BevyManifest;
|
use bevy_macro_utils::BevyManifest;
|
||||||
use inflector::Inflector;
|
use inflector::Inflector;
|
||||||
use proc_macro::TokenStream;
|
use proc_macro::TokenStream;
|
||||||
use proc_macro2::Ident;
|
|
||||||
use quote::quote;
|
use quote::quote;
|
||||||
use syn::{parse_macro_input, Data, DataStruct, DeriveInput, Fields, Path};
|
use syn::{parse_macro_input, Data, DataStruct, DeriveInput, Fields, Path};
|
||||||
|
|
||||||
|
@ -27,7 +26,7 @@ pub fn derive_shader_defs(input: TokenStream) -> TokenStream {
|
||||||
.any(|a| *a.path.get_ident().as_ref().unwrap() == SHADER_DEF_ATTRIBUTE_NAME)
|
.any(|a| *a.path.get_ident().as_ref().unwrap() == SHADER_DEF_ATTRIBUTE_NAME)
|
||||||
})
|
})
|
||||||
.map(|f| f.ident.as_ref().unwrap())
|
.map(|f| f.ident.as_ref().unwrap())
|
||||||
.collect::<Vec<&Ident>>();
|
.collect::<Vec<&syn::Ident>>();
|
||||||
let struct_name = &ast.ident;
|
let struct_name = &ast.ident;
|
||||||
let struct_name_pascal_case = ast.ident.to_string().to_pascal_case();
|
let struct_name_pascal_case = ast.ident.to_string().to_pascal_case();
|
||||||
let shader_defs = shader_def_idents
|
let shader_defs = shader_def_idents
|
||||||
|
|
|
@ -20,6 +20,3 @@ bevy_core = { path = "../bevy_core", version = "0.5.0" }
|
||||||
bevy_ecs = { path = "../bevy_ecs", version = "0.5.0" }
|
bevy_ecs = { path = "../bevy_ecs", version = "0.5.0" }
|
||||||
bevy_log = { path = "../bevy_log", version = "0.5.0" }
|
bevy_log = { path = "../bevy_log", version = "0.5.0" }
|
||||||
bevy_utils = { path = "../bevy_utils", version = "0.5.0" }
|
bevy_utils = { path = "../bevy_utils", version = "0.5.0" }
|
||||||
|
|
||||||
# other
|
|
||||||
parking_lot = "0.11.0"
|
|
||||||
|
|
|
@ -24,15 +24,16 @@ bevy_utils = { path = "../bevy_utils", version = "0.5.0" }
|
||||||
bevy_ecs_macros = { path = "macros", version = "0.5.0" }
|
bevy_ecs_macros = { path = "macros", version = "0.5.0" }
|
||||||
|
|
||||||
async-channel = "1.4"
|
async-channel = "1.4"
|
||||||
bitflags = "1.2"
|
|
||||||
fixedbitset = "0.4"
|
fixedbitset = "0.4"
|
||||||
fxhash = "0.2"
|
fxhash = "0.2"
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
downcast-rs = "1.2"
|
downcast-rs = "1.2"
|
||||||
parking_lot = "0.11"
|
|
||||||
rand = "0.8"
|
rand = "0.8"
|
||||||
serde = "1"
|
serde = "1"
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
parking_lot = "0.11"
|
||||||
|
|
||||||
[[example]]
|
[[example]]
|
||||||
name = "events"
|
name = "events"
|
||||||
path = "examples/events.rs"
|
path = "examples/events.rs"
|
||||||
|
|
|
@ -14,5 +14,4 @@ keywords = ["bevy"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cargo-manifest = "0.2.3"
|
cargo-manifest = "0.2.3"
|
||||||
proc-macro2 = "1.0"
|
|
||||||
syn = "1.0"
|
syn = "1.0"
|
||||||
|
|
|
@ -17,13 +17,11 @@ keywords = ["bevy"]
|
||||||
bevy_app = { path = "../bevy_app", version = "0.5.0" }
|
bevy_app = { path = "../bevy_app", version = "0.5.0" }
|
||||||
bevy_asset = { path = "../bevy_asset", version = "0.5.0" }
|
bevy_asset = { path = "../bevy_asset", version = "0.5.0" }
|
||||||
bevy_core = { path = "../bevy_core", version = "0.5.0" }
|
bevy_core = { path = "../bevy_core", version = "0.5.0" }
|
||||||
bevy_derive = { path = "../bevy_derive", version = "0.5.0" }
|
|
||||||
bevy_ecs = { path = "../bevy_ecs", version = "0.5.0" }
|
bevy_ecs = { path = "../bevy_ecs", version = "0.5.0" }
|
||||||
bevy_math = { path = "../bevy_math", version = "0.5.0" }
|
bevy_math = { path = "../bevy_math", version = "0.5.0" }
|
||||||
bevy_reflect = { path = "../bevy_reflect", version = "0.5.0", features = ["bevy"] }
|
bevy_reflect = { path = "../bevy_reflect", version = "0.5.0", features = ["bevy"] }
|
||||||
bevy_render = { path = "../bevy_render", version = "0.5.0" }
|
bevy_render = { path = "../bevy_render", version = "0.5.0" }
|
||||||
bevy_transform = { path = "../bevy_transform", version = "0.5.0" }
|
bevy_transform = { path = "../bevy_transform", version = "0.5.0" }
|
||||||
bevy_window = { path = "../bevy_window", version = "0.5.0" }
|
|
||||||
|
|
||||||
# other
|
# other
|
||||||
# direct dependency required for derive macro
|
# direct dependency required for derive macro
|
||||||
|
|
|
@ -31,7 +31,6 @@ image = { version = "0.23.12", default-features = false }
|
||||||
# misc
|
# misc
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
bitflags = "1.2.1"
|
bitflags = "1.2.1"
|
||||||
smallvec = { version = "1.6", features = ["union", "const_generics"] }
|
|
||||||
once_cell = "1.4.1" # TODO: replace once_cell with std equivalent if/when this lands: https://github.com/rust-lang/rfcs/pull/2788
|
once_cell = "1.4.1" # TODO: replace once_cell with std equivalent if/when this lands: https://github.com/rust-lang/rfcs/pull/2788
|
||||||
downcast-rs = "1.2.0"
|
downcast-rs = "1.2.0"
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
|
|
|
@ -27,4 +27,3 @@ ron = "0.6.2"
|
||||||
uuid = { version = "0.8", features = ["v4", "serde"] }
|
uuid = { version = "0.8", features = ["v4", "serde"] }
|
||||||
anyhow = "1.0"
|
anyhow = "1.0"
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
parking_lot = "0.11.0"
|
|
||||||
|
|
|
@ -20,7 +20,10 @@ futures-lite = "1.4.0"
|
||||||
event-listener = "2.4.0"
|
event-listener = "2.4.0"
|
||||||
async-executor = "1.3.0"
|
async-executor = "1.3.0"
|
||||||
async-channel = "1.4.2"
|
async-channel = "1.4.2"
|
||||||
instant = { version = "0.1", features = ["wasm-bindgen"] }
|
|
||||||
num_cpus = "1"
|
num_cpus = "1"
|
||||||
|
|
||||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||||
wasm-bindgen-futures = "0.4"
|
wasm-bindgen-futures = "0.4"
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
instant = { version = "0.1", features = ["wasm-bindgen"] }
|
||||||
|
|
|
@ -21,7 +21,6 @@ x11 = ["winit/x11"]
|
||||||
bevy_app = { path = "../bevy_app", version = "0.5.0" }
|
bevy_app = { path = "../bevy_app", version = "0.5.0" }
|
||||||
bevy_ecs = { path = "../bevy_ecs", version = "0.5.0" }
|
bevy_ecs = { path = "../bevy_ecs", version = "0.5.0" }
|
||||||
bevy_input = { path = "../bevy_input", version = "0.5.0" }
|
bevy_input = { path = "../bevy_input", version = "0.5.0" }
|
||||||
bevy_log = { path = "../bevy_log", version = "0.5.0" }
|
|
||||||
bevy_math = { path = "../bevy_math", version = "0.5.0" }
|
bevy_math = { path = "../bevy_math", version = "0.5.0" }
|
||||||
bevy_window = { path = "../bevy_window", version = "0.5.0" }
|
bevy_window = { path = "../bevy_window", version = "0.5.0" }
|
||||||
bevy_utils = { path = "../bevy_utils", version = "0.5.0" }
|
bevy_utils = { path = "../bevy_utils", version = "0.5.0" }
|
||||||
|
|
Loading…
Add table
Reference in a new issue