Cargo Features

[dependencies]
bevy_app = { version = "0.16.0-rc.5", default-features = false, features = ["bevy_reflect", "reflect_functions", "trace", "bevy_debug_stepping", "error_panic_hook", "std", "critical-section", "web"] }
default = bevy_reflect, error_panic_hook, std

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

Enables bevy_ecs

bevy_reflect default 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

trace

Debugging Features

Enables tracing integration, 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 std crate. Enabling this feature will prevent compilation on no_std targets, but provides access to certain additional features on supported platforms.

Enables ctrlc, std of bevy_ecs, bevy_platform, bevy_tasks, bevy_utils, and optional bevy_reflect and std of downcast-rs

other

critical-section

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

Enables critical-section of bevy_ecs, bevy_platform, optional bevy_reflect, and bevy_tasks

web

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

Enables console_error_panic_hook, wasm-bindgen, and web-sys, web of bevy_platform, bevy_tasks, and optional bevy_reflect