Cargo Features
[dependencies]
bevy_reflect = { version = "0.15.0", default-features = false, features = ["bevy", "glam", "petgraph", "smallvec", "uuid", "wgpu-types", "debug", "debug_stack", "documentation", "functions", "alloc"] }
- default = alloc, debug, smallvec
-
These default features are set whenever
bevy_reflect
is added without
somewhere in the dependency tree.default-features = false - bevy = smallvec, smol_str
-
When enabled, provides Bevy-related reflection implementations
- glam
-
Enables glam
- petgraph
-
Enables petgraph
- smallvec default bevy?
-
Enables smallvec
- uuid
-
Enables uuid
- wgpu-types
-
Enables wgpu-types
- debug default = debug_stack
-
Enables features useful for debugging reflection
- debug_stack debug
-
When enabled, keeps track of the current serialization/deserialization context for better error messages
- documentation
-
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
… - alloc default
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- smol_str bevy?
-
Enables smol_str ^0.2.0