Cargo Features

[dependencies]
bevy_hanabi = { version = "0.10.0", default-features = false, features = ["2d", "3d", "gpu_tests", "examples_world_inspector"] }
default = 2d, 3d, examples_world_inspector, gpu_tests

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

2d default

Enable support for rendering through a 2D camera (Camera2dBundle)

Affects bevy_hanabi::ParticleEffect.z_layer_2d

3d default

Enable support for rendering through a 3D camera (Camera3dBundle)

gpu_tests default

Special feature to enable GPU-based tests, which otherwise fail on a CI machine without a graphic adapter or without proper drivers.
This is a testing-only feature, which has no effect on the build.

examples_world_inspector default

Enable world inspector in examples, via bevy-inspector-egui.
This has no effect on the crate itself, only affects examples.
Unfortunately cargo doesn't allow example-only features.
We don't force a dependency on the bevy-inspector-egui crate because:
1. dev-dependencies cannot be optional
2. there's a bunch of duplicate deps and dodgy licenses pulled