Cargo Features

[dependencies]
bevy_reflect = { version = "0.16.0-rc.1", default-features = false, features = ["documentation", "functions", "debug", "debug_stack", "glam", "petgraph", "smallvec", "uuid", "wgpu-types", "std", "critical-section", "web", "smol_str"] }
default = 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 ^0.29

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_support, bevy_utils, downcast-rs, erased-serde, optional glam ^0.29, 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_support and bevy_utils

web

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

Enables web of bevy_platform_support, 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