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_diagnosticis added withoutsomewhere in the dependency tree.default-features = false 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
stdcrate. Enabling this feature will prevent compilation onno_stdtargets, 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-sectionprovides the building blocks for synchronization primitives on all platforms, includingno_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