From a50bb0c38cfc3a279f5225cbdcc63bd8693d757b Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Wed, 25 Oct 2023 20:56:03 +0200 Subject: [PATCH] few fmt tweaks --- Cargo.toml | 26 ++++++++++++++++++++++---- crates/bevy_asset/Cargo.toml | 2 +- crates/bevy_input/Cargo.toml | 4 +++- crates/bevy_utils/Cargo.toml | 4 ++-- 4 files changed, 28 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8dd252ffb8cd8..79e4b25adae2c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -71,7 +71,11 @@ bevy_asset = ["bevy_internal/bevy_asset"] bevy_audio = ["bevy_internal/bevy_audio"] # Provides cameras and other basic render pipeline features -bevy_core_pipeline = ["bevy_internal/bevy_core_pipeline", "bevy_asset", "bevy_render"] +bevy_core_pipeline = [ + "bevy_internal/bevy_core_pipeline", + "bevy_asset", + "bevy_render", +] # Plugin for dynamic loading (using [libloading](https://crates.io/crates/libloading)) bevy_dynamic_plugin = ["bevy_internal/bevy_dynamic_plugin"] @@ -83,7 +87,12 @@ bevy_gilrs = ["bevy_internal/bevy_gilrs"] bevy_gltf = ["bevy_internal/bevy_gltf", "bevy_asset", "bevy_scene", "bevy_pbr"] # Adds PBR rendering -bevy_pbr = ["bevy_internal/bevy_pbr", "bevy_asset", "bevy_render", "bevy_core_pipeline"] +bevy_pbr = [ + "bevy_internal/bevy_pbr", + "bevy_asset", + "bevy_render", + "bevy_core_pipeline", +] # Provides rendering functionality bevy_render = ["bevy_internal/bevy_render"] @@ -98,7 +107,12 @@ bevy_sprite = ["bevy_internal/bevy_sprite", "bevy_render", "bevy_core_pipeline"] bevy_text = ["bevy_internal/bevy_text", "bevy_asset", "bevy_sprite"] # A custom ECS-driven UI framework -bevy_ui = ["bevy_internal/bevy_ui", "bevy_core_pipeline", "bevy_text", "bevy_sprite"] +bevy_ui = [ + "bevy_internal/bevy_ui", + "bevy_core_pipeline", + "bevy_text", + "bevy_sprite", +] # winit window and input backend bevy_winit = ["bevy_internal/bevy_winit"] @@ -113,7 +127,11 @@ trace_chrome = ["trace", "bevy_internal/trace_chrome"] trace_tracy = ["trace", "bevy_internal/trace_tracy"] # Tracing support, with memory profiling, exposing a port for Tracy -trace_tracy_memory = ["trace", "bevy_internal/trace_tracy", "bevy_internal/trace_tracy_memory"] +trace_tracy_memory = [ + "trace", + "bevy_internal/trace_tracy", + "bevy_internal/trace_tracy_memory", +] # Tracing support trace = ["bevy_internal/trace"] diff --git a/crates/bevy_asset/Cargo.toml b/crates/bevy_asset/Cargo.toml index d67340effc47f..2c90744ba1c10 100644 --- a/crates/bevy_asset/Cargo.toml +++ b/crates/bevy_asset/Cargo.toml @@ -50,4 +50,4 @@ wasm-bindgen-futures = "0.4" js-sys = "0.3" [dev-dependencies] -bevy_core = { path = "../bevy_core", version = "0.12.0-dev" } \ No newline at end of file +bevy_core = { path = "../bevy_core", version = "0.12.0-dev" } diff --git a/crates/bevy_input/Cargo.toml b/crates/bevy_input/Cargo.toml index 9f1b890ccc29d..6bc02fd6ea4d8 100644 --- a/crates/bevy_input/Cargo.toml +++ b/crates/bevy_input/Cargo.toml @@ -18,7 +18,9 @@ bevy_app = { path = "../bevy_app", version = "0.12.0-dev" } bevy_ecs = { path = "../bevy_ecs", version = "0.12.0-dev" } bevy_math = { path = "../bevy_math", version = "0.12.0-dev" } bevy_utils = { path = "../bevy_utils", version = "0.12.0-dev" } -bevy_reflect = { path = "../bevy_reflect", version = "0.12.0-dev", features = ["glam"] } +bevy_reflect = { path = "../bevy_reflect", version = "0.12.0-dev", features = [ + "glam", +] } # other serde = { version = "1", features = ["derive"], optional = true } diff --git a/crates/bevy_utils/Cargo.toml b/crates/bevy_utils/Cargo.toml index 20a4cb32bb99c..14028da57d291 100644 --- a/crates/bevy_utils/Cargo.toml +++ b/crates/bevy_utils/Cargo.toml @@ -17,10 +17,10 @@ tracing = { version = "0.1", default-features = false, features = ["std"] } instant = { version = "0.1", features = ["wasm-bindgen"] } uuid = { version = "1.1", features = ["v4", "serde"] } hashbrown = { version = "0.14", features = ["serde"] } -bevy_utils_proc_macros = {version = "0.12.0-dev", path = "macros"} +bevy_utils_proc_macros = { version = "0.12.0-dev", path = "macros" } petgraph = "0.6" thiserror = "1.0" nonmax = "0.5" [target.'cfg(target_arch = "wasm32")'.dependencies] -getrandom = {version = "0.2.0", features = ["js"]} +getrandom = { version = "0.2.0", features = ["js"] }