Cargo Features
[dependencies]
sparkl3d = { version = "0.4.0", default-features = false, features = ["dim3", "f32", "cuda", "serde-serialize", "rapier-testbed", "rapier-harness", "graphics"] }
- default = dim3, f32
-
These default features are set whenever
sparkl3d
is added without
somewhere in the dependency tree.default-features = false - dim3 default
-
Affects
cuda::G2P2G_THREADS
,gpu_grid::NUM_CELL_PER_BLOCK
,gpu_grid::NUM_ASSOC_BLOCKS
,gpu_grid::NBH_SHIFTS
,gpu_grid::NBH_SHIFTS_SHARED
… - f32 default
- cuda = cust, sparkl3d-kernels
-
Affects
sparkl3d::cuda
,testbed_plugin::UserCudaCallback
,testbed_plugin::MpmTestbedPlugin.cuda_callbacks
,testbed_plugin::MpmTestbedPlugin.last_timing
… - serde-serialize = serde
-
Enables serde-serialize of nalgebra ^0.32, parry3d ^0.13, rapier3d ^0.17.2, and sparkl3d-core
- rapier-testbed rapier-harness? = graphics, itertools, rapier_testbed3d
-
Third-party integration.
Affects
third_party::rapier
… - rapier-harness = rapier-testbed
- graphics rapier-testbed? = bevy, bevy_ecs, 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.
- serde serde-serialize?
-
Enables serde
Serialization
- rapier_testbed3d rapier-testbed?
-
Enables rapier_testbed3d ^0.17.0
Third-party integration
- bevy_egui graphics?
-
Enables bevy_egui ^0.22
- bevy_ecs graphics?
-
Enables bevy_ecs ^0.11
- itertools rapier-testbed?
-
Enables itertools ^0.10
- cust cuda?
-
Enables cust
CUDA
- sparkl3d-kernels cuda?
- bevy not wasm32 graphics?
-
Enables bevy ^0.11