Cargo Features

[dependencies]
bevy_r_place = { version = "0.1.0", default-features = false, features = ["viewer", "metrics", "native", "web"] }
default = native, viewer

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

viewer default

Enables bevy_gizmos of bevy

bevy:

Adds support for rendering gizmos

Affects bevy_r_place::viewer, bevy_r_place::window_icon

metrics
native default = libp2p-webrtc, rcgen, winit

Enables tcp and tokio of libp2p, pem and tokio of libp2p-webrtc, rt-multi-thread of tokio

Affects network::BevyPlaceNode.swarm, time::epoch_time_seconds, bevy_r_place::window_icon

web = libp2p-webrtc-websys, web-time

Enables wasm-bindgen, websocket-websys and webtransport-websys of libp2p, rt of tokio and webgl2 of bevy

bevy:

Enable some limitations to be able to use WebGL2. Please refer to the WebGL2 and WebGPU section of the examples README for more information on how to run Wasm builds with WebGPU.

Affects network::BevyPlaceNode.swarm, time::epoch_time_seconds

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.

libp2p-webrtc native
libp2p-webrtc-websys web?
rcgen native
web-time web?
winit native