Skip to content

Commit

Permalink
Added top level reflect_documentation feature flag. (#17892)
Browse files Browse the repository at this point in the history
Fixes #17811.

---------

Co-authored-by: François Mockers <francois.mockers@vleue.com>
Co-authored-by: François Mockers <mockersf@gmail.com>
  • Loading branch information
3 people authored Feb 23, 2025
1 parent 5f86668 commit 726d8ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
3 changes: 3 additions & 0 deletions crates/bevy_internal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
1 change: 1 addition & 0 deletions docs/cargo_features.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 726d8ac

Please sign in to comment.