safe_bigmath/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2#![deny(missing_docs)]
3//! Safe, non-panicking numeric primitives built on top of pure-Rust `num-bigint` (alloc-only).
4//!
5//! `std` support is enabled by default; disable default features to use `no_std` + `alloc`.
6
7extern crate alloc;
8
9#[cfg(any(test, feature = "std"))]
10extern crate std;
11
12/// Fixed-precision decimal support built on `SafeInt`.
13pub mod decimal;
14/// Arbitrary-precision integer support and helpers.
15pub mod integer;
16/// Parsers for `SafeInt` and `SafeDec` literals.
17pub mod parsing;
18
19/// Re-export of the fixed-precision decimal type.
20pub use decimal::SafeDec;
21/// Re-export of the arbitrary-precision integer type.
22pub use integer::SafeInt;