Cargo Features
[dependencies]
bevy_zeroverse = { version = "0.1.0", default-features = false, features = ["asset_pipeline", "perftest", "viewer", "web", "webgl2", "webgpu", "bevy_transform_gizmo", "noise", "rayon"] }
TODO: resolve one-hot feature flags through runtime configuration
- default = asset_pipeline, viewer
-
These default features are set whenever
bevy_zeroverse
is added without
somewhere in the dependency tree.default-features = false - asset_pipeline default
-
Enables multi-threaded of bevy ^0.13
- perftest
- viewer default web? = bevy-inspector-egui, bevy_args, bevy_panorbit_camera, clap
-
Enables bevy_ui of bevy ^0.13
bevy:
A custom ECS-driven UI framework
Required by the viewer binary
- web = viewer, webgl2
- webgl2 web?
-
Enables webgl2 of bevy ^0.13
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.
- webgpu
-
Enables webgpu of bevy ^0.13
bevy:
Enable support for WebGPU in Wasm. When enabled, this feature will override the
webgl2
feature and you won't be able to run Wasm builds with WebGL2, only with WebGPU.
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.
- bevy_args viewer
- bevy-inspector-egui viewer
-
Enables bevy-inspector-egui ^0.24
- bevy_panorbit_camera viewer
-
Enables bevy_panorbit_camera ^0.18
- bevy_transform_gizmo implicit feature
-
Enables bevy_transform_gizmo ^0.11
bevy_transform_gizmo:
A 3D transform gizmo for Bevy
- clap viewer
- noise implicit feature
-
Enables noise
noise:
Procedural noise generation library
- rayon implicit feature
-
Enables rayon
rayon:
Simple work-stealing parallelism for Rust