Thanks to visit codestin.com
Credit goes to lib.rs

Cargo Features

[dependencies]
bevy_reflect = { version = "0.17.1", default-features = false, features = ["documentation", "functions", "debug", "debug_stack", "glam", "hashbrown", "petgraph", "smallvec", "uuid", "wgpu-types", "std", "critical-section", "auto_register", "auto_register_inventory", "auto_register_static", "web", "smol_str"] }
default = auto_register_inventory, debug, smallvec, std

These default features are set whenever bevy_reflect is added without default-features = false somewhere in the dependency tree.

documentation

Features

When enabled, allows documentation comments to be accessed via reflection

Enables documentation of bevy_reflect_derive

bevy

functions

Enables function reflection

Enables functions of bevy_reflect_derive

Affects bevy_reflect::func

debug default = debug_stack

Debugging Features

Enables features useful for debugging reflection

debug_stack debug = std

When enabled, keeps track of the current serialization/deserialization context for better error messages

glam

Integrations

Adds reflection support to glam types.

Enables glam

hashbrown

Adds reflection support to hashbrown types.

Enables hashbrown

petgraph = std

Adds reflection support to petgraph types.

Enables petgraph

smallvec default

Adds reflection support to smallvec types.

Enables smallvec

uuid

Adds reflection support to uuid types.

Enables uuid

wgpu-types

Adds reflection support to wgpu-types types.

Enables wgpu-types

std default debug_stack? petgraph?

Platform Compatibility

Allows access to the std crate. Enabling this feature will prevent compilation on no_std targets, but provides access to certain additional features on supported platforms.

Enables std of bevy_platform, downcast-rs, erased-serde, optional glam, serde, optional smol_str ^0.2.0, optional uuid, and optional wgpu-types

erased-serde:

other

critical-section

critical-section provides the building blocks for synchronization primitives on all platforms, including no_std.

Enables critical-section of bevy_platform

auto_register auto_register_inventory auto_register_static?

Enables automatic reflect registration. Does nothing by itself, must select auto_register_inventory or auto_register_static to make it work.

auto_register_inventory default = auto_register

Enables automatic reflect registration using inventory. Not supported on all platforms.

Enables auto_register_inventory of bevy_reflect_derive and inventory

deps for automatic type registration

auto_register_static = auto_register

Enable automatic reflect registration without inventory. This feature has precedence over auto_register_inventory. See load_type_registrations for more info.

Enables auto_register_static of bevy_reflect_derive

web

Enables use of browser APIs. Note this is currently only applicable on wasm32 architectures.

Enables web of bevy_platform, js of optional uuid

Features from optional dependencies

smol_str implicit feature

Enables smol_str ^0.2.0

smol_str:

small-string optimized string type with O(1) clone