Cargo Features

[dependencies]
bevy_rerecast_core = { version = "0.3.0", default-features = false, features = ["default_no_std", "std", "critical-section", "bevy_mesh", "bevy_asset", "libm", "nostd-libm", "debug_plugin", "tracing"] }
default = bevy_asset, bevy_mesh, debug_plugin, std

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

default_no_std = critical-section, libm

Recommended defaults for no_std applications

std default bevy_asset

Enables std of serde, thiserror, and optional tracing

serde:

Serde is already brought in by bevy_asset, so no need to make it optional

and std of anyhow, bevy_app, bevy_ecs, bevy_math, bevy_platform, bevy_reflect, bevy_transform, bevy_utils, bincode, glam, rerecast, and optional bevy_color

bevy_app:

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.

critical-section default_no_std?

Enables critical-section and critical-section of bevy_platform

bevy_platform:

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

bevy_mesh default

Enables bevy_mesh and bevy_render

bevy_asset default debug_plugin = std

Enables bevy_asset

Affects bevy_rerecast_core::generator, bevy_rerecast_core::asset_loader

libm default_no_std?

use libm for no_std support and cross-platform determinism

Enables libm of bevy_math, glam, and rerecast

nostd-libm

Use std if available, but fall back to libm if not

Enables nostd-libm of bevy_math, glam, and rerecast

debug_plugin default = bevy_asset

Enables bevy_color, bevy_gizmos, bevy_mesh, bevy_pbr, and bevy_render

bevy_gizmos:

debug-plugin

Affects bevy_rerecast_core::debug

tracing

Note: tracing works on all no_std platforms that support atomics

Enables tracing