A small family of Rust crates for safe and deterministic math utilities used in Solana programs and supporting libraries.
basis-points: A validatedBasisPointstype (0..=10_000) with optionalrust_decimalconversions.solana-safe-math: Checked arithmetic and conversion traits that return explicit errors instead of panicking.wrapped-decimal: A fixed-size, POD-safe wrapper forrust_decimal::Decimalusing a stable 16-byte representation.
just check
just test
just doc
just changeset # add release intent (requires cargo-changeset)
just version # bump versions + changelogs from changesets
just publish <crate>Install the release helper once: cargo install cargo-changeset.
- Optional Anchor derives are available behind the
anchorfeature where applicable.