From efd3c6221c71190eb25625767deaea38383135e5 Mon Sep 17 00:00:00 2001 From: AmeKnite <104745335+ameknite@users.noreply.github.com> Date: Tue, 3 Oct 2023 14:19:50 -0600 Subject: [PATCH] add lints.workspace = true to crates and examples --- crates/bevy_a11y/Cargo.toml | 3 ++ crates/bevy_animation/Cargo.toml | 7 ++- crates/bevy_app/Cargo.toml | 4 +- crates/bevy_asset/Cargo.toml | 4 ++ crates/bevy_asset/macros/Cargo.toml | 3 ++ crates/bevy_audio/Cargo.toml | 11 ++++- crates/bevy_core/Cargo.toml | 15 ++++-- crates/bevy_core_pipeline/Cargo.toml | 3 ++ crates/bevy_derive/Cargo.toml | 3 ++ crates/bevy_diagnostic/Cargo.toml | 3 ++ crates/bevy_dylib/Cargo.toml | 3 ++ crates/bevy_dynamic_plugin/Cargo.toml | 3 ++ crates/bevy_ecs/Cargo.toml | 3 ++ crates/bevy_ecs/macros/Cargo.toml | 3 ++ crates/bevy_ecs_compile_fail_tests/Cargo.toml | 3 ++ crates/bevy_encase_derive/Cargo.toml | 3 ++ crates/bevy_gilrs/Cargo.toml | 3 ++ crates/bevy_gizmos/Cargo.toml | 3 ++ crates/bevy_gltf/Cargo.toml | 11 ++++- crates/bevy_hierarchy/Cargo.toml | 11 ++++- crates/bevy_input/Cargo.toml | 5 ++ crates/bevy_internal/Cargo.toml | 49 +++++++++++++++---- crates/bevy_log/Cargo.toml | 10 +++- crates/bevy_macro_utils/Cargo.toml | 3 ++ .../bevy_macros_compile_fail_tests/Cargo.toml | 5 +- crates/bevy_math/Cargo.toml | 3 ++ crates/bevy_mikktspace/Cargo.toml | 9 +++- crates/bevy_pbr/Cargo.toml | 7 ++- crates/bevy_ptr/Cargo.toml | 3 ++ crates/bevy_reflect/Cargo.toml | 3 ++ .../bevy_reflect_derive/Cargo.toml | 4 ++ .../Cargo.toml | 3 ++ crates/bevy_render/Cargo.toml | 11 ++++- crates/bevy_render/macros/Cargo.toml | 3 ++ crates/bevy_scene/Cargo.toml | 7 ++- crates/bevy_sprite/Cargo.toml | 3 ++ crates/bevy_tasks/Cargo.toml | 3 ++ crates/bevy_text/Cargo.toml | 9 +++- crates/bevy_time/Cargo.toml | 11 ++++- crates/bevy_transform/Cargo.toml | 11 ++++- crates/bevy_ui/Cargo.toml | 3 ++ crates/bevy_utils/Cargo.toml | 3 ++ crates/bevy_utils/macros/Cargo.toml | 3 ++ crates/bevy_window/Cargo.toml | 3 ++ crates/bevy_winit/Cargo.toml | 3 ++ examples/mobile/Cargo.toml | 2 + 46 files changed, 247 insertions(+), 34 deletions(-) diff --git a/crates/bevy_a11y/Cargo.toml b/crates/bevy_a11y/Cargo.toml index f4aed85f15302b..d95482ee3b8bc0 100644 --- a/crates/bevy_a11y/Cargo.toml +++ b/crates/bevy_a11y/Cargo.toml @@ -15,3 +15,6 @@ bevy_derive = { path = "../bevy_derive", version = "0.12.0" } bevy_ecs = { path = "../bevy_ecs", version = "0.12.0" } accesskit = "0.12" + +[lints] +workspace = true diff --git a/crates/bevy_animation/Cargo.toml b/crates/bevy_animation/Cargo.toml index 45796ffc66755a..b94d8cc49de061 100644 --- a/crates/bevy_animation/Cargo.toml +++ b/crates/bevy_animation/Cargo.toml @@ -14,10 +14,15 @@ bevy_app = { path = "../bevy_app", version = "0.12.0" } bevy_asset = { path = "../bevy_asset", version = "0.12.0" } bevy_core = { path = "../bevy_core", version = "0.12.0" } bevy_math = { path = "../bevy_math", version = "0.12.0" } -bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] } +bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [ + "bevy", +] } bevy_render = { path = "../bevy_render", version = "0.12.0" } bevy_time = { path = "../bevy_time", version = "0.12.0" } bevy_utils = { path = "../bevy_utils", version = "0.12.0" } bevy_ecs = { path = "../bevy_ecs", version = "0.12.0" } bevy_transform = { path = "../bevy_transform", version = "0.12.0" } bevy_hierarchy = { path = "../bevy_hierarchy", version = "0.12.0" } + +[lints] +workspace = true diff --git a/crates/bevy_app/Cargo.toml b/crates/bevy_app/Cargo.toml index 65e920fbbd4ede..88bcfbbba4a908 100644 --- a/crates/bevy_app/Cargo.toml +++ b/crates/bevy_app/Cargo.toml @@ -30,5 +30,7 @@ downcast-rs = "1.2.0" [target.'cfg(target_arch = "wasm32")'.dependencies] wasm-bindgen = { version = "0.2" } -web-sys = { version = "0.3", features = [ "Window" ] } +web-sys = { version = "0.3", features = ["Window"] } +[lints] +workspace = true diff --git a/crates/bevy_asset/Cargo.toml b/crates/bevy_asset/Cargo.toml index 9f659b79c9ad24..cea1186148da6e 100644 --- a/crates/bevy_asset/Cargo.toml +++ b/crates/bevy_asset/Cargo.toml @@ -51,3 +51,7 @@ js-sys = "0.3" [dev-dependencies] bevy_core = { path = "../bevy_core", version = "0.12.0" } + + +[lints] +workspace = true diff --git a/crates/bevy_asset/macros/Cargo.toml b/crates/bevy_asset/macros/Cargo.toml index d1ccd85035277d..bf0d46725c39a2 100644 --- a/crates/bevy_asset/macros/Cargo.toml +++ b/crates/bevy_asset/macros/Cargo.toml @@ -17,3 +17,6 @@ bevy_macro_utils = { path = "../../bevy_macro_utils", version = "0.12.0" } syn = "2.0" proc-macro2 = "1.0" quote = "1.0" + +[lints] +workspace = true diff --git a/crates/bevy_audio/Cargo.toml b/crates/bevy_audio/Cargo.toml index 652defe88d17d2..f6c786a82b7123 100644 --- a/crates/bevy_audio/Cargo.toml +++ b/crates/bevy_audio/Cargo.toml @@ -14,7 +14,9 @@ bevy_app = { path = "../bevy_app", version = "0.12.0" } bevy_asset = { path = "../bevy_asset", version = "0.12.0" } bevy_ecs = { path = "../bevy_ecs", version = "0.12.0" } bevy_math = { path = "../bevy_math", version = "0.12.0" } -bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] } +bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [ + "bevy", +] } bevy_transform = { path = "../bevy_transform", version = "0.12.0" } bevy_derive = { path = "../bevy_derive", version = "0.12.0" } bevy_utils = { path = "../bevy_utils", version = "0.12.0" } @@ -26,7 +28,9 @@ rodio = { version = "0.17", default-features = false } oboe = { version = "0.5", optional = true } [target.'cfg(target_arch = "wasm32")'.dependencies] -rodio = { version = "0.17", default-features = false, features = ["wasm-bindgen"] } +rodio = { version = "0.17", default-features = false, features = [ + "wasm-bindgen", +] } [features] @@ -43,3 +47,6 @@ symphonia-vorbis = ["rodio/symphonia-vorbis"] symphonia-wav = ["rodio/symphonia-wav"] # Enable using a shared stdlib for cxx on Android. android_shared_stdcxx = ["oboe/shared-stdcxx"] + +[lints] +workspace = true diff --git a/crates/bevy_core/Cargo.toml b/crates/bevy_core/Cargo.toml index 231b9bdcf5f7c1..87530c04e9e7f6 100644 --- a/crates/bevy_core/Cargo.toml +++ b/crates/bevy_core/Cargo.toml @@ -11,10 +11,16 @@ keywords = ["bevy"] [dependencies] # bevy -bevy_app = { path = "../bevy_app", version = "0.12.0", features = ["bevy_reflect"] } -bevy_ecs = { path = "../bevy_ecs", version = "0.12.0", features = ["bevy_reflect"] } +bevy_app = { path = "../bevy_app", version = "0.12.0", features = [ + "bevy_reflect", +] } +bevy_ecs = { path = "../bevy_ecs", version = "0.12.0", features = [ + "bevy_reflect", +] } bevy_math = { path = "../bevy_math", version = "0.12.0" } -bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] } +bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [ + "bevy", +] } bevy_tasks = { path = "../bevy_tasks", version = "0.12.0" } bevy_utils = { path = "../bevy_utils", version = "0.12.0" } @@ -27,3 +33,6 @@ serialize = ["dep:serde"] [dev-dependencies] crossbeam-channel = "0.5.0" + +[lints] +workspace = true diff --git a/crates/bevy_core_pipeline/Cargo.toml b/crates/bevy_core_pipeline/Cargo.toml index e2bdf17000e18b..394ffe67f1f4aa 100644 --- a/crates/bevy_core_pipeline/Cargo.toml +++ b/crates/bevy_core_pipeline/Cargo.toml @@ -34,3 +34,6 @@ bevy_utils = { path = "../bevy_utils", version = "0.12.0" } serde = { version = "1", features = ["derive"] } bitflags = "2.3" radsort = "0.1" + +[lints] +workspace = true diff --git a/crates/bevy_derive/Cargo.toml b/crates/bevy_derive/Cargo.toml index 9e51c0e5ca046b..f8d081f0298492 100644 --- a/crates/bevy_derive/Cargo.toml +++ b/crates/bevy_derive/Cargo.toml @@ -16,3 +16,6 @@ bevy_macro_utils = { path = "../bevy_macro_utils", version = "0.12.0" } quote = "1.0" syn = { version = "2.0", features = ["full"] } + +[lints] +workspace = true diff --git a/crates/bevy_diagnostic/Cargo.toml b/crates/bevy_diagnostic/Cargo.toml index 18e3d0e27c1cc9..cfbc41b295abd4 100644 --- a/crates/bevy_diagnostic/Cargo.toml +++ b/crates/bevy_diagnostic/Cargo.toml @@ -31,3 +31,6 @@ sysinfo = { version = "0.29.0", default-features = false, features = [ # Only include when not bevy_dynamic_plugin and on linux/windows/android [target.'cfg(any(target_os = "linux", target_os = "windows", target_os = "android"))'.dependencies] sysinfo = { version = "0.29.0", default-features = false } + +[lints] +workspace = true diff --git a/crates/bevy_dylib/Cargo.toml b/crates/bevy_dylib/Cargo.toml index e08f5609838f0a..f85950952eb113 100644 --- a/crates/bevy_dylib/Cargo.toml +++ b/crates/bevy_dylib/Cargo.toml @@ -13,3 +13,6 @@ crate-type = ["dylib"] [dependencies] bevy_internal = { path = "../bevy_internal", version = "0.12.0", default-features = false } + +[lints] +workspace = true diff --git a/crates/bevy_dynamic_plugin/Cargo.toml b/crates/bevy_dynamic_plugin/Cargo.toml index 38164324a0e359..f21424ea473813 100644 --- a/crates/bevy_dynamic_plugin/Cargo.toml +++ b/crates/bevy_dynamic_plugin/Cargo.toml @@ -15,3 +15,6 @@ bevy_app = { path = "../bevy_app", version = "0.12.0" } # other libloading = { version = "0.8" } thiserror = "1.0" + +[lints] +workspace = true diff --git a/crates/bevy_ecs/Cargo.toml b/crates/bevy_ecs/Cargo.toml index 82d5736118cc36..3231e7b4101fff 100644 --- a/crates/bevy_ecs/Cargo.toml +++ b/crates/bevy_ecs/Cargo.toml @@ -44,3 +44,6 @@ path = "examples/resources.rs" [[example]] name = "change_detection" path = "examples/change_detection.rs" + +[lints] +workspace = true diff --git a/crates/bevy_ecs/macros/Cargo.toml b/crates/bevy_ecs/macros/Cargo.toml index d19d740497c841..035a29ff825b4c 100644 --- a/crates/bevy_ecs/macros/Cargo.toml +++ b/crates/bevy_ecs/macros/Cargo.toml @@ -14,3 +14,6 @@ bevy_macro_utils = { path = "../../bevy_macro_utils", version = "0.12.0" } syn = "2.0" quote = "1.0" proc-macro2 = "1.0" + +[lints] +workspace = true diff --git a/crates/bevy_ecs_compile_fail_tests/Cargo.toml b/crates/bevy_ecs_compile_fail_tests/Cargo.toml index 2e1438f8793bbe..96ba1deb3ec802 100644 --- a/crates/bevy_ecs_compile_fail_tests/Cargo.toml +++ b/crates/bevy_ecs_compile_fail_tests/Cargo.toml @@ -11,3 +11,6 @@ publish = false [dev-dependencies] bevy_ecs = { path = "../bevy_ecs" } trybuild = "1.0.71" + +[lints] +workspace = true diff --git a/crates/bevy_encase_derive/Cargo.toml b/crates/bevy_encase_derive/Cargo.toml index 311b11c6e65361..b6c65e2d69d4ce 100644 --- a/crates/bevy_encase_derive/Cargo.toml +++ b/crates/bevy_encase_derive/Cargo.toml @@ -14,3 +14,6 @@ proc-macro = true [dependencies] bevy_macro_utils = { path = "../bevy_macro_utils", version = "0.12.0" } encase_derive_impl = "0.6.1" + +[lints] +workspace = true diff --git a/crates/bevy_gilrs/Cargo.toml b/crates/bevy_gilrs/Cargo.toml index 250ad5fbfd13f2..b6439c42e128a7 100644 --- a/crates/bevy_gilrs/Cargo.toml +++ b/crates/bevy_gilrs/Cargo.toml @@ -20,3 +20,6 @@ bevy_time = { path = "../bevy_time", version = "0.12.0" } # other gilrs = "0.10.1" thiserror = "1.0" + +[lints] +workspace = true diff --git a/crates/bevy_gizmos/Cargo.toml b/crates/bevy_gizmos/Cargo.toml index 0917b71f97763a..1f404d1bfc957e 100644 --- a/crates/bevy_gizmos/Cargo.toml +++ b/crates/bevy_gizmos/Cargo.toml @@ -25,3 +25,6 @@ bevy_core = { path = "../bevy_core", version = "0.12.0" } bevy_reflect = { path = "../bevy_reflect", version = "0.12.0" } bevy_core_pipeline = { path = "../bevy_core_pipeline", version = "0.12.0" } bevy_transform = { path = "../bevy_transform", version = "0.12.0" } + +[lints] +workspace = true diff --git a/crates/bevy_gltf/Cargo.toml b/crates/bevy_gltf/Cargo.toml index 8aa900018bd977..8280abfc7ac3ec 100644 --- a/crates/bevy_gltf/Cargo.toml +++ b/crates/bevy_gltf/Cargo.toml @@ -23,9 +23,13 @@ bevy_hierarchy = { path = "../bevy_hierarchy", version = "0.12.0" } bevy_log = { path = "../bevy_log", version = "0.12.0" } bevy_math = { path = "../bevy_math", version = "0.12.0" } bevy_pbr = { path = "../bevy_pbr", version = "0.12.0" } -bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] } +bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [ + "bevy", +] } bevy_render = { path = "../bevy_render", version = "0.12.0" } -bevy_scene = { path = "../bevy_scene", version = "0.12.0", features = ["bevy_render"] } +bevy_scene = { path = "../bevy_scene", version = "0.12.0", features = [ + "bevy_render", +] } bevy_transform = { path = "../bevy_transform", version = "0.12.0" } bevy_tasks = { path = "../bevy_tasks", version = "0.12.0" } bevy_utils = { path = "../bevy_utils", version = "0.12.0" } @@ -47,3 +51,6 @@ base64 = "0.13.0" percent-encoding = "2.1" serde = { version = "1.0", features = ["derive"] } serde_json = "1" + +[lints] +workspace = true diff --git a/crates/bevy_hierarchy/Cargo.toml b/crates/bevy_hierarchy/Cargo.toml index 20c6b86811f857..f751913b11c5f3 100644 --- a/crates/bevy_hierarchy/Cargo.toml +++ b/crates/bevy_hierarchy/Cargo.toml @@ -15,10 +15,17 @@ trace = [] # bevy bevy_app = { path = "../bevy_app", version = "0.12.0" } bevy_core = { path = "../bevy_core", version = "0.12.0" } -bevy_ecs = { path = "../bevy_ecs", version = "0.12.0", features = ["bevy_reflect"] } +bevy_ecs = { path = "../bevy_ecs", version = "0.12.0", features = [ + "bevy_reflect", +] } bevy_log = { path = "../bevy_log", version = "0.12.0" } -bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] } +bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [ + "bevy", +] } bevy_utils = { path = "../bevy_utils", version = "0.12.0" } # other smallvec = { version = "1.6", features = ["serde", "union", "const_generics"] } + +[lints] +workspace = true diff --git a/crates/bevy_input/Cargo.toml b/crates/bevy_input/Cargo.toml index 9f2ce328006fa0..85c3688746678d 100644 --- a/crates/bevy_input/Cargo.toml +++ b/crates/bevy_input/Cargo.toml @@ -19,7 +19,9 @@ bevy_ecs = { path = "../bevy_ecs", version = "0.12.0" } bevy_math = { path = "../bevy_math", version = "0.12.0" } bevy_utils = { path = "../bevy_utils", version = "0.12.0" } bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [ + "glam", +, ] } # other @@ -28,3 +30,6 @@ thiserror = "1.0" [dev-dependencies] bevy = { path = "../../", version = "0.12.0" } + +[lints] +workspace = true diff --git a/crates/bevy_internal/Cargo.toml b/crates/bevy_internal/Cargo.toml index a9c46dd06a615f..0b964ace679bcc 100644 --- a/crates/bevy_internal/Cargo.toml +++ b/crates/bevy_internal/Cargo.toml @@ -17,10 +17,10 @@ trace = [ "bevy_log/trace", "bevy_render?/trace", "bevy_hierarchy/trace", - "bevy_winit?/trace" + "bevy_winit?/trace", ] -trace_chrome = [ "bevy_log/tracing-chrome" ] -trace_tracy = ["bevy_render?/tracing-tracy", "bevy_log/tracing-tracy" ] +trace_chrome = ["bevy_log/tracing-chrome"] +trace_tracy = ["bevy_render?/tracing-tracy", "bevy_log/tracing-tracy"] trace_tracy_memory = ["bevy_log/trace_tracy_memory"] wgpu_trace = ["bevy_render/wgpu_trace"] detailed_trace = ["bevy_utils/detailed_trace"] @@ -61,8 +61,20 @@ symphonia-wav = ["bevy_audio/symphonia-wav"] shader_format_glsl = ["bevy_render/shader_format_glsl"] shader_format_spirv = ["bevy_render/shader_format_spirv"] -serialize = ["bevy_core/serialize", "bevy_input/serialize", "bevy_time/serialize", "bevy_window/serialize", "bevy_transform/serialize", "bevy_math/serialize", "bevy_scene?/serialize"] -multi-threaded = ["bevy_asset/multi-threaded", "bevy_ecs/multi-threaded", "bevy_tasks/multi-threaded"] +serialize = [ + "bevy_core/serialize", + "bevy_input/serialize", + "bevy_time/serialize", + "bevy_window/serialize", + "bevy_transform/serialize", + "bevy_math/serialize", + "bevy_scene?/serialize", +] +multi-threaded = [ + "bevy_asset/multi-threaded", + "bevy_ecs/multi-threaded", + "bevy_tasks/multi-threaded", +] async-io = ["bevy_tasks/async-io"] # Display server protocol support (X11 is enabled by default) @@ -73,13 +85,27 @@ x11 = ["bevy_winit/x11"] subpixel_glyph_atlas = ["bevy_text/subpixel_glyph_atlas"] # Transmission textures in `StandardMaterial`: -pbr_transmission_textures = ["bevy_pbr?/pbr_transmission_textures", "bevy_gltf?/pbr_transmission_textures"] +pbr_transmission_textures = [ + "bevy_pbr?/pbr_transmission_textures", + "bevy_gltf?/pbr_transmission_textures", +] # Optimise for WebGL2 -webgl = ["bevy_core_pipeline?/webgl", "bevy_pbr?/webgl", "bevy_render?/webgl", "bevy_gizmos?/webgl", "bevy_sprite?/webgl"] +webgl = [ + "bevy_core_pipeline?/webgl", + "bevy_pbr?/webgl", + "bevy_render?/webgl", + "bevy_gizmos?/webgl", + "bevy_sprite?/webgl", +] # enable systems that allow for automated testing on CI -bevy_ci_testing = ["bevy_app/bevy_ci_testing", "bevy_time/bevy_ci_testing", "bevy_render?/bevy_ci_testing", "bevy_render?/ci_limits"] +bevy_ci_testing = [ + "bevy_app/bevy_ci_testing", + "bevy_time/bevy_ci_testing", + "bevy_render?/bevy_ci_testing", + "bevy_render?/ci_limits", +] # Enable animation support, and glTF animation loading animation = ["bevy_animation", "bevy_gltf?/bevy_animation"] @@ -131,7 +157,9 @@ bevy_input = { path = "../bevy_input", version = "0.12.0" } bevy_log = { path = "../bevy_log", version = "0.12.0" } bevy_math = { path = "../bevy_math", version = "0.12.0" } bevy_ptr = { path = "../bevy_ptr", version = "0.12.0" } -bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] } +bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [ + "bevy", +] } bevy_time = { path = "../bevy_time", version = "0.12.0" } bevy_transform = { path = "../bevy_transform", version = "0.12.0" } bevy_utils = { path = "../bevy_utils", version = "0.12.0" } @@ -153,3 +181,6 @@ bevy_ui = { path = "../bevy_ui", optional = true, version = "0.12.0" } bevy_winit = { path = "../bevy_winit", optional = true, version = "0.12.0" } bevy_gilrs = { path = "../bevy_gilrs", optional = true, version = "0.12.0" } bevy_gizmos = { path = "../bevy_gizmos", optional = true, version = "0.12.0", default-features = false } + +[lints] +workspace = true diff --git a/crates/bevy_log/Cargo.toml b/crates/bevy_log/Cargo.toml index 4075942ae44033..bcb7737d27ed84 100644 --- a/crates/bevy_log/Cargo.toml +++ b/crates/bevy_log/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0" keywords = ["bevy"] [features] -trace = [ "tracing-error" ] +trace = ["tracing-error"] trace_tracy_memory = ["dep:tracy-client"] [dependencies] @@ -17,7 +17,10 @@ bevy_app = { path = "../bevy_app", version = "0.12.0" } bevy_utils = { path = "../bevy_utils", version = "0.12.0" } bevy_ecs = { path = "../bevy_ecs", version = "0.12.0" } -tracing-subscriber = {version = "0.3.1", features = ["registry", "env-filter"]} +tracing-subscriber = { version = "0.3.1", features = [ + "registry", + "env-filter", +] } tracing-chrome = { version = "0.7.0", optional = true } tracing-tracy = { version = "0.10.0", optional = true } tracing-log = "0.1.2" @@ -30,3 +33,6 @@ android_log-sys = "0.3.0" [target.'cfg(target_arch = "wasm32")'.dependencies] console_error_panic_hook = "0.1.6" tracing-wasm = "0.2.1" + +[lints] +workspace = true diff --git a/crates/bevy_macro_utils/Cargo.toml b/crates/bevy_macro_utils/Cargo.toml index b790c8c9fae8e0..88082b5a1ecec1 100644 --- a/crates/bevy_macro_utils/Cargo.toml +++ b/crates/bevy_macro_utils/Cargo.toml @@ -14,3 +14,6 @@ syn = "2.0" quote = "1.0" rustc-hash = "1.0" proc-macro2 = "1.0" + +[lints] +workspace = true diff --git a/crates/bevy_macros_compile_fail_tests/Cargo.toml b/crates/bevy_macros_compile_fail_tests/Cargo.toml index e5d0d19bec3617..4e6641f25ad832 100644 --- a/crates/bevy_macros_compile_fail_tests/Cargo.toml +++ b/crates/bevy_macros_compile_fail_tests/Cargo.toml @@ -10,4 +10,7 @@ publish = false [dependencies] bevy_derive = { path = "../bevy_derive" } -trybuild = "1.0.71" \ No newline at end of file +trybuild = "1.0.71" + +[lints] +workspace = true diff --git a/crates/bevy_math/Cargo.toml b/crates/bevy_math/Cargo.toml index 09daa7d9387928..7ee418a42158e8 100644 --- a/crates/bevy_math/Cargo.toml +++ b/crates/bevy_math/Cargo.toml @@ -20,3 +20,6 @@ mint = ["glam/mint"] glam_assert = ["glam/glam-assert"] # Enable assertions in debug builds to check the validity of parameters passed to glam debug_glam_assert = ["glam/debug-glam-assert"] + +[lints] +workspace = true diff --git a/crates/bevy_mikktspace/Cargo.toml b/crates/bevy_mikktspace/Cargo.toml index 105e730591f97e..835bd10cdb1d28 100644 --- a/crates/bevy_mikktspace/Cargo.toml +++ b/crates/bevy_mikktspace/Cargo.toml @@ -2,7 +2,11 @@ name = "bevy_mikktspace" version = "0.12.0" edition = "2021" -authors = ["Benjamin Wasty ", "David Harvey-Macaulay ", "Layl Bongers "] +authors = [ + "Benjamin Wasty ", + "David Harvey-Macaulay ", + "Layl Bongers ", +] description = "Mikkelsen tangent space algorithm" documentation = "https://docs.rs/bevy" homepage = "https://bevyengine.org" @@ -15,3 +19,6 @@ glam = "0.24.1" [[example]] name = "generate" + +[lints] +workspace = true diff --git a/crates/bevy_pbr/Cargo.toml b/crates/bevy_pbr/Cargo.toml index 14759e5b7f55d1..d9a37866c44b08 100644 --- a/crates/bevy_pbr/Cargo.toml +++ b/crates/bevy_pbr/Cargo.toml @@ -19,7 +19,9 @@ bevy_asset = { path = "../bevy_asset", version = "0.12.0" } bevy_core_pipeline = { path = "../bevy_core_pipeline", version = "0.12.0" } bevy_ecs = { path = "../bevy_ecs", version = "0.12.0" } bevy_math = { path = "../bevy_math", version = "0.12.0" } -bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] } +bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [ + "bevy", +] } bevy_render = { path = "../bevy_render", version = "0.12.0" } bevy_transform = { path = "../bevy_transform", version = "0.12.0" } bevy_utils = { path = "../bevy_utils", version = "0.12.0" } @@ -35,3 +37,6 @@ radsort = "0.1" naga_oil = "0.10" smallvec = "1.6" thread_local = "1.0" + +[lints] +workspace = true diff --git a/crates/bevy_ptr/Cargo.toml b/crates/bevy_ptr/Cargo.toml index f09f5f0d5453de..06c5bd688c1d42 100644 --- a/crates/bevy_ptr/Cargo.toml +++ b/crates/bevy_ptr/Cargo.toml @@ -9,3 +9,6 @@ license = "MIT OR Apache-2.0" keywords = ["bevy", "no_std"] [dependencies] + +[lints] +workspace = true diff --git a/crates/bevy_reflect/Cargo.toml b/crates/bevy_reflect/Cargo.toml index ecf925cf019ae8..80a85b8063b9b1 100644 --- a/crates/bevy_reflect/Cargo.toml +++ b/crates/bevy_reflect/Cargo.toml @@ -47,3 +47,6 @@ bincode = "1.3" name = "reflect_docs" path = "examples/reflect_docs.rs" required-features = ["documentation"] + +[lints] +workspace = true diff --git a/crates/bevy_reflect/bevy_reflect_derive/Cargo.toml b/crates/bevy_reflect/bevy_reflect_derive/Cargo.toml index 0950536e317969..b9e097259c1f83 100644 --- a/crates/bevy_reflect/bevy_reflect_derive/Cargo.toml +++ b/crates/bevy_reflect/bevy_reflect_derive/Cargo.toml @@ -23,3 +23,7 @@ syn = { version = "2.0", features = ["full"] } proc-macro2 = "1.0" quote = "1.0" uuid = { version = "1.1", features = ["v4"] } +bit-set = "0.5.2" + +[lints] +workspace = true diff --git a/crates/bevy_reflect_compile_fail_tests/Cargo.toml b/crates/bevy_reflect_compile_fail_tests/Cargo.toml index 5af57acd621f85..d18766f487e607 100644 --- a/crates/bevy_reflect_compile_fail_tests/Cargo.toml +++ b/crates/bevy_reflect_compile_fail_tests/Cargo.toml @@ -11,3 +11,6 @@ publish = false [dev-dependencies] bevy_reflect = { path = "../bevy_reflect" } trybuild = "1.0.71" + +[lints] +workspace = true diff --git a/crates/bevy_render/Cargo.toml b/crates/bevy_render/Cargo.toml index be65412bcb7739..9b68b91b182e32 100644 --- a/crates/bevy_render/Cargo.toml +++ b/crates/bevy_render/Cargo.toml @@ -45,7 +45,9 @@ bevy_hierarchy = { path = "../bevy_hierarchy", version = "0.12.0" } bevy_log = { path = "../bevy_log", version = "0.12.0" } bevy_math = { path = "../bevy_math", version = "0.12.0" } bevy_mikktspace = { path = "../bevy_mikktspace", version = "0.12.0" } -bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] } +bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [ + "bevy", +] } bevy_render_macros = { path = "macros", version = "0.12.0" } bevy_time = { path = "../bevy_time", version = "0.12.0" } bevy_transform = { path = "../bevy_transform", version = "0.12.0" } @@ -81,7 +83,9 @@ ruzstd = { version = "0.4.0", optional = true } basis-universal = { version = "0.3.0", optional = true } encase = { version = "0.6.1", features = ["glam"] } # For wgpu profiling using tracing. Use `RUST_LOG=info` to also capture the wgpu spans. -profiling = { version = "1", features = ["profile-with-tracing"], optional = true } +profiling = { version = "1", features = [ + "profile-with-tracing", +], optional = true } async-channel = "1.8" [target.'cfg(target_arch = "wasm32")'.dependencies] @@ -96,3 +100,6 @@ web-sys = { version = "0.3", features = [ 'Window', ] } wasm-bindgen = "0.2" + +[lints] +workspace = true diff --git a/crates/bevy_render/macros/Cargo.toml b/crates/bevy_render/macros/Cargo.toml index 6bd810a310bb92..368077ef07b1d0 100644 --- a/crates/bevy_render/macros/Cargo.toml +++ b/crates/bevy_render/macros/Cargo.toml @@ -17,3 +17,6 @@ bevy_macro_utils = { path = "../../bevy_macro_utils", version = "0.12.0" } syn = "2.0" proc-macro2 = "1.0" quote = "1.0" + +[lints] +workspace = true diff --git a/crates/bevy_scene/Cargo.toml b/crates/bevy_scene/Cargo.toml index 4f8a5eadc060df..eafdd2e01ff677 100644 --- a/crates/bevy_scene/Cargo.toml +++ b/crates/bevy_scene/Cargo.toml @@ -18,7 +18,9 @@ bevy_app = { path = "../bevy_app", version = "0.12.0" } bevy_asset = { path = "../bevy_asset", version = "0.12.0" } bevy_derive = { path = "../bevy_derive", version = "0.12.0" } bevy_ecs = { path = "../bevy_ecs", version = "0.12.0" } -bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] } +bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [ + "bevy", +] } bevy_hierarchy = { path = "../bevy_hierarchy", version = "0.12.0" } bevy_transform = { path = "../bevy_transform", version = "0.12.0" } bevy_utils = { path = "../bevy_utils", version = "0.12.0" } @@ -34,3 +36,6 @@ thiserror = "1.0" postcard = { version = "1.0", features = ["alloc"] } bincode = "1.3" rmp-serde = "1.1" + +[lints] +workspace = true diff --git a/crates/bevy_sprite/Cargo.toml b/crates/bevy_sprite/Cargo.toml index 9b211f9d41ebf2..ec2081d05aabb4 100644 --- a/crates/bevy_sprite/Cargo.toml +++ b/crates/bevy_sprite/Cargo.toml @@ -35,3 +35,6 @@ thiserror = "1.0" rectangle-pack = "0.4" bitflags = "2.3" radsort = "0.1" + +[lints] +workspace = true diff --git a/crates/bevy_tasks/Cargo.toml b/crates/bevy_tasks/Cargo.toml index 6d52a0d4de575f..d208f92450e451 100644 --- a/crates/bevy_tasks/Cargo.toml +++ b/crates/bevy_tasks/Cargo.toml @@ -24,3 +24,6 @@ wasm-bindgen-futures = "0.4" [dev-dependencies] instant = { version = "0.1", features = ["wasm-bindgen"] } + +[lints] +workspace = true diff --git a/crates/bevy_text/Cargo.toml b/crates/bevy_text/Cargo.toml index 1237443d786346..75fd66b077b395 100644 --- a/crates/bevy_text/Cargo.toml +++ b/crates/bevy_text/Cargo.toml @@ -18,7 +18,9 @@ bevy_app = { path = "../bevy_app", version = "0.12.0" } bevy_asset = { path = "../bevy_asset", version = "0.12.0" } bevy_ecs = { path = "../bevy_ecs", version = "0.12.0" } bevy_math = { path = "../bevy_math", version = "0.12.0" } -bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] } +bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [ + "bevy", +] } bevy_render = { path = "../bevy_render", version = "0.12.0" } bevy_sprite = { path = "../bevy_sprite", version = "0.12.0" } bevy_transform = { path = "../bevy_transform", version = "0.12.0" } @@ -29,4 +31,7 @@ bevy_utils = { path = "../bevy_utils", version = "0.12.0" } ab_glyph = "0.2.6" glyph_brush_layout = "0.2.1" thiserror = "1.0" -serde = {version = "1", features = ["derive"]} +serde = { version = "1", features = ["derive"] } + +[lints] +workspace = true diff --git a/crates/bevy_time/Cargo.toml b/crates/bevy_time/Cargo.toml index b8a47ac9699a2e..651f86b336369c 100644 --- a/crates/bevy_time/Cargo.toml +++ b/crates/bevy_time/Cargo.toml @@ -16,11 +16,18 @@ bevy_ci_testing = ["bevy_app/bevy_ci_testing"] [dependencies] # bevy bevy_app = { path = "../bevy_app", version = "0.12.0" } -bevy_ecs = { path = "../bevy_ecs", version = "0.12.0", features = ["bevy_reflect"] } -bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] } +bevy_ecs = { path = "../bevy_ecs", version = "0.12.0", features = [ + "bevy_reflect", +] } +bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [ + "bevy", +] } bevy_utils = { path = "../bevy_utils", version = "0.12.0" } # other crossbeam-channel = "0.5.0" serde = { version = "1", features = ["derive"], optional = true } thiserror = "1.0" + +[lints] +workspace = true diff --git a/crates/bevy_transform/Cargo.toml b/crates/bevy_transform/Cargo.toml index 5ad19c096e8c63..d4f58438fa546c 100644 --- a/crates/bevy_transform/Cargo.toml +++ b/crates/bevy_transform/Cargo.toml @@ -11,10 +11,14 @@ keywords = ["bevy"] [dependencies] # bevy bevy_app = { path = "../bevy_app", version = "0.12.0" } -bevy_ecs = { path = "../bevy_ecs", version = "0.12.0", features = ["bevy_reflect"] } +bevy_ecs = { path = "../bevy_ecs", version = "0.12.0", features = [ + "bevy_reflect", +] } bevy_hierarchy = { path = "../bevy_hierarchy", version = "0.12.0" } bevy_math = { path = "../bevy_math", version = "0.12.0" } -bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = ["bevy"] } +bevy_reflect = { path = "../bevy_reflect", version = "0.12.0", features = [ + "bevy", +] } serde = { version = "1", features = ["derive"], optional = true } thiserror = "1.0" @@ -25,3 +29,6 @@ glam = { version = "0.24", features = ["approx"] } [features] serialize = ["dep:serde", "bevy_math/serialize"] + +[lints] +workspace = true diff --git a/crates/bevy_ui/Cargo.toml b/crates/bevy_ui/Cargo.toml index b6dd346f955ec6..b92213b63ec4c3 100644 --- a/crates/bevy_ui/Cargo.toml +++ b/crates/bevy_ui/Cargo.toml @@ -36,3 +36,6 @@ serde = { version = "1", features = ["derive"] } smallvec = { version = "1.6", features = ["union", "const_generics"] } bytemuck = { version = "1.5", features = ["derive"] } thiserror = "1.0.0" + +[lints] +workspace = true diff --git a/crates/bevy_utils/Cargo.toml b/crates/bevy_utils/Cargo.toml index 8e94bff4d8ad3c..bf1eea4b5f0691 100644 --- a/crates/bevy_utils/Cargo.toml +++ b/crates/bevy_utils/Cargo.toml @@ -24,3 +24,6 @@ nonmax = "0.5" [target.'cfg(target_arch = "wasm32")'.dependencies] getrandom = { version = "0.2.0", features = ["js"] } + +[lints] +workspace = true diff --git a/crates/bevy_utils/macros/Cargo.toml b/crates/bevy_utils/macros/Cargo.toml index 8a9cb4293f2304..fb65c664755555 100644 --- a/crates/bevy_utils/macros/Cargo.toml +++ b/crates/bevy_utils/macros/Cargo.toml @@ -12,3 +12,6 @@ proc-macro = true syn = "2.0" quote = "1.0" proc-macro2 = "1.0" + +[lints] +workspace = true diff --git a/crates/bevy_window/Cargo.toml b/crates/bevy_window/Cargo.toml index 0f2af8438936df..5743d1ebf555de 100644 --- a/crates/bevy_window/Cargo.toml +++ b/crates/bevy_window/Cargo.toml @@ -28,3 +28,6 @@ raw-window-handle = "0.5" # other serde = { version = "1.0", features = ["derive"], optional = true } + +[lints] +workspace = true diff --git a/crates/bevy_winit/Cargo.toml b/crates/bevy_winit/Cargo.toml index 3e0df9e2b99f0b..b3fc28ab47340d 100644 --- a/crates/bevy_winit/Cargo.toml +++ b/crates/bevy_winit/Cargo.toml @@ -45,3 +45,6 @@ crossbeam-channel = "0.5" [package.metadata.docs.rs] features = ["x11"] + +[lints] +workspace = true diff --git a/examples/mobile/Cargo.toml b/examples/mobile/Cargo.toml index 02c7d3f8a33632..194970d0728c95 100644 --- a/examples/mobile/Cargo.toml +++ b/examples/mobile/Cargo.toml @@ -29,3 +29,5 @@ target_sdk_version = 31 icon = "@mipmap/ic_launcher" label = "Bevy Example" +[lints] +workspace = true