solana_math/lib.rs
1//! `solana-math` provides checked arithmetic and conversion traits that
2//! return explicit errors instead of panicking.
3//!
4//! Functionality is organized into trait implementations in [`impls`] and uses
5//! [`SafeMathError`] for overflow, underflow, and conversion failures.
6
7#![cfg_attr(not(any(test, feature = "std")), no_std)]
8
9mod debug_log;
10pub mod error;
11pub mod impls;
12
13pub use error::*;
14pub use impls::*;