Cargo Features

[dependencies]
salva2d = { version = "0.9.0", default-features = false, features = ["dim2", "parallel", "sampling", "rapier", "rapier-testbed", "rapier-harness", "parry", "wasm-bindgen", "graphics"] }
default = dim2

The dim2 feature is set by default whenever salva2d is added without default-features = false somewhere in the dependency tree.

dim2 default

Affects salva2d::math

parallel = rayon
sampling = rapier

Affects salva2d::sampling

rapier rapier-testbed? sampling? = parry, rapier2d

Affects integrations::rapier

rapier-testbed rapier-harness? = graphics, rapier, rapier_testbed2d
rapier-harness = rapier-testbed
parry rapier? = parry2d
wasm-bindgen

Enables wasm-bindgen of rapier2d

graphics rapier-testbed? = bevy, bevy_egui

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.

rayon parallel?
parry2d parry?
rapier2d rapier? wasm-bindgen?
rapier_testbed2d rapier-testbed?
bevy_egui graphics?

Enables bevy_egui ^0.23

bevy wasm32 not wasm32 graphics?

Enables bevy ^0.12.1