Cargo Features
[dependencies]
bevy_time = { version = "0.16.0-rc.1", default-features = false, features = ["bevy_reflect", "serialize", "std", "critical-section"] }
- default = bevy_reflect, std
-
These default features are set whenever
bevy_time
is added without
somewhere in the dependency tree.default-features = false Enables bevy_app
bevy
- bevy_reflect default
-
Functionality
Adds runtime reflection support using
bevy_reflect
.Enables bevy_reflect, bevy_reflect of bevy_app and bevy_ecs
- serialize
-
Adds serialization support through
serde
.Enables serde, serialize of bevy_ecs and bevy_platform_support
- std default
-
Platform Compatibility
Allows access to the
std
crate. Enabling this feature will prevent compilation onno_std
targets, but provides access to certain additional features on supported platforms.Enables std of optional serde, std of bevy_app, bevy_ecs, bevy_platform_support, and optional bevy_reflect and crossbeam-channel
other
Affects
bevy_time::TimeReceiver
,bevy_time::TimeSender
,bevy_time::create_time_channels
… - critical-section
-
critical-section
provides the building blocks for synchronization primitives on all platforms, includingno_std
.Enables critical-section of bevy_app, bevy_ecs, bevy_platform_support, and optional bevy_reflect