Cargo Features

Lightyear has no features set by default.

[dependencies]
lightyear = { version = "0.19.0", features = ["trace", "metrics", "visualizer", "mock_time", "webtransport", "leafwing", "avian2d", "avian3d", "websocket", "steam", "track_change_detection", "lz4", "zstd", "bevy_egui", "futures-lite"] }
trace

Affects channel::stats

metrics visualizer?

Enables metrics, metrics-exporter-prometheus, metrics-tracing-context, and metrics-util

visualizer = metrics

Enables bevy_metrics_dashboard

mock_time

Enables mock_instant

webtransport

Enables wasm-bindgen-futures, web-sys, wtransport, xwt-core, and xwt-web

leafwing

Enables leafwing-input-manager

input

Affects input::leafwing, inputs::leafwing, input::leafwing, input::leafwing

avian2d

NOTE: because lightyear doesn't enable any features of avian by default, your crate must enable essential features (like f32 or f64).

Enables avian2d =0.2.0

physics

Affects utils::avian2d

avian3d

Enables 3d of avian3d =0.2.0

Affects utils::avian3d

websocket

Enables futures-util, tokio-tungstenite ^0.23.0, wasm-bindgen, wasm-bindgen-futures, and web-sys

futures-util:

WebSocket

steam

Enables steamworks

Affects connection::steam

track_change_detection

Enables track_change_detection of bevy

bevy:

Enables source location tracking for change detection, which can assist with debugging

lz4

compression

Enables lz4_flex

zstd

Enables zstd

Features from optional dependencies

bevy_egui implicit feature

Enables bevy_egui

debug ui

futures-lite wasm implicit feature

Enables futures-lite

futures-lite:

Futures, streams, and async I/O combinators