Cargo Features

[dependencies]
bevy_diagnostic = { version = "0.19.0-rc.1", 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, serialize of bevy_ecs, bevy_platform, 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, bevy_time, 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, and bevy_time

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 linux win android freebsd netbsd mac sysinfo_plugin?

Enables sysinfo ^0.38.4