From d533e30a3e824b12a7a19744b530f714df2eb862 Mon Sep 17 00:00:00 2001 From: AmeKnite <104745335+ameknite@users.noreply.github.com> Date: Fri, 22 Mar 2024 00:29:06 -0600 Subject: [PATCH 1/7] add --cfg=docsrs --- Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d057f022006a8..4f9b20f7116a3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2820,5 +2820,10 @@ lto = "fat" panic = "abort" [package.metadata.docs.rs] -cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true From 1ffe468beb7b645cd1224a7ac8582efab906af20 Mon Sep 17 00:00:00 2001 From: AmeKnite <104745335+ameknite@users.noreply.github.com> Date: Fri, 22 Mar 2024 00:29:34 -0600 Subject: [PATCH 2/7] homogenize package.metadata.docs.rs --- crates/bevy_a11y/Cargo.toml | 9 +++++++++ crates/bevy_animation/Cargo.toml | 9 +++++++++ crates/bevy_app/Cargo.toml | 6 ++++++ crates/bevy_asset/Cargo.toml | 6 ++++++ crates/bevy_asset/macros/Cargo.toml | 9 +++++++++ crates/bevy_audio/Cargo.toml | 6 ++++++ crates/bevy_color/Cargo.toml | 9 +++++++++ crates/bevy_core/Cargo.toml | 6 ++++++ crates/bevy_core_pipeline/Cargo.toml | 6 ++++++ crates/bevy_derive/Cargo.toml | 9 +++++++++ crates/bevy_dev_tools/Cargo.toml | 6 ++++++ crates/bevy_diagnostic/Cargo.toml | 6 ++++++ crates/bevy_dylib/Cargo.toml | 9 +++++++++ crates/bevy_dynamic_plugin/Cargo.toml | 9 +++++++++ crates/bevy_ecs/Cargo.toml | 6 ++++++ crates/bevy_ecs/macros/Cargo.toml | 9 +++++++++ crates/bevy_encase_derive/Cargo.toml | 9 +++++++++ crates/bevy_gilrs/Cargo.toml | 9 +++++++++ crates/bevy_gizmos/Cargo.toml | 6 ++++++ crates/bevy_gizmos/macros/Cargo.toml | 14 ++++++++++++-- crates/bevy_gltf/Cargo.toml | 6 ++++++ crates/bevy_hierarchy/Cargo.toml | 6 ++++++ crates/bevy_input/Cargo.toml | 6 ++++++ crates/bevy_internal/Cargo.toml | 9 +++++++++ crates/bevy_log/Cargo.toml | 6 ++++++ crates/bevy_macro_utils/Cargo.toml | 9 +++++++++ crates/bevy_math/Cargo.toml | 6 ++++++ crates/bevy_mikktspace/Cargo.toml | 9 +++++++++ crates/bevy_panic_handler/Cargo.toml | 6 ++++++ crates/bevy_pbr/Cargo.toml | 6 ++++++ crates/bevy_ptr/Cargo.toml | 9 +++++++++ crates/bevy_reflect/Cargo.toml | 6 ++++++ .../bevy_reflect/bevy_reflect_derive/Cargo.toml | 9 +++++++++ crates/bevy_render/Cargo.toml | 6 ++++++ crates/bevy_render/macros/Cargo.toml | 9 +++++++++ crates/bevy_scene/Cargo.toml | 6 ++++++ crates/bevy_sprite/Cargo.toml | 9 +++++++++ crates/bevy_tasks/Cargo.toml | 6 ++++++ crates/bevy_text/Cargo.toml | 6 ++++++ crates/bevy_time/Cargo.toml | 6 ++++++ crates/bevy_transform/Cargo.toml | 6 ++++++ crates/bevy_ui/Cargo.toml | 11 +++++++++-- crates/bevy_utils/Cargo.toml | 9 +++++++++ crates/bevy_utils/macros/Cargo.toml | 9 +++++++++ crates/bevy_window/Cargo.toml | 6 ++++++ crates/bevy_winit/Cargo.toml | 11 +++++++++-- errors/Cargo.toml | 14 ++++++++++++-- examples/mobile/Cargo.toml | 9 +++++++++ tools/build-templated-pages/Cargo.toml | 14 ++++++++++++-- tools/build-wasm-example/Cargo.toml | 14 ++++++++++++-- tools/ci/Cargo.toml | 15 ++++++++++++--- tools/example-showcase/Cargo.toml | 14 ++++++++++++-- 52 files changed, 414 insertions(+), 17 deletions(-) diff --git a/crates/bevy_a11y/Cargo.toml b/crates/bevy_a11y/Cargo.toml index 1f13d6e8a52d8..eb18993e8a1ba 100644 --- a/crates/bevy_a11y/Cargo.toml +++ b/crates/bevy_a11y/Cargo.toml @@ -18,3 +18,12 @@ accesskit = "0.12" [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_animation/Cargo.toml b/crates/bevy_animation/Cargo.toml index 13787f46a12cd..ed9284ea91f31 100644 --- a/crates/bevy_animation/Cargo.toml +++ b/crates/bevy_animation/Cargo.toml @@ -40,3 +40,12 @@ uuid = { version = "1.7", features = ["v4"] } [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_app/Cargo.toml b/crates/bevy_app/Cargo.toml index 28b272571edd3..8ea3216092e6c 100644 --- a/crates/bevy_app/Cargo.toml +++ b/crates/bevy_app/Cargo.toml @@ -36,4 +36,10 @@ web-sys = { version = "0.3", features = ["Window"] } workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_asset/Cargo.toml b/crates/bevy_asset/Cargo.toml index 62f499857d925..f7445dede937e 100644 --- a/crates/bevy_asset/Cargo.toml +++ b/crates/bevy_asset/Cargo.toml @@ -61,4 +61,10 @@ bevy_log = { path = "../bevy_log", version = "0.14.0-dev" } workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_asset/macros/Cargo.toml b/crates/bevy_asset/macros/Cargo.toml index 21d6b1fdcda1a..d4def22b8b36b 100644 --- a/crates/bevy_asset/macros/Cargo.toml +++ b/crates/bevy_asset/macros/Cargo.toml @@ -20,3 +20,12 @@ quote = "1.0" [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_audio/Cargo.toml b/crates/bevy_audio/Cargo.toml index 3f831ce3e4a2e..d9d72832e9272 100644 --- a/crates/bevy_audio/Cargo.toml +++ b/crates/bevy_audio/Cargo.toml @@ -52,4 +52,10 @@ android_shared_stdcxx = ["cpal/oboe-shared-stdcxx"] workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_color/Cargo.toml b/crates/bevy_color/Cargo.toml index 29bd0218ad1f3..ffd1769c923ac 100644 --- a/crates/bevy_color/Cargo.toml +++ b/crates/bevy_color/Cargo.toml @@ -21,3 +21,12 @@ encase = { version = "0.7", default-features = false } [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_core/Cargo.toml b/crates/bevy_core/Cargo.toml index 75ccb157ea0ae..64c263fc9476a 100644 --- a/crates/bevy_core/Cargo.toml +++ b/crates/bevy_core/Cargo.toml @@ -37,4 +37,10 @@ crossbeam-channel = "0.5.0" workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_core_pipeline/Cargo.toml b/crates/bevy_core_pipeline/Cargo.toml index e03b93e9d90ae..e3c59f7104ccd 100644 --- a/crates/bevy_core_pipeline/Cargo.toml +++ b/crates/bevy_core_pipeline/Cargo.toml @@ -42,4 +42,10 @@ nonmax = "0.5" workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_derive/Cargo.toml b/crates/bevy_derive/Cargo.toml index abf5e47f4bb0e..09f532629aa2b 100644 --- a/crates/bevy_derive/Cargo.toml +++ b/crates/bevy_derive/Cargo.toml @@ -19,3 +19,12 @@ syn = { version = "2.0", features = ["full"] } [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_dev_tools/Cargo.toml b/crates/bevy_dev_tools/Cargo.toml index 62ab2c8fcc8ae..0ed5be2ccad91 100644 --- a/crates/bevy_dev_tools/Cargo.toml +++ b/crates/bevy_dev_tools/Cargo.toml @@ -43,4 +43,10 @@ ron = { version = "0.8.0", optional = true } workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_diagnostic/Cargo.toml b/crates/bevy_diagnostic/Cargo.toml index d82a5f2e52c75..0e66142b2e420 100644 --- a/crates/bevy_diagnostic/Cargo.toml +++ b/crates/bevy_diagnostic/Cargo.toml @@ -38,4 +38,10 @@ sysinfo = { version = "0.30.0", optional = true, default-features = false } workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_dylib/Cargo.toml b/crates/bevy_dylib/Cargo.toml index cd6c5c783659c..e43988c0e5821 100644 --- a/crates/bevy_dylib/Cargo.toml +++ b/crates/bevy_dylib/Cargo.toml @@ -16,3 +16,12 @@ bevy_internal = { path = "../bevy_internal", version = "0.14.0-dev", default-fea [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_dynamic_plugin/Cargo.toml b/crates/bevy_dynamic_plugin/Cargo.toml index 67f22232c2f45..f2e1e8e6e7919 100644 --- a/crates/bevy_dynamic_plugin/Cargo.toml +++ b/crates/bevy_dynamic_plugin/Cargo.toml @@ -18,3 +18,12 @@ thiserror = "1.0" [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_ecs/Cargo.toml b/crates/bevy_ecs/Cargo.toml index 06e099b0059ce..5b160c8468f97 100644 --- a/crates/bevy_ecs/Cargo.toml +++ b/crates/bevy_ecs/Cargo.toml @@ -51,4 +51,10 @@ path = "examples/change_detection.rs" workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_ecs/macros/Cargo.toml b/crates/bevy_ecs/macros/Cargo.toml index c9f3a5754c9ce..be44db4a3a874 100644 --- a/crates/bevy_ecs/macros/Cargo.toml +++ b/crates/bevy_ecs/macros/Cargo.toml @@ -17,3 +17,12 @@ proc-macro2 = "1.0" [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_encase_derive/Cargo.toml b/crates/bevy_encase_derive/Cargo.toml index d4b4b0a6ff4f3..4cae5b3dbbd53 100644 --- a/crates/bevy_encase_derive/Cargo.toml +++ b/crates/bevy_encase_derive/Cargo.toml @@ -17,3 +17,12 @@ encase_derive_impl = "0.7" [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_gilrs/Cargo.toml b/crates/bevy_gilrs/Cargo.toml index bf0bd644abd26..e9f2acffb78f2 100644 --- a/crates/bevy_gilrs/Cargo.toml +++ b/crates/bevy_gilrs/Cargo.toml @@ -22,3 +22,12 @@ thiserror = "1.0" [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_gizmos/Cargo.toml b/crates/bevy_gizmos/Cargo.toml index 8b5bf14229eba..1fb5d1c02f76b 100644 --- a/crates/bevy_gizmos/Cargo.toml +++ b/crates/bevy_gizmos/Cargo.toml @@ -34,4 +34,10 @@ bytemuck = "1.0" workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_gizmos/macros/Cargo.toml b/crates/bevy_gizmos/macros/Cargo.toml index d4cf3e3ad0828..f0d6bc7fc3779 100644 --- a/crates/bevy_gizmos/macros/Cargo.toml +++ b/crates/bevy_gizmos/macros/Cargo.toml @@ -11,8 +11,6 @@ keywords = ["bevy"] [lib] proc-macro = true -[lints] -workspace = true [dependencies] bevy_macro_utils = { path = "../../bevy_macro_utils", version = "0.14.0-dev" } @@ -20,3 +18,15 @@ bevy_macro_utils = { path = "../../bevy_macro_utils", version = "0.14.0-dev" } syn = "2.0" proc-macro2 = "1.0" quote = "1.0" + +[lints] +workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_gltf/Cargo.toml b/crates/bevy_gltf/Cargo.toml index a7f94ef82d217..a96c4a385f55a 100644 --- a/crates/bevy_gltf/Cargo.toml +++ b/crates/bevy_gltf/Cargo.toml @@ -60,4 +60,10 @@ smallvec = "1.11" workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_hierarchy/Cargo.toml b/crates/bevy_hierarchy/Cargo.toml index 9262ca8336dcc..faf5b5f064cca 100644 --- a/crates/bevy_hierarchy/Cargo.toml +++ b/crates/bevy_hierarchy/Cargo.toml @@ -31,4 +31,10 @@ smallvec = { version = "1.11", features = ["union", "const_generics"] } workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_input/Cargo.toml b/crates/bevy_input/Cargo.toml index fbad74b9d5f88..d3e000f1920ae 100644 --- a/crates/bevy_input/Cargo.toml +++ b/crates/bevy_input/Cargo.toml @@ -32,4 +32,10 @@ smol_str = "0.2" workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_internal/Cargo.toml b/crates/bevy_internal/Cargo.toml index fc7eb39ff1ae9..5c068931bfd4e 100644 --- a/crates/bevy_internal/Cargo.toml +++ b/crates/bevy_internal/Cargo.toml @@ -207,3 +207,12 @@ bevy_dev_tools = { path = "../bevy_dev_tools", optional = true, version = "0.14. [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_log/Cargo.toml b/crates/bevy_log/Cargo.toml index eaf53d1f6cdeb..b63be760389e3 100644 --- a/crates/bevy_log/Cargo.toml +++ b/crates/bevy_log/Cargo.toml @@ -40,4 +40,10 @@ tracing-wasm = "0.2.1" workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_macro_utils/Cargo.toml b/crates/bevy_macro_utils/Cargo.toml index 6dc67396bb18b..77fa77662dc35 100644 --- a/crates/bevy_macro_utils/Cargo.toml +++ b/crates/bevy_macro_utils/Cargo.toml @@ -19,3 +19,12 @@ proc-macro2 = "1.0" [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_math/Cargo.toml b/crates/bevy_math/Cargo.toml index 3423759ebec8c..78cf3d7fd5bdf 100644 --- a/crates/bevy_math/Cargo.toml +++ b/crates/bevy_math/Cargo.toml @@ -45,4 +45,10 @@ rand = ["dep:rand"] workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_mikktspace/Cargo.toml b/crates/bevy_mikktspace/Cargo.toml index 78f66e821a82e..c7eacf5ede7ae 100644 --- a/crates/bevy_mikktspace/Cargo.toml +++ b/crates/bevy_mikktspace/Cargo.toml @@ -22,3 +22,12 @@ name = "generate" [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_panic_handler/Cargo.toml b/crates/bevy_panic_handler/Cargo.toml index 24b96de3c2a4a..243f365b8d320 100644 --- a/crates/bevy_panic_handler/Cargo.toml +++ b/crates/bevy_panic_handler/Cargo.toml @@ -20,4 +20,10 @@ console_error_panic_hook = "0.1.6" workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_pbr/Cargo.toml b/crates/bevy_pbr/Cargo.toml index 0b148fc2729bd..f3d3795672207 100644 --- a/crates/bevy_pbr/Cargo.toml +++ b/crates/bevy_pbr/Cargo.toml @@ -46,4 +46,10 @@ nonmax = "0.5" workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_ptr/Cargo.toml b/crates/bevy_ptr/Cargo.toml index ae443652d11da..86f7b37b4f34e 100644 --- a/crates/bevy_ptr/Cargo.toml +++ b/crates/bevy_ptr/Cargo.toml @@ -12,3 +12,12 @@ keywords = ["bevy", "no_std"] [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_reflect/Cargo.toml b/crates/bevy_reflect/Cargo.toml index 5cb69dc88edbb..142ffeaa50ee4 100644 --- a/crates/bevy_reflect/Cargo.toml +++ b/crates/bevy_reflect/Cargo.toml @@ -59,4 +59,10 @@ required-features = ["documentation"] workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_reflect/bevy_reflect_derive/Cargo.toml b/crates/bevy_reflect/bevy_reflect_derive/Cargo.toml index e076283ac8453..c2091fd7f37bc 100644 --- a/crates/bevy_reflect/bevy_reflect_derive/Cargo.toml +++ b/crates/bevy_reflect/bevy_reflect_derive/Cargo.toml @@ -26,3 +26,12 @@ uuid = { version = "1.1", features = ["v4"] } [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_render/Cargo.toml b/crates/bevy_render/Cargo.toml index 49079ed55802b..e8236f3a618f0 100644 --- a/crates/bevy_render/Cargo.toml +++ b/crates/bevy_render/Cargo.toml @@ -122,4 +122,10 @@ wasm-bindgen = "0.2" workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_render/macros/Cargo.toml b/crates/bevy_render/macros/Cargo.toml index 231662720b351..db12144166483 100644 --- a/crates/bevy_render/macros/Cargo.toml +++ b/crates/bevy_render/macros/Cargo.toml @@ -20,3 +20,12 @@ quote = "1.0" [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_scene/Cargo.toml b/crates/bevy_scene/Cargo.toml index 061ec937513d4..ab1108e97c7ca 100644 --- a/crates/bevy_scene/Cargo.toml +++ b/crates/bevy_scene/Cargo.toml @@ -40,4 +40,10 @@ rmp-serde = "1.1" workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_sprite/Cargo.toml b/crates/bevy_sprite/Cargo.toml index ba2d5d0ed979f..b1069375c8972 100644 --- a/crates/bevy_sprite/Cargo.toml +++ b/crates/bevy_sprite/Cargo.toml @@ -39,3 +39,12 @@ radsort = "0.1" [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_tasks/Cargo.toml b/crates/bevy_tasks/Cargo.toml index ee73b120ac94b..7754b3920c14e 100644 --- a/crates/bevy_tasks/Cargo.toml +++ b/crates/bevy_tasks/Cargo.toml @@ -29,4 +29,10 @@ web-time = { version = "0.2" } workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_text/Cargo.toml b/crates/bevy_text/Cargo.toml index 6fc3deb8a9778..e6f384c0f0de0 100644 --- a/crates/bevy_text/Cargo.toml +++ b/crates/bevy_text/Cargo.toml @@ -41,4 +41,10 @@ approx = "0.5.1" workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_time/Cargo.toml b/crates/bevy_time/Cargo.toml index 5a7ccb9a577f1..a9c5d31ee5825 100644 --- a/crates/bevy_time/Cargo.toml +++ b/crates/bevy_time/Cargo.toml @@ -32,4 +32,10 @@ thiserror = "1.0" workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_transform/Cargo.toml b/crates/bevy_transform/Cargo.toml index 5662117c684c7..367fbca218e69 100644 --- a/crates/bevy_transform/Cargo.toml +++ b/crates/bevy_transform/Cargo.toml @@ -36,4 +36,10 @@ serialize = ["dep:serde", "bevy_math/serialize"] workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_ui/Cargo.toml b/crates/bevy_ui/Cargo.toml index 92547a2fe3828..b614fad88f00c 100644 --- a/crates/bevy_ui/Cargo.toml +++ b/crates/bevy_ui/Cargo.toml @@ -41,8 +41,15 @@ smallvec = "1.11" [features] serialize = ["serde", "smallvec/serde"] -[package.metadata.docs.rs] -all-features = true [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_utils/Cargo.toml b/crates/bevy_utils/Cargo.toml index 88fe6dc0a574c..188f1f25d0f52 100644 --- a/crates/bevy_utils/Cargo.toml +++ b/crates/bevy_utils/Cargo.toml @@ -27,3 +27,12 @@ getrandom = { version = "0.2.0", features = ["js"] } [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_utils/macros/Cargo.toml b/crates/bevy_utils/macros/Cargo.toml index b30d885a1d018..92e10a8154dca 100644 --- a/crates/bevy_utils/macros/Cargo.toml +++ b/crates/bevy_utils/macros/Cargo.toml @@ -15,3 +15,12 @@ proc-macro2 = "1.0" [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/crates/bevy_window/Cargo.toml b/crates/bevy_window/Cargo.toml index d455a2ebe834b..86a609a6c4df0 100644 --- a/crates/bevy_window/Cargo.toml +++ b/crates/bevy_window/Cargo.toml @@ -34,4 +34,10 @@ smol_str = "0.2" workspace = true [package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] all-features = true diff --git a/crates/bevy_winit/Cargo.toml b/crates/bevy_winit/Cargo.toml index 063085b6a01b8..637453c014180 100644 --- a/crates/bevy_winit/Cargo.toml +++ b/crates/bevy_winit/Cargo.toml @@ -50,8 +50,15 @@ wasm-bindgen = { version = "0.2" } web-sys = "0.3" crossbeam-channel = "0.5" -[package.metadata.docs.rs] -all-features = true [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/errors/Cargo.toml b/errors/Cargo.toml index 01fe856cc7ce5..8f72e491ab675 100644 --- a/errors/Cargo.toml +++ b/errors/Cargo.toml @@ -6,8 +6,18 @@ description = "Bevy's error codes" publish = false license = "MIT OR Apache-2.0" -[lints] -workspace = true [dependencies] bevy = { path = ".." } + +[lints] +workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/examples/mobile/Cargo.toml b/examples/mobile/Cargo.toml index e1e768a2fcc75..11a8f9ea80ae1 100644 --- a/examples/mobile/Cargo.toml +++ b/examples/mobile/Cargo.toml @@ -34,3 +34,12 @@ label = "Bevy Example" [lints] workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/tools/build-templated-pages/Cargo.toml b/tools/build-templated-pages/Cargo.toml index 5b0e5e1eff65a..977b005d2a477 100644 --- a/tools/build-templated-pages/Cargo.toml +++ b/tools/build-templated-pages/Cargo.toml @@ -6,8 +6,6 @@ description = "handle templated pages in Bevy repository" publish = false license = "MIT OR Apache-2.0" -[lints] -workspace = true [dependencies] toml_edit = { version = "0.22.7", default-features = false, features = [ @@ -17,3 +15,15 @@ tera = "1.15" serde = { version = "1.0", features = ["derive"] } bitflags = "2.3" hashbrown = { version = "0.14", features = ["serde"] } + +[lints] +workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/tools/build-wasm-example/Cargo.toml b/tools/build-wasm-example/Cargo.toml index 511ca208d43af..c09639af94dc9 100644 --- a/tools/build-wasm-example/Cargo.toml +++ b/tools/build-wasm-example/Cargo.toml @@ -6,9 +6,19 @@ description = "Build an example for wasm" publish = false license = "MIT OR Apache-2.0" -[lints] -workspace = true [dependencies] xshell = "0.2" clap = { version = "4.0", features = ["derive"] } + +[lints] +workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/tools/ci/Cargo.toml b/tools/ci/Cargo.toml index 7e6b3e8187205..097b8711e1a63 100644 --- a/tools/ci/Cargo.toml +++ b/tools/ci/Cargo.toml @@ -6,9 +6,18 @@ description = "CI script for Bevy" publish = false license = "MIT OR Apache-2.0" -[lints] -workspace = true - [dependencies] xshell = "0.2" bitflags = "2.3" + +[lints] +workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true diff --git a/tools/example-showcase/Cargo.toml b/tools/example-showcase/Cargo.toml index 184a002c0f86b..0ea18a4bbfd29 100644 --- a/tools/example-showcase/Cargo.toml +++ b/tools/example-showcase/Cargo.toml @@ -6,8 +6,6 @@ description = "Run examples" publish = false license = "MIT OR Apache-2.0" -[lints] -workspace = true [dependencies] xshell = "0.2" @@ -17,3 +15,15 @@ toml_edit = { version = "0.22.7", default-features = false, features = [ "parse", ] } pbr = "1.1" + +[lints] +workspace = true + +[package.metadata.docs.rs] +rustdoc-args = [ + "-Zunstable-options", + "-Zrustdoc-scrape-examples", + "--cfg", + "docsrs", +] +all-features = true From 6420f8a5b5879313218fb853590b61a7378bf558 Mon Sep 17 00:00:00 2001 From: AmeKnite <104745335+ameknite@users.noreply.github.com> Date: Fri, 22 Mar 2024 00:34:22 -0600 Subject: [PATCH 3/7] Apply --cfg=docsrs to dev docs --- .github/workflows/docs.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ee3c6d848c5af..a426396fa3dfe 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -49,7 +49,10 @@ jobs: echo "" > header.html - name: Build docs - run: cargo doc --all-features --no-deps -p bevy -Zunstable-options -Zrustdoc-scrape-examples + env: + # needs to be in sync with [package.metadata.docs.rs] + RUSTDOCFLAGS: -Zunstable-options -Zrustdoc-scrape-examples --cfg=docsrs + run: cargo doc --all-features --no-deps -p bevy # This adds the following: # - A top level redirect to the bevy crate documentation From 4698071bd2ea9cca921af3251ae0fe6e7f7bf6dc Mon Sep 17 00:00:00 2001 From: AmeKnite <104745335+ameknite@users.noreply.github.com> Date: Fri, 22 Mar 2024 01:23:40 -0600 Subject: [PATCH 4/7] fix docs.yaml -Zrustdoc-scrape-examples is not a RUSTDOCFLAG --- .github/workflows/docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a426396fa3dfe..5f163f757d5e9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -51,8 +51,8 @@ jobs: - name: Build docs env: # needs to be in sync with [package.metadata.docs.rs] - RUSTDOCFLAGS: -Zunstable-options -Zrustdoc-scrape-examples --cfg=docsrs - run: cargo doc --all-features --no-deps -p bevy + RUSTDOCFLAGS: -Zunstable-options --cfg=docsrs + run: cargo doc --all-features --no-deps -p bevy -Zunstable-options -Zrustdoc-scrape-examples # This adds the following: # - A top level redirect to the bevy crate documentation From 685007f775c381b5d23c7d8b183623816387602c Mon Sep 17 00:00:00 2001 From: AmeKnite <104745335+ameknite@users.noreply.github.com> Date: Fri, 22 Mar 2024 01:24:10 -0600 Subject: [PATCH 5/7] remove "-Zrustdoc-scrape-examples" from crates --- Cargo.toml | 8 ++------ crates/bevy_a11y/Cargo.toml | 7 +------ crates/bevy_animation/Cargo.toml | 7 +------ crates/bevy_app/Cargo.toml | 7 +------ crates/bevy_asset/Cargo.toml | 7 +------ crates/bevy_asset/macros/Cargo.toml | 7 +------ crates/bevy_audio/Cargo.toml | 7 +------ crates/bevy_color/Cargo.toml | 7 +------ crates/bevy_core/Cargo.toml | 7 +------ crates/bevy_core_pipeline/Cargo.toml | 7 +------ crates/bevy_derive/Cargo.toml | 7 +------ crates/bevy_dev_tools/Cargo.toml | 7 +------ crates/bevy_diagnostic/Cargo.toml | 7 +------ crates/bevy_dylib/Cargo.toml | 7 +------ crates/bevy_dynamic_plugin/Cargo.toml | 7 +------ crates/bevy_ecs/Cargo.toml | 7 +------ crates/bevy_ecs/macros/Cargo.toml | 7 +------ crates/bevy_encase_derive/Cargo.toml | 7 +------ crates/bevy_gilrs/Cargo.toml | 7 +------ crates/bevy_gizmos/Cargo.toml | 7 +------ crates/bevy_gizmos/macros/Cargo.toml | 7 +------ crates/bevy_gltf/Cargo.toml | 7 +------ crates/bevy_hierarchy/Cargo.toml | 7 +------ crates/bevy_input/Cargo.toml | 7 +------ crates/bevy_internal/Cargo.toml | 7 +------ crates/bevy_log/Cargo.toml | 7 +------ crates/bevy_macro_utils/Cargo.toml | 7 +------ crates/bevy_math/Cargo.toml | 7 +------ crates/bevy_mikktspace/Cargo.toml | 7 +------ crates/bevy_panic_handler/Cargo.toml | 7 +------ crates/bevy_pbr/Cargo.toml | 7 +------ crates/bevy_ptr/Cargo.toml | 7 +------ crates/bevy_reflect/Cargo.toml | 7 +------ crates/bevy_reflect/bevy_reflect_derive/Cargo.toml | 7 +------ crates/bevy_render/Cargo.toml | 7 +------ crates/bevy_render/macros/Cargo.toml | 7 +------ crates/bevy_scene/Cargo.toml | 7 +------ crates/bevy_sprite/Cargo.toml | 7 +------ crates/bevy_tasks/Cargo.toml | 7 +------ crates/bevy_text/Cargo.toml | 7 +------ crates/bevy_time/Cargo.toml | 7 +------ crates/bevy_transform/Cargo.toml | 7 +------ crates/bevy_ui/Cargo.toml | 7 +------ crates/bevy_utils/Cargo.toml | 7 +------ crates/bevy_utils/macros/Cargo.toml | 7 +------ crates/bevy_window/Cargo.toml | 7 +------ crates/bevy_winit/Cargo.toml | 7 +------ errors/Cargo.toml | 7 +------ examples/mobile/Cargo.toml | 7 +------ tools/build-templated-pages/Cargo.toml | 7 +------ tools/build-wasm-example/Cargo.toml | 7 +------ tools/ci/Cargo.toml | 7 +------ tools/example-showcase/Cargo.toml | 7 +------ 53 files changed, 54 insertions(+), 318 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4f9b20f7116a3..c78359b2bd06e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2820,10 +2820,6 @@ lto = "fat" panic = "abort" [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true +cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"] diff --git a/crates/bevy_a11y/Cargo.toml b/crates/bevy_a11y/Cargo.toml index eb18993e8a1ba..4ee262fa22974 100644 --- a/crates/bevy_a11y/Cargo.toml +++ b/crates/bevy_a11y/Cargo.toml @@ -20,10 +20,5 @@ accesskit = "0.12" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_animation/Cargo.toml b/crates/bevy_animation/Cargo.toml index ed9284ea91f31..52c2786b849c7 100644 --- a/crates/bevy_animation/Cargo.toml +++ b/crates/bevy_animation/Cargo.toml @@ -42,10 +42,5 @@ uuid = { version = "1.7", features = ["v4"] } workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_app/Cargo.toml b/crates/bevy_app/Cargo.toml index 8ea3216092e6c..984518d1ccdc6 100644 --- a/crates/bevy_app/Cargo.toml +++ b/crates/bevy_app/Cargo.toml @@ -36,10 +36,5 @@ web-sys = { version = "0.3", features = ["Window"] } workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_asset/Cargo.toml b/crates/bevy_asset/Cargo.toml index f7445dede937e..04398df8ec254 100644 --- a/crates/bevy_asset/Cargo.toml +++ b/crates/bevy_asset/Cargo.toml @@ -61,10 +61,5 @@ bevy_log = { path = "../bevy_log", version = "0.14.0-dev" } workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_asset/macros/Cargo.toml b/crates/bevy_asset/macros/Cargo.toml index d4def22b8b36b..f178067cc19f3 100644 --- a/crates/bevy_asset/macros/Cargo.toml +++ b/crates/bevy_asset/macros/Cargo.toml @@ -22,10 +22,5 @@ quote = "1.0" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_audio/Cargo.toml b/crates/bevy_audio/Cargo.toml index d9d72832e9272..fc0bb3aaec3f5 100644 --- a/crates/bevy_audio/Cargo.toml +++ b/crates/bevy_audio/Cargo.toml @@ -52,10 +52,5 @@ android_shared_stdcxx = ["cpal/oboe-shared-stdcxx"] workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_color/Cargo.toml b/crates/bevy_color/Cargo.toml index ffd1769c923ac..a3b13b1bc7224 100644 --- a/crates/bevy_color/Cargo.toml +++ b/crates/bevy_color/Cargo.toml @@ -23,10 +23,5 @@ encase = { version = "0.7", default-features = false } workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_core/Cargo.toml b/crates/bevy_core/Cargo.toml index 64c263fc9476a..d149581ebb93e 100644 --- a/crates/bevy_core/Cargo.toml +++ b/crates/bevy_core/Cargo.toml @@ -37,10 +37,5 @@ crossbeam-channel = "0.5.0" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_core_pipeline/Cargo.toml b/crates/bevy_core_pipeline/Cargo.toml index e3c59f7104ccd..e6846d0ec161d 100644 --- a/crates/bevy_core_pipeline/Cargo.toml +++ b/crates/bevy_core_pipeline/Cargo.toml @@ -42,10 +42,5 @@ nonmax = "0.5" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_derive/Cargo.toml b/crates/bevy_derive/Cargo.toml index 09f532629aa2b..a936ac773a88c 100644 --- a/crates/bevy_derive/Cargo.toml +++ b/crates/bevy_derive/Cargo.toml @@ -21,10 +21,5 @@ syn = { version = "2.0", features = ["full"] } workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_dev_tools/Cargo.toml b/crates/bevy_dev_tools/Cargo.toml index 0ed5be2ccad91..727ba84f80691 100644 --- a/crates/bevy_dev_tools/Cargo.toml +++ b/crates/bevy_dev_tools/Cargo.toml @@ -43,10 +43,5 @@ ron = { version = "0.8.0", optional = true } workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_diagnostic/Cargo.toml b/crates/bevy_diagnostic/Cargo.toml index 0e66142b2e420..78f1d0bb005fb 100644 --- a/crates/bevy_diagnostic/Cargo.toml +++ b/crates/bevy_diagnostic/Cargo.toml @@ -38,10 +38,5 @@ sysinfo = { version = "0.30.0", optional = true, default-features = false } workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_dylib/Cargo.toml b/crates/bevy_dylib/Cargo.toml index e43988c0e5821..28535950c0b49 100644 --- a/crates/bevy_dylib/Cargo.toml +++ b/crates/bevy_dylib/Cargo.toml @@ -18,10 +18,5 @@ bevy_internal = { path = "../bevy_internal", version = "0.14.0-dev", default-fea workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_dynamic_plugin/Cargo.toml b/crates/bevy_dynamic_plugin/Cargo.toml index f2e1e8e6e7919..5e7d11754361b 100644 --- a/crates/bevy_dynamic_plugin/Cargo.toml +++ b/crates/bevy_dynamic_plugin/Cargo.toml @@ -20,10 +20,5 @@ thiserror = "1.0" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_ecs/Cargo.toml b/crates/bevy_ecs/Cargo.toml index 5b160c8468f97..6e54aaf7359a2 100644 --- a/crates/bevy_ecs/Cargo.toml +++ b/crates/bevy_ecs/Cargo.toml @@ -51,10 +51,5 @@ path = "examples/change_detection.rs" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_ecs/macros/Cargo.toml b/crates/bevy_ecs/macros/Cargo.toml index be44db4a3a874..abc6647a8bc52 100644 --- a/crates/bevy_ecs/macros/Cargo.toml +++ b/crates/bevy_ecs/macros/Cargo.toml @@ -19,10 +19,5 @@ proc-macro2 = "1.0" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_encase_derive/Cargo.toml b/crates/bevy_encase_derive/Cargo.toml index 4cae5b3dbbd53..ed50b8da959f1 100644 --- a/crates/bevy_encase_derive/Cargo.toml +++ b/crates/bevy_encase_derive/Cargo.toml @@ -19,10 +19,5 @@ encase_derive_impl = "0.7" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_gilrs/Cargo.toml b/crates/bevy_gilrs/Cargo.toml index e9f2acffb78f2..ad98c34040016 100644 --- a/crates/bevy_gilrs/Cargo.toml +++ b/crates/bevy_gilrs/Cargo.toml @@ -24,10 +24,5 @@ thiserror = "1.0" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_gizmos/Cargo.toml b/crates/bevy_gizmos/Cargo.toml index 1fb5d1c02f76b..039151b1612c7 100644 --- a/crates/bevy_gizmos/Cargo.toml +++ b/crates/bevy_gizmos/Cargo.toml @@ -34,10 +34,5 @@ bytemuck = "1.0" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_gizmos/macros/Cargo.toml b/crates/bevy_gizmos/macros/Cargo.toml index f0d6bc7fc3779..dad07b319cae2 100644 --- a/crates/bevy_gizmos/macros/Cargo.toml +++ b/crates/bevy_gizmos/macros/Cargo.toml @@ -23,10 +23,5 @@ quote = "1.0" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_gltf/Cargo.toml b/crates/bevy_gltf/Cargo.toml index a96c4a385f55a..3fc387902f2c8 100644 --- a/crates/bevy_gltf/Cargo.toml +++ b/crates/bevy_gltf/Cargo.toml @@ -60,10 +60,5 @@ smallvec = "1.11" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_hierarchy/Cargo.toml b/crates/bevy_hierarchy/Cargo.toml index faf5b5f064cca..74a9b434f3e3a 100644 --- a/crates/bevy_hierarchy/Cargo.toml +++ b/crates/bevy_hierarchy/Cargo.toml @@ -31,10 +31,5 @@ smallvec = { version = "1.11", features = ["union", "const_generics"] } workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_input/Cargo.toml b/crates/bevy_input/Cargo.toml index d3e000f1920ae..d696e208f1fad 100644 --- a/crates/bevy_input/Cargo.toml +++ b/crates/bevy_input/Cargo.toml @@ -32,10 +32,5 @@ smol_str = "0.2" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_internal/Cargo.toml b/crates/bevy_internal/Cargo.toml index 5c068931bfd4e..b6a3db769945c 100644 --- a/crates/bevy_internal/Cargo.toml +++ b/crates/bevy_internal/Cargo.toml @@ -209,10 +209,5 @@ bevy_dev_tools = { path = "../bevy_dev_tools", optional = true, version = "0.14. workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_log/Cargo.toml b/crates/bevy_log/Cargo.toml index b63be760389e3..33cee7bea4ef5 100644 --- a/crates/bevy_log/Cargo.toml +++ b/crates/bevy_log/Cargo.toml @@ -40,10 +40,5 @@ tracing-wasm = "0.2.1" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_macro_utils/Cargo.toml b/crates/bevy_macro_utils/Cargo.toml index 77fa77662dc35..408716edd4f62 100644 --- a/crates/bevy_macro_utils/Cargo.toml +++ b/crates/bevy_macro_utils/Cargo.toml @@ -21,10 +21,5 @@ proc-macro2 = "1.0" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_math/Cargo.toml b/crates/bevy_math/Cargo.toml index 78cf3d7fd5bdf..28ab5d1cd321b 100644 --- a/crates/bevy_math/Cargo.toml +++ b/crates/bevy_math/Cargo.toml @@ -45,10 +45,5 @@ rand = ["dep:rand"] workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_mikktspace/Cargo.toml b/crates/bevy_mikktspace/Cargo.toml index c7eacf5ede7ae..9119e80a83ab6 100644 --- a/crates/bevy_mikktspace/Cargo.toml +++ b/crates/bevy_mikktspace/Cargo.toml @@ -24,10 +24,5 @@ name = "generate" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_panic_handler/Cargo.toml b/crates/bevy_panic_handler/Cargo.toml index 243f365b8d320..5a99d2bd338be 100644 --- a/crates/bevy_panic_handler/Cargo.toml +++ b/crates/bevy_panic_handler/Cargo.toml @@ -20,10 +20,5 @@ console_error_panic_hook = "0.1.6" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_pbr/Cargo.toml b/crates/bevy_pbr/Cargo.toml index f3d3795672207..3bf23e9123d9c 100644 --- a/crates/bevy_pbr/Cargo.toml +++ b/crates/bevy_pbr/Cargo.toml @@ -46,10 +46,5 @@ nonmax = "0.5" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_ptr/Cargo.toml b/crates/bevy_ptr/Cargo.toml index 86f7b37b4f34e..d76b911e78945 100644 --- a/crates/bevy_ptr/Cargo.toml +++ b/crates/bevy_ptr/Cargo.toml @@ -14,10 +14,5 @@ keywords = ["bevy", "no_std"] workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_reflect/Cargo.toml b/crates/bevy_reflect/Cargo.toml index 142ffeaa50ee4..b9fe3e4bb6896 100644 --- a/crates/bevy_reflect/Cargo.toml +++ b/crates/bevy_reflect/Cargo.toml @@ -59,10 +59,5 @@ required-features = ["documentation"] workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_reflect/bevy_reflect_derive/Cargo.toml b/crates/bevy_reflect/bevy_reflect_derive/Cargo.toml index c2091fd7f37bc..deee32d6664c4 100644 --- a/crates/bevy_reflect/bevy_reflect_derive/Cargo.toml +++ b/crates/bevy_reflect/bevy_reflect_derive/Cargo.toml @@ -28,10 +28,5 @@ uuid = { version = "1.1", features = ["v4"] } workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_render/Cargo.toml b/crates/bevy_render/Cargo.toml index e8236f3a618f0..2b1783e9114e1 100644 --- a/crates/bevy_render/Cargo.toml +++ b/crates/bevy_render/Cargo.toml @@ -122,10 +122,5 @@ wasm-bindgen = "0.2" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_render/macros/Cargo.toml b/crates/bevy_render/macros/Cargo.toml index db12144166483..f00570e012377 100644 --- a/crates/bevy_render/macros/Cargo.toml +++ b/crates/bevy_render/macros/Cargo.toml @@ -22,10 +22,5 @@ quote = "1.0" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_scene/Cargo.toml b/crates/bevy_scene/Cargo.toml index ab1108e97c7ca..7a3236be8ae35 100644 --- a/crates/bevy_scene/Cargo.toml +++ b/crates/bevy_scene/Cargo.toml @@ -40,10 +40,5 @@ rmp-serde = "1.1" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_sprite/Cargo.toml b/crates/bevy_sprite/Cargo.toml index b1069375c8972..a2ec75bfde094 100644 --- a/crates/bevy_sprite/Cargo.toml +++ b/crates/bevy_sprite/Cargo.toml @@ -41,10 +41,5 @@ radsort = "0.1" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_tasks/Cargo.toml b/crates/bevy_tasks/Cargo.toml index 7754b3920c14e..b3a70bafbd4c3 100644 --- a/crates/bevy_tasks/Cargo.toml +++ b/crates/bevy_tasks/Cargo.toml @@ -29,10 +29,5 @@ web-time = { version = "0.2" } workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_text/Cargo.toml b/crates/bevy_text/Cargo.toml index e6f384c0f0de0..cdd26c618e174 100644 --- a/crates/bevy_text/Cargo.toml +++ b/crates/bevy_text/Cargo.toml @@ -41,10 +41,5 @@ approx = "0.5.1" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_time/Cargo.toml b/crates/bevy_time/Cargo.toml index a9c5d31ee5825..a2ea432d86e1f 100644 --- a/crates/bevy_time/Cargo.toml +++ b/crates/bevy_time/Cargo.toml @@ -32,10 +32,5 @@ thiserror = "1.0" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_transform/Cargo.toml b/crates/bevy_transform/Cargo.toml index 367fbca218e69..13173244318ea 100644 --- a/crates/bevy_transform/Cargo.toml +++ b/crates/bevy_transform/Cargo.toml @@ -36,10 +36,5 @@ serialize = ["dep:serde", "bevy_math/serialize"] workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_ui/Cargo.toml b/crates/bevy_ui/Cargo.toml index b614fad88f00c..d7882c7da4d38 100644 --- a/crates/bevy_ui/Cargo.toml +++ b/crates/bevy_ui/Cargo.toml @@ -46,10 +46,5 @@ serialize = ["serde", "smallvec/serde"] workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_utils/Cargo.toml b/crates/bevy_utils/Cargo.toml index 188f1f25d0f52..8b6ac50a76031 100644 --- a/crates/bevy_utils/Cargo.toml +++ b/crates/bevy_utils/Cargo.toml @@ -29,10 +29,5 @@ getrandom = { version = "0.2.0", features = ["js"] } workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_utils/macros/Cargo.toml b/crates/bevy_utils/macros/Cargo.toml index 92e10a8154dca..998bf6e2ffec6 100644 --- a/crates/bevy_utils/macros/Cargo.toml +++ b/crates/bevy_utils/macros/Cargo.toml @@ -17,10 +17,5 @@ proc-macro2 = "1.0" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_window/Cargo.toml b/crates/bevy_window/Cargo.toml index 86a609a6c4df0..6555e8acb606f 100644 --- a/crates/bevy_window/Cargo.toml +++ b/crates/bevy_window/Cargo.toml @@ -34,10 +34,5 @@ smol_str = "0.2" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/crates/bevy_winit/Cargo.toml b/crates/bevy_winit/Cargo.toml index 637453c014180..d617ba32970e8 100644 --- a/crates/bevy_winit/Cargo.toml +++ b/crates/bevy_winit/Cargo.toml @@ -55,10 +55,5 @@ crossbeam-channel = "0.5" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/errors/Cargo.toml b/errors/Cargo.toml index 8f72e491ab675..d59a0b216a915 100644 --- a/errors/Cargo.toml +++ b/errors/Cargo.toml @@ -14,10 +14,5 @@ bevy = { path = ".." } workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/examples/mobile/Cargo.toml b/examples/mobile/Cargo.toml index 11a8f9ea80ae1..b6bc2739b2701 100644 --- a/examples/mobile/Cargo.toml +++ b/examples/mobile/Cargo.toml @@ -36,10 +36,5 @@ label = "Bevy Example" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/tools/build-templated-pages/Cargo.toml b/tools/build-templated-pages/Cargo.toml index 977b005d2a477..4079d49e6d121 100644 --- a/tools/build-templated-pages/Cargo.toml +++ b/tools/build-templated-pages/Cargo.toml @@ -20,10 +20,5 @@ hashbrown = { version = "0.14", features = ["serde"] } workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/tools/build-wasm-example/Cargo.toml b/tools/build-wasm-example/Cargo.toml index c09639af94dc9..969a4d3077abb 100644 --- a/tools/build-wasm-example/Cargo.toml +++ b/tools/build-wasm-example/Cargo.toml @@ -15,10 +15,5 @@ clap = { version = "4.0", features = ["derive"] } workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/tools/ci/Cargo.toml b/tools/ci/Cargo.toml index 097b8711e1a63..dd3c0d265d4bf 100644 --- a/tools/ci/Cargo.toml +++ b/tools/ci/Cargo.toml @@ -14,10 +14,5 @@ bitflags = "2.3" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true diff --git a/tools/example-showcase/Cargo.toml b/tools/example-showcase/Cargo.toml index 0ea18a4bbfd29..4058cdbed1387 100644 --- a/tools/example-showcase/Cargo.toml +++ b/tools/example-showcase/Cargo.toml @@ -20,10 +20,5 @@ pbr = "1.1" workspace = true [package.metadata.docs.rs] -rustdoc-args = [ - "-Zunstable-options", - "-Zrustdoc-scrape-examples", - "--cfg", - "docsrs", -] +rustdoc-args = ["-Zunstable-options", "--cfg", "docsrs"] all-features = true From 1d5ca82ee7c0059971b4248f80159249cf3078bd Mon Sep 17 00:00:00 2001 From: AmeKnite <104745335+ameknite@users.noreply.github.com> Date: Fri, 22 Mar 2024 12:28:53 -0600 Subject: [PATCH 6/7] add #![cfg_attr(docsrs, feature(doc_auto_cfg))] to crates --- crates/bevy_a11y/src/lib.rs | 5 +++-- crates/bevy_animation/src/lib.rs | 2 ++ crates/bevy_app/src/lib.rs | 3 ++- crates/bevy_asset/macros/src/lib.rs | 1 + crates/bevy_audio/src/lib.rs | 5 +++-- crates/bevy_color/src/lib.rs | 2 ++ crates/bevy_core/src/lib.rs | 3 ++- crates/bevy_derive/src/lib.rs | 1 + crates/bevy_dev_tools/src/lib.rs | 3 ++- crates/bevy_dylib/src/lib.rs | 2 +- crates/bevy_dynamic_plugin/src/lib.rs | 2 ++ crates/bevy_ecs/macros/src/lib.rs | 1 + crates/bevy_encase_derive/src/lib.rs | 1 + crates/bevy_gilrs/src/lib.rs | 2 ++ crates/bevy_gizmos/macros/src/lib.rs | 2 ++ crates/bevy_gizmos/src/lib.rs | 3 ++- crates/bevy_gltf/src/lib.rs | 3 ++- crates/bevy_hierarchy/src/lib.rs | 3 ++- crates/bevy_input/src/lib.rs | 3 ++- crates/bevy_internal/src/lib.rs | 2 ++ crates/bevy_log/src/lib.rs | 3 ++- crates/bevy_macro_utils/src/lib.rs | 2 ++ crates/bevy_math/src/lib.rs | 3 ++- crates/bevy_mikktspace/src/lib.rs | 1 + crates/bevy_panic_handler/src/lib.rs | 3 ++- crates/bevy_ptr/src/lib.rs | 1 + crates/bevy_reflect/bevy_reflect_derive/src/lib.rs | 2 ++ crates/bevy_reflect/src/lib.rs | 2 +- crates/bevy_render/macros/src/lib.rs | 1 + crates/bevy_scene/src/lib.rs | 3 ++- crates/bevy_sprite/src/lib.rs | 1 + crates/bevy_ui/src/lib.rs | 2 +- crates/bevy_utils/macros/src/lib.rs | 1 + crates/bevy_utils/src/lib.rs | 2 ++ crates/bevy_window/src/lib.rs | 3 ++- crates/bevy_winit/src/lib.rs | 3 ++- src/lib.rs | 1 + 37 files changed, 63 insertions(+), 20 deletions(-) diff --git a/crates/bevy_a11y/src/lib.rs b/crates/bevy_a11y/src/lib.rs index 53a515c7eeb6d..77f905b2b5450 100644 --- a/crates/bevy_a11y/src/lib.rs +++ b/crates/bevy_a11y/src/lib.rs @@ -1,6 +1,7 @@ -//! Accessibility for Bevy - #![forbid(unsafe_code)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + +//! Accessibility for Bevy use std::sync::{ atomic::{AtomicBool, Ordering}, diff --git a/crates/bevy_animation/src/lib.rs b/crates/bevy_animation/src/lib.rs index d3dbed8406193..398463fd05a4e 100644 --- a/crates/bevy_animation/src/lib.rs +++ b/crates/bevy_animation/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! Animation for the game engine Bevy mod animatable; diff --git a/crates/bevy_app/src/lib.rs b/crates/bevy_app/src/lib.rs index d87bcbde130a6..8cd087c8dedbb 100644 --- a/crates/bevy_app/src/lib.rs +++ b/crates/bevy_app/src/lib.rs @@ -1,6 +1,7 @@ -//! This crate is about everything concerning the highest-level, application layer of a Bevy app. #![cfg_attr(docsrs, feature(doc_auto_cfg))] +//! This crate is about everything concerning the highest-level, application layer of a Bevy app. + mod app; mod main_schedule; mod plugin; diff --git a/crates/bevy_asset/macros/src/lib.rs b/crates/bevy_asset/macros/src/lib.rs index 8dc8975f2352b..6c290367e64f2 100644 --- a/crates/bevy_asset/macros/src/lib.rs +++ b/crates/bevy_asset/macros/src/lib.rs @@ -1,5 +1,6 @@ // FIXME(3492): remove once docs are ready #![allow(missing_docs)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] use bevy_macro_utils::BevyManifest; use proc_macro::{Span, TokenStream}; diff --git a/crates/bevy_audio/src/lib.rs b/crates/bevy_audio/src/lib.rs index 3f42acf3b6e22..aa58420e8ae9b 100644 --- a/crates/bevy_audio/src/lib.rs +++ b/crates/bevy_audio/src/lib.rs @@ -1,3 +1,6 @@ +#![forbid(unsafe_code)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! Audio support for the game engine Bevy //! //! ```no_run @@ -19,8 +22,6 @@ //! }); //! } //! ``` -#![forbid(unsafe_code)] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] mod audio; mod audio_output; diff --git a/crates/bevy_color/src/lib.rs b/crates/bevy_color/src/lib.rs index 139c381cd2062..103bf0f4194dc 100644 --- a/crates/bevy_color/src/lib.rs +++ b/crates/bevy_color/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! Representations of colors in various color spaces. //! //! This crate provides a number of color representations, including: diff --git a/crates/bevy_core/src/lib.rs b/crates/bevy_core/src/lib.rs index 8ccd3ee4d9408..610f9e7a24c92 100644 --- a/crates/bevy_core/src/lib.rs +++ b/crates/bevy_core/src/lib.rs @@ -1,6 +1,7 @@ -//! This crate provides core functionality for Bevy Engine. #![cfg_attr(docsrs, feature(doc_auto_cfg))] +//! This crate provides core functionality for Bevy Engine. + mod name; #[cfg(feature = "serialize")] mod serde; diff --git a/crates/bevy_derive/src/lib.rs b/crates/bevy_derive/src/lib.rs index fda825dc161a6..591bd9f7a84a1 100644 --- a/crates/bevy_derive/src/lib.rs +++ b/crates/bevy_derive/src/lib.rs @@ -1,5 +1,6 @@ // FIXME(3492): remove once docs are ready #![allow(missing_docs)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] extern crate proc_macro; diff --git a/crates/bevy_dev_tools/src/lib.rs b/crates/bevy_dev_tools/src/lib.rs index 8bb9b0b7d2b98..031f627293485 100644 --- a/crates/bevy_dev_tools/src/lib.rs +++ b/crates/bevy_dev_tools/src/lib.rs @@ -1,6 +1,7 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! This crate provides additional utilities for the [Bevy game engine](https://bevyengine.org), //! focused on improving developer experience. -#![cfg_attr(docsrs, feature(doc_auto_cfg))] use bevy_app::prelude::*; diff --git a/crates/bevy_dylib/src/lib.rs b/crates/bevy_dylib/src/lib.rs index 9aefb17ace32f..0398792533f88 100644 --- a/crates/bevy_dylib/src/lib.rs +++ b/crates/bevy_dylib/src/lib.rs @@ -1,4 +1,4 @@ -#![allow(clippy::single_component_path_imports)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] //! Forces dynamic linking of Bevy. //! diff --git a/crates/bevy_dynamic_plugin/src/lib.rs b/crates/bevy_dynamic_plugin/src/lib.rs index 3a620cee1f6be..a675738a45944 100644 --- a/crates/bevy_dynamic_plugin/src/lib.rs +++ b/crates/bevy_dynamic_plugin/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! Bevy's dynamic plugin loading functionality. //! //! This crate allows loading dynamic libraries (`.dylib`, `.so`) that export a single diff --git a/crates/bevy_ecs/macros/src/lib.rs b/crates/bevy_ecs/macros/src/lib.rs index 732cd3fd37e08..267969a55ed6b 100644 --- a/crates/bevy_ecs/macros/src/lib.rs +++ b/crates/bevy_ecs/macros/src/lib.rs @@ -1,5 +1,6 @@ // FIXME(3492): remove once docs are ready #![allow(missing_docs)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] extern crate proc_macro; diff --git a/crates/bevy_encase_derive/src/lib.rs b/crates/bevy_encase_derive/src/lib.rs index e09bc4b247d1a..1fc888a61c8ae 100644 --- a/crates/bevy_encase_derive/src/lib.rs +++ b/crates/bevy_encase_derive/src/lib.rs @@ -1,5 +1,6 @@ // FIXME(3492): remove once docs are ready #![allow(missing_docs)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] use bevy_macro_utils::BevyManifest; use encase_derive_impl::{implement, syn}; diff --git a/crates/bevy_gilrs/src/lib.rs b/crates/bevy_gilrs/src/lib.rs index dad8efe744a05..bd1ec09a2ae95 100644 --- a/crates/bevy_gilrs/src/lib.rs +++ b/crates/bevy_gilrs/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! Systems and type definitions for gamepad handling in Bevy. //! //! This crate is built on top of [GilRs](gilrs), a library diff --git a/crates/bevy_gizmos/macros/src/lib.rs b/crates/bevy_gizmos/macros/src/lib.rs index eb2c598c90806..adce45a4d0e2a 100644 --- a/crates/bevy_gizmos/macros/src/lib.rs +++ b/crates/bevy_gizmos/macros/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! Derive implementations for `bevy_gizmos`. use bevy_macro_utils::BevyManifest; diff --git a/crates/bevy_gizmos/src/lib.rs b/crates/bevy_gizmos/src/lib.rs index 9163a12bf669a..36d0a5520a61b 100755 --- a/crates/bevy_gizmos/src/lib.rs +++ b/crates/bevy_gizmos/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! This crate adds an immediate mode drawing api to Bevy for visual debugging. //! //! # Example @@ -13,7 +15,6 @@ //! ``` //! //! See the documentation on [Gizmos](crate::gizmos::Gizmos) for more examples. -#![cfg_attr(docsrs, feature(doc_auto_cfg))] /// System set label for the systems handling the rendering of gizmos. #[derive(SystemSet, Clone, Debug, Hash, PartialEq, Eq)] diff --git a/crates/bevy_gltf/src/lib.rs b/crates/bevy_gltf/src/lib.rs index de4751a69767d..a2fce065df8a9 100644 --- a/crates/bevy_gltf/src/lib.rs +++ b/crates/bevy_gltf/src/lib.rs @@ -1,8 +1,9 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! Plugin providing an [`AssetLoader`](bevy_asset::AssetLoader) and type definitions //! for loading glTF 2.0 (a standard 3D scene definition format) files in Bevy. //! //! The [glTF 2.0 specification](https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html) defines the format of the glTF files. -#![cfg_attr(docsrs, feature(doc_auto_cfg))] #[cfg(feature = "bevy_animation")] use bevy_animation::AnimationClip; diff --git a/crates/bevy_hierarchy/src/lib.rs b/crates/bevy_hierarchy/src/lib.rs index 464acada7ddf1..9ef22a7ab5547 100644 --- a/crates/bevy_hierarchy/src/lib.rs +++ b/crates/bevy_hierarchy/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! Parent-child relationships for Bevy entities. //! //! You should use the tools in this crate @@ -44,7 +46,6 @@ //! [plugin]: HierarchyPlugin //! [query extension methods]: HierarchyQueryExt //! [world]: BuildWorldChildren -#![cfg_attr(docsrs, feature(doc_auto_cfg))] mod components; pub use components::*; diff --git a/crates/bevy_input/src/lib.rs b/crates/bevy_input/src/lib.rs index 489e12b2f40bb..f2bd0d5f1e6c2 100644 --- a/crates/bevy_input/src/lib.rs +++ b/crates/bevy_input/src/lib.rs @@ -1,9 +1,10 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! Input functionality for the [Bevy game engine](https://bevyengine.org/). //! //! # Supported input devices //! //! `bevy` currently supports keyboard, mouse, gamepad, and touch inputs. -#![cfg_attr(docsrs, feature(doc_auto_cfg))] mod axis; mod button_input; diff --git a/crates/bevy_internal/src/lib.rs b/crates/bevy_internal/src/lib.rs index e7a46f246c808..434755f9c124f 100644 --- a/crates/bevy_internal/src/lib.rs +++ b/crates/bevy_internal/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! This module is separated into its own crate to enable simple dynamic linking for Bevy, and should not be used directly /// `use bevy::prelude::*;` to import common components, bundles, and plugins. diff --git a/crates/bevy_log/src/lib.rs b/crates/bevy_log/src/lib.rs index b6576acb172d9..b4c9a34f6765e 100644 --- a/crates/bevy_log/src/lib.rs +++ b/crates/bevy_log/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! This crate provides logging functions and configuration for [Bevy](https://bevyengine.org) //! apps, and automatically configures platform specific log handlers (i.e. WASM or Android). //! @@ -9,7 +11,6 @@ //! //! For more fine-tuned control over logging behavior, set up the [`LogPlugin`] or //! `DefaultPlugins` during app initialization. -#![cfg_attr(docsrs, feature(doc_auto_cfg))] #[cfg(feature = "trace")] use std::panic; diff --git a/crates/bevy_macro_utils/src/lib.rs b/crates/bevy_macro_utils/src/lib.rs index 443313f8e87bd..535d61a09fc57 100644 --- a/crates/bevy_macro_utils/src/lib.rs +++ b/crates/bevy_macro_utils/src/lib.rs @@ -1,4 +1,6 @@ #![deny(unsafe_code)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! A collection of helper types and functions for working on macros within the Bevy ecosystem. extern crate proc_macro; diff --git a/crates/bevy_math/src/lib.rs b/crates/bevy_math/src/lib.rs index 0d76500703818..4698604c8cf34 100644 --- a/crates/bevy_math/src/lib.rs +++ b/crates/bevy_math/src/lib.rs @@ -1,9 +1,10 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! Provides math types and functionality for the Bevy game engine. //! //! The commonly used types are vectors like [`Vec2`] and [`Vec3`], //! matrices like [`Mat2`], [`Mat3`] and [`Mat4`] and orientation representations //! like [`Quat`]. -#![cfg_attr(docsrs, feature(doc_auto_cfg))] mod affine3; mod aspect_ratio; diff --git a/crates/bevy_mikktspace/src/lib.rs b/crates/bevy_mikktspace/src/lib.rs index cbf2c0c7ad833..5f37ab2effb8a 100644 --- a/crates/bevy_mikktspace/src/lib.rs +++ b/crates/bevy_mikktspace/src/lib.rs @@ -6,6 +6,7 @@ )] // FIXME(3492): remove once docs are ready #![allow(missing_docs)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] use glam::{Vec2, Vec3}; diff --git a/crates/bevy_panic_handler/src/lib.rs b/crates/bevy_panic_handler/src/lib.rs index 8e3705980de62..dec5c000a7413 100644 --- a/crates/bevy_panic_handler/src/lib.rs +++ b/crates/bevy_panic_handler/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! This crate provides panic handlers for [Bevy](https://bevyengine.org) //! apps, and automatically configures platform specifics (i.e. WASM or Android). //! @@ -5,7 +7,6 @@ //! //! For more fine-tuned control over panic behavior, disable the [`PanicHandlerPlugin`] or //! `DefaultPlugins` during app initialization. -#![cfg_attr(docsrs, feature(doc_auto_cfg))] use bevy_app::{App, Plugin}; diff --git a/crates/bevy_ptr/src/lib.rs b/crates/bevy_ptr/src/lib.rs index d6c0322461528..19a34b412d251 100644 --- a/crates/bevy_ptr/src/lib.rs +++ b/crates/bevy_ptr/src/lib.rs @@ -1,5 +1,6 @@ #![doc = include_str!("../README.md")] #![no_std] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] use core::fmt::{self, Formatter, Pointer}; use core::{ diff --git a/crates/bevy_reflect/bevy_reflect_derive/src/lib.rs b/crates/bevy_reflect/bevy_reflect_derive/src/lib.rs index 5be3723b7b0d9..743c558dded22 100644 --- a/crates/bevy_reflect/bevy_reflect_derive/src/lib.rs +++ b/crates/bevy_reflect/bevy_reflect_derive/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! This crate contains macros used by Bevy's `Reflect` API. //! //! The main export of this crate is the derive macro for [`Reflect`]. This allows diff --git a/crates/bevy_reflect/src/lib.rs b/crates/bevy_reflect/src/lib.rs index cf4a181cbfc79..53ffa6be7a35c 100644 --- a/crates/bevy_reflect/src/lib.rs +++ b/crates/bevy_reflect/src/lib.rs @@ -1,5 +1,6 @@ // FIXME(3492): remove once docs are ready #![allow(missing_docs)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] //! Reflection in Rust. //! @@ -467,7 +468,6 @@ //! [orphan rule]: https://doc.rust-lang.org/book/ch10-02-traits.html#implementing-a-trait-on-a-type:~:text=But%20we%20can%E2%80%99t,implementation%20to%20use. //! [`bevy_reflect_derive/documentation`]: bevy_reflect_derive //! [derive `Reflect`]: derive@crate::Reflect -#![cfg_attr(docsrs, feature(doc_auto_cfg))] mod array; mod fields; diff --git a/crates/bevy_render/macros/src/lib.rs b/crates/bevy_render/macros/src/lib.rs index 43af3eff89b64..5398037e5b28e 100644 --- a/crates/bevy_render/macros/src/lib.rs +++ b/crates/bevy_render/macros/src/lib.rs @@ -1,5 +1,6 @@ // FIXME(3492): remove once docs are ready #![allow(missing_docs)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] mod as_bind_group; mod extract_component; diff --git a/crates/bevy_scene/src/lib.rs b/crates/bevy_scene/src/lib.rs index 507e7cbcf619c..bcb554c3f59b5 100644 --- a/crates/bevy_scene/src/lib.rs +++ b/crates/bevy_scene/src/lib.rs @@ -1,9 +1,10 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! Provides scene definition, instantiation and serialization/deserialization. //! //! Scenes are collections of entities and their associated components that can be //! instantiated or removed from a world to allow composition. Scenes can be serialized/deserialized, //! for example to save part of the world state to a file. -#![cfg_attr(docsrs, feature(doc_auto_cfg))] mod bundle; mod dynamic_scene; diff --git a/crates/bevy_sprite/src/lib.rs b/crates/bevy_sprite/src/lib.rs index 685ecb0d4b54a..f7ccd2d8a187d 100644 --- a/crates/bevy_sprite/src/lib.rs +++ b/crates/bevy_sprite/src/lib.rs @@ -1,5 +1,6 @@ // FIXME(3492): remove once docs are ready #![allow(missing_docs)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] //! Provides 2D sprite rendering functionality. mod bundle; diff --git a/crates/bevy_ui/src/lib.rs b/crates/bevy_ui/src/lib.rs index 2ec6b130350c6..b9fffe39e63c7 100644 --- a/crates/bevy_ui/src/lib.rs +++ b/crates/bevy_ui/src/lib.rs @@ -1,11 +1,11 @@ // FIXME(3492): remove once docs are ready #![allow(missing_docs)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] //! This crate contains Bevy's UI system, which can be used to create UI for both 2D and 3D games //! # Basic usage //! Spawn UI elements with [`node_bundles::ButtonBundle`], [`node_bundles::ImageBundle`], [`node_bundles::TextBundle`] and [`node_bundles::NodeBundle`] //! This UI is laid out with the Flexbox and CSS Grid layout models (see ) -#![cfg_attr(docsrs, feature(doc_auto_cfg))] pub mod measurement; pub mod node_bundles; diff --git a/crates/bevy_utils/macros/src/lib.rs b/crates/bevy_utils/macros/src/lib.rs index 9b1fb1cfe5f25..23b11fd7cd2b1 100644 --- a/crates/bevy_utils/macros/src/lib.rs +++ b/crates/bevy_utils/macros/src/lib.rs @@ -1,5 +1,6 @@ // FIXME(3492): remove once docs are ready #![allow(missing_docs)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] use proc_macro::TokenStream; use quote::{format_ident, quote}; diff --git a/crates/bevy_utils/src/lib.rs b/crates/bevy_utils/src/lib.rs index d142f43fbc9ef..0f89cf9682b6d 100644 --- a/crates/bevy_utils/src/lib.rs +++ b/crates/bevy_utils/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! General utilities for first-party [Bevy] engine crates. //! //! [Bevy]: https://bevyengine.org/ diff --git a/crates/bevy_window/src/lib.rs b/crates/bevy_window/src/lib.rs index ff722ef9df243..cfee984087cae 100644 --- a/crates/bevy_window/src/lib.rs +++ b/crates/bevy_window/src/lib.rs @@ -1,10 +1,11 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! `bevy_window` provides a platform-agnostic interface for windowing in Bevy. //! //! This crate contains types for window management and events, //! used by windowing implementors such as `bevy_winit`. //! The [`WindowPlugin`] sets up some global window-related parameters and //! is part of the [`DefaultPlugins`](https://docs.rs/bevy/latest/bevy/struct.DefaultPlugins.html). -#![cfg_attr(docsrs, feature(doc_auto_cfg))] use bevy_a11y::Focus; diff --git a/crates/bevy_winit/src/lib.rs b/crates/bevy_winit/src/lib.rs index a50ecdf0c55e8..e5356826fa54d 100644 --- a/crates/bevy_winit/src/lib.rs +++ b/crates/bevy_winit/src/lib.rs @@ -1,10 +1,11 @@ +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! `bevy_winit` provides utilities to handle window creation and the eventloop through [`winit`] //! //! Most commonly, the [`WinitPlugin`] is used as part of //! [`DefaultPlugins`](https://docs.rs/bevy/latest/bevy/struct.DefaultPlugins.html). //! The app's [runner](bevy_app::App::runner) is set by `WinitPlugin` and handles the `winit` [`EventLoop`]. //! See `winit_runner` for details. -#![cfg_attr(docsrs, feature(doc_auto_cfg))] pub mod accessibility; mod converters; diff --git a/src/lib.rs b/src/lib.rs index c8a6964c57dd9..7301dfedf5591 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,5 @@ #![allow(clippy::single_component_path_imports)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] //! [![](https://bevyengine.org/assets/bevy_logo_docs.svg)](https://bevyengine.org) //! From d945dc9b55b43523521f0fb9575bbfb67dd70669 Mon Sep 17 00:00:00 2001 From: AmeKnite <104745335+ameknite@users.noreply.github.com> Date: Fri, 22 Mar 2024 20:14:33 -0600 Subject: [PATCH 7/7] allow clippy::single_component_path_imports in bevy_dylib --- crates/bevy_dylib/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/bevy_dylib/src/lib.rs b/crates/bevy_dylib/src/lib.rs index 0398792533f88..116ba5067b1da 100644 --- a/crates/bevy_dylib/src/lib.rs +++ b/crates/bevy_dylib/src/lib.rs @@ -51,4 +51,5 @@ // Force linking of the main bevy crate #[allow(unused_imports)] +#[allow(clippy::single_component_path_imports)] use bevy_internal;