Skip to content

Commit 726d8ac

Browse files
AlephCubedmockersf
andauthored
Added top level reflect_documentation feature flag. (#17892)
Fixes #17811. --------- Co-authored-by: François Mockers <[email protected]> Co-authored-by: François Mockers <[email protected]>
1 parent 5f86668 commit 726d8ac

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,9 @@ track_location = ["bevy_internal/track_location"]
475475
# Enable function reflection
476476
reflect_functions = ["bevy_internal/reflect_functions"]
477477

478+
# Enable documentation reflection
479+
reflect_documentation = ["bevy_internal/reflect_documentation"]
480+
478481
# Enable winit custom cursor support
479482
custom_cursor = ["bevy_internal/custom_cursor"]
480483

crates/bevy_internal/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@ reflect_functions = [
266266
"bevy_ecs/reflect_functions",
267267
]
268268

269+
# Enable documentation reflection
270+
reflect_documentation = ["bevy_reflect/documentation"]
271+
269272
# Enable winit custom cursor support
270273
custom_cursor = ["bevy_winit/custom_cursor"]
271274

docs/cargo_features.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ The default feature set enables most of the expected features of a game engine,
9090
|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|
9191
|pnm|PNM image format support, includes pam, pbm, pgm and ppm|
9292
|qoi|QOI image format support|
93+
|reflect_documentation|Enable documentation reflection|
9394
|reflect_functions|Enable function reflection|
9495
|serialize|Enable serialization support through serde|
9596
|shader_format_glsl|Enable support for shaders in GLSL|

0 commit comments

Comments
 (0)