Crate safe_bigmath

Crate safe_bigmath 

Source
Expand description

Safe, non-panicking numeric primitives built on top of pure-Rust num-bigint (alloc-only).

std support is enabled by default; disable default features to use no_std + alloc.

SafeInt and SafeDec implement lencode::Encode/Decode. The wire format uses a compact, little-endian varint header for values with up to 63 payload bytes, and falls back to lencode’s Vec<u8> encoding for larger magnitudes.

Re-exports§

pub use decimal::SafeDec;
pub use integer::SafeInt;

Modules§

decimal
Fixed-precision decimal support built on SafeInt.
integer
Arbitrary-precision integer support and helpers.
parsing
Parsers for SafeInt and SafeDec literals.