spacetimedb_math
Common math types and SpacetimeDB integrations for server-side Rust modules.
Features
Scalar selection
f32(default) — usef32asScalar.f64— usef64asScalar.
f32andf64are mutually exclusive.
Optional integrations
serde— enableSerialize/Deserializederives.glam— enableFromconversions withglamtypes.nalgebra— enableFromconversions withnalgebratypes.
You can enable both glam and nalgebra at the same time.
Usage
Add the crate with your desired features:
[dependencies]
spacetimedb_math = { version = "0.1", features = ["f32", "glam", "serde"] }
License
MIT