Cargo Features

[dependencies]
bevy_window = { version = "0.16.0-rc.2", default-features = false, features = ["bevy_reflect", "serialize", "std", "libm"] }
default = bevy_reflect, std

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

bevy_reflect default

Functionality

Adds runtime reflection support using bevy_reflect.

Enables bevy_reflect and bevy_reflect of bevy_app, bevy_ecs, and bevy_input

bevy_app:

bevy

serialize = serde

Adds serialization support through serde.

Enables serde of smol_str ^0.2, serialize of bevy_ecs and bevy_input

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_input, bevy_math, bevy_platform_support, optional bevy_reflect, raw-window-handle, and optional serde

serde:

other

libm

Uses the libm maths library instead of the one provided in std and core.

Enables libm of bevy_math

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.

serde serialize?