diff --git a/crates/bevy_app/Cargo.toml b/crates/bevy_app/Cargo.toml index c767c6783a..37b9d7f6f6 100644 --- a/crates/bevy_app/Cargo.toml +++ b/crates/bevy_app/Cargo.toml @@ -14,7 +14,7 @@ keywords = ["bevy"] [features] trace = [] -bevy_ci_testing = ["ron"] +bevy_ci_testing = ["serde", "ron"] default = ["bevy_reflect"] [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" } # other -serde = { version = "1.0", features = ["derive"] } +serde = { version = "1.0", features = ["derive"], optional = true } ron = { version = "0.6.2", optional = true } diff --git a/crates/bevy_asset/Cargo.toml b/crates/bevy_asset/Cargo.toml index 52a0510805..0e534ef0df 100644 --- a/crates/bevy_asset/Cargo.toml +++ b/crates/bevy_asset/Cargo.toml @@ -28,7 +28,6 @@ bevy_utils = { path = "../bevy_utils", version = "0.5.0" } # other serde = { version = "1", features = ["derive"] } -ron = "0.6.2" crossbeam-channel = "0.5.0" anyhow = "1.0" thiserror = "1.0" diff --git a/crates/bevy_derive/Cargo.toml b/crates/bevy_derive/Cargo.toml index b1e1036cbc..c384141a19 100644 --- a/crates/bevy_derive/Cargo.toml +++ b/crates/bevy_derive/Cargo.toml @@ -19,6 +19,5 @@ proc-macro = true bevy_macro_utils = { path = "../bevy_macro_utils", version = "0.5.0" } Inflector = { version = "0.11.4", default-features = false } -proc-macro2 = "1.0" quote = "1.0" syn = "1.0" diff --git a/crates/bevy_derive/src/shader_defs.rs b/crates/bevy_derive/src/shader_defs.rs index 627b9b39ef..4596667b6a 100644 --- a/crates/bevy_derive/src/shader_defs.rs +++ b/crates/bevy_derive/src/shader_defs.rs @@ -1,7 +1,6 @@ use bevy_macro_utils::BevyManifest; use inflector::Inflector; use proc_macro::TokenStream; -use proc_macro2::Ident; use quote::quote; 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) }) .map(|f| f.ident.as_ref().unwrap()) - .collect::>(); + .collect::>(); let struct_name = &ast.ident; let struct_name_pascal_case = ast.ident.to_string().to_pascal_case(); let shader_defs = shader_def_idents diff --git a/crates/bevy_diagnostic/Cargo.toml b/crates/bevy_diagnostic/Cargo.toml index 046cf2fea8..a1c679046e 100644 --- a/crates/bevy_diagnostic/Cargo.toml +++ b/crates/bevy_diagnostic/Cargo.toml @@ -20,6 +20,3 @@ bevy_core = { path = "../bevy_core", version = "0.5.0" } bevy_ecs = { path = "../bevy_ecs", version = "0.5.0" } bevy_log = { path = "../bevy_log", version = "0.5.0" } bevy_utils = { path = "../bevy_utils", version = "0.5.0" } - -# other -parking_lot = "0.11.0" diff --git a/crates/bevy_ecs/Cargo.toml b/crates/bevy_ecs/Cargo.toml index 18593fbe8d..e83a7b2497 100644 --- a/crates/bevy_ecs/Cargo.toml +++ b/crates/bevy_ecs/Cargo.toml @@ -24,15 +24,16 @@ bevy_utils = { path = "../bevy_utils", version = "0.5.0" } bevy_ecs_macros = { path = "macros", version = "0.5.0" } async-channel = "1.4" -bitflags = "1.2" fixedbitset = "0.4" fxhash = "0.2" thiserror = "1.0" downcast-rs = "1.2" -parking_lot = "0.11" rand = "0.8" serde = "1" +[dev-dependencies] +parking_lot = "0.11" + [[example]] name = "events" path = "examples/events.rs" diff --git a/crates/bevy_macro_utils/Cargo.toml b/crates/bevy_macro_utils/Cargo.toml index a53335643f..ff18625db0 100644 --- a/crates/bevy_macro_utils/Cargo.toml +++ b/crates/bevy_macro_utils/Cargo.toml @@ -14,5 +14,4 @@ keywords = ["bevy"] [dependencies] cargo-manifest = "0.2.3" -proc-macro2 = "1.0" syn = "1.0" diff --git a/crates/bevy_pbr/Cargo.toml b/crates/bevy_pbr/Cargo.toml index c850a54e1d..9d3121217e 100644 --- a/crates/bevy_pbr/Cargo.toml +++ b/crates/bevy_pbr/Cargo.toml @@ -17,13 +17,11 @@ keywords = ["bevy"] bevy_app = { path = "../bevy_app", version = "0.5.0" } bevy_asset = { path = "../bevy_asset", 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_math = { path = "../bevy_math", version = "0.5.0" } bevy_reflect = { path = "../bevy_reflect", version = "0.5.0", features = ["bevy"] } bevy_render = { path = "../bevy_render", version = "0.5.0" } bevy_transform = { path = "../bevy_transform", version = "0.5.0" } -bevy_window = { path = "../bevy_window", version = "0.5.0" } # other # direct dependency required for derive macro diff --git a/crates/bevy_render/Cargo.toml b/crates/bevy_render/Cargo.toml index 8721925554..640b82d1f5 100644 --- a/crates/bevy_render/Cargo.toml +++ b/crates/bevy_render/Cargo.toml @@ -31,7 +31,6 @@ image = { version = "0.23.12", default-features = false } # misc serde = { version = "1", features = ["derive"] } 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 downcast-rs = "1.2.0" thiserror = "1.0" diff --git a/crates/bevy_scene/Cargo.toml b/crates/bevy_scene/Cargo.toml index 75377ad639..fdb8f5a10d 100644 --- a/crates/bevy_scene/Cargo.toml +++ b/crates/bevy_scene/Cargo.toml @@ -27,4 +27,3 @@ ron = "0.6.2" uuid = { version = "0.8", features = ["v4", "serde"] } anyhow = "1.0" thiserror = "1.0" -parking_lot = "0.11.0" diff --git a/crates/bevy_tasks/Cargo.toml b/crates/bevy_tasks/Cargo.toml index f2c1bf41f3..0b72c71a52 100644 --- a/crates/bevy_tasks/Cargo.toml +++ b/crates/bevy_tasks/Cargo.toml @@ -20,7 +20,10 @@ futures-lite = "1.4.0" event-listener = "2.4.0" async-executor = "1.3.0" async-channel = "1.4.2" -instant = { version = "0.1", features = ["wasm-bindgen"] } num_cpus = "1" + [target.'cfg(target_arch = "wasm32")'.dependencies] wasm-bindgen-futures = "0.4" + +[dev-dependencies] +instant = { version = "0.1", features = ["wasm-bindgen"] } diff --git a/crates/bevy_winit/Cargo.toml b/crates/bevy_winit/Cargo.toml index 48167668fd..8bd6782e6e 100644 --- a/crates/bevy_winit/Cargo.toml +++ b/crates/bevy_winit/Cargo.toml @@ -21,7 +21,6 @@ x11 = ["winit/x11"] bevy_app = { path = "../bevy_app", version = "0.5.0" } bevy_ecs = { path = "../bevy_ecs", 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_window = { path = "../bevy_window", version = "0.5.0" } bevy_utils = { path = "../bevy_utils", version = "0.5.0" }