Cargo Features
[dependencies]
bevy_app = { version = "0.18.0-rc.1", default-features = false, features = ["bevy_reflect", "reflect_functions", "reflect_auto_register", "trace", "bevy_debug_stepping", "error_panic_hook", "std", "critical-section", "web", "hotpatching"] }
- default = bevy_reflect, error_panic_hook, std
-
These default features are set whenever
bevy_appis added withoutsomewhere in the dependency tree.default-features = false Enables bevy_ecs
- bevy_reflect default reflect_auto_register? reflect_functions?
-
Functionality
Adds runtime reflection support using
bevy_reflect.Enables bevy_reflect, bevy_reflect of bevy_ecs
- reflect_functions = bevy_reflect
-
Extends reflection support to functions.
Enables reflect_functions of bevy_ecs, functions of bevy_reflect
- reflect_auto_register = bevy_reflect
-
Enables reflect_auto_register of bevy_ecs and auto_register of bevy_reflect
bevy_reflect:
Enables automatic reflect registration. Does nothing by itself, must select
auto_register_inventoryorauto_register_staticto make it work. - trace
-
Debugging Features
Enables
tracingintegration, allowing spans and other metrics to be reported through that framework.Enables tracing
- bevy_debug_stepping
-
Provides system stepping support, allowing them to be paused, stepped, and other debug operations which can help with diagnosing certain behaviors.
- error_panic_hook default
-
Will set the BevyError panic hook, which gives cleaner filtered backtraces when a BevyError is hit.
- std default
-
Platform Compatibility
Allows access to the
stdcrate. Enabling this feature will prevent compilation onno_stdtargets, but provides access to certain additional features on supported platforms.Enables ctrlc, std of bevy_ecs, bevy_platform, and optional bevy_reflect and std of downcast-rs
other
- critical-section
-
critical-sectionprovides the building blocks for synchronization primitives on all platforms, includingno_std.Enables critical-section of bevy_ecs, bevy_platform, and optional bevy_reflect
- web
-
Enables use of browser APIs. Note this is currently only applicable on
wasm32architectures.Enables console_error_panic_hook, wasm-bindgen, and web-sys, web of bevy_platform and optional bevy_reflect
- hotpatching
-
Enables crossbeam-channel and dioxus-devtools, hotpatching of bevy_ecs
Affects
bevy_app::hotpatch…