Cargo Features

[dependencies]
sparkl2d-core = { version = "0.4.0", default-features = false, features = ["dim2", "f32", "serde-serialize", "cuda"] }
default = dim2, f32

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

dim2 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
serde-serialize = serde

Enables serde-serialize of nalgebra ^0.32

cuda = cust, cust_core

Affects lib::cuda, testbed_plugin::UserCudaCallback, testbed_plugin::MpmTestbedPlugin.cuda_callbacks, testbed_plugin::MpmTestbedPlugin.last_timing

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.

cust_core cuda?
serde serde-serialize?

Enables serde

Serialization

cust not cuda cuda?