From 726d8ac4b0467f0c2d333b9e6c58c0ca7fbc1057 Mon Sep 17 00:00:00 2001 From: AlephCubed <76791009+AlephCubed@users.noreply.github.com> Date: Sun, 23 Feb 2025 13:21:50 -0800 Subject: [PATCH] Added top level `reflect_documentation` feature flag. (#17892) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #17811. --------- Co-authored-by: François Mockers Co-authored-by: François Mockers --- Cargo.toml | 3 +++ crates/bevy_internal/Cargo.toml | 3 +++ docs/cargo_features.md | 1 + 3 files changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index deaf9cfd6b..c00d151909 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -475,6 +475,9 @@ track_location = ["bevy_internal/track_location"] # Enable function reflection reflect_functions = ["bevy_internal/reflect_functions"] +# Enable documentation reflection +reflect_documentation = ["bevy_internal/reflect_documentation"] + # Enable winit custom cursor support custom_cursor = ["bevy_internal/custom_cursor"] diff --git a/crates/bevy_internal/Cargo.toml b/crates/bevy_internal/Cargo.toml index 0ac089a94c..6a128c9c38 100644 --- a/crates/bevy_internal/Cargo.toml +++ b/crates/bevy_internal/Cargo.toml @@ -266,6 +266,9 @@ reflect_functions = [ "bevy_ecs/reflect_functions", ] +# Enable documentation reflection +reflect_documentation = ["bevy_reflect/documentation"] + # Enable winit custom cursor support custom_cursor = ["bevy_winit/custom_cursor"] diff --git a/docs/cargo_features.md b/docs/cargo_features.md index 00f27a6184..f26c74ceca 100644 --- a/docs/cargo_features.md +++ b/docs/cargo_features.md @@ -90,6 +90,7 @@ The default feature set enables most of the expected features of a game engine, |pbr_transmission_textures|Enable support for transmission-related textures in the `StandardMaterial`, at the risk of blowing past the global, per-shader texture limit on older/lower-end GPUs| |pnm|PNM image format support, includes pam, pbm, pgm and ppm| |qoi|QOI image format support| +|reflect_documentation|Enable documentation reflection| |reflect_functions|Enable function reflection| |serialize|Enable serialization support through serde| |shader_format_glsl|Enable support for shaders in GLSL|