Cargo Features

[dependencies]
bevy_diagnostic = { version = "0.16.0-rc.2", default-features = false, features = ["serialize", "dynamic_linking", "sysinfo_plugin", "std", "critical-section"] }
default = std

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

Enables bevy_ecs

serialize

Functionality

Adds serialization support through serde.

Enables serde, serde of bevy_utils, serialize of bevy_ecs, bevy_platform_support, and bevy_time

dynamic_linking

Disables diagnostics that are unsupported when Bevy is dynamically linked

sysinfo_plugin = sysinfo

Adds integration with sysinfo.

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 std of bevy_app, bevy_ecs, bevy_platform_support, bevy_tasks, bevy_time, bevy_utils, and optional serde

bevy_app:

bevy

critical-section

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

Enables critical-section of bevy_app, bevy_ecs, bevy_platform_support, bevy_tasks, bevy_time, and bevy_utils

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.

sysinfo mac linux win android freebsd sysinfo_plugin?

Enables sysinfo ^0.33.0