lib.rs (665B)
1 #![doc = include_str!("../README.md")] 2 #![cfg_attr(not(feature = "std"), no_std)] 3 #![forbid(unsafe_code)] 4 #[cfg(not(feature = "std"))] 5 extern crate alloc; 6 #[cfg(all(test, not(feature = "std")))] 7 extern crate std; 8 9 pub mod currency; 10 pub mod decimal; 11 mod discount; 12 #[cfg(all(test, feature = "std"))] 13 mod dto; 14 mod error; 15 pub mod money; 16 pub mod percent; 17 pub mod pricing; 18 pub mod quantity; 19 mod quantity_price; 20 #[cfg(feature = "serde")] 21 mod serde_ext; 22 pub mod unit; 23 24 pub use currency::Currency; 25 pub use decimal::Decimal; 26 pub use error::Error; 27 pub use money::Money; 28 pub use percent::Percent; 29 pub use pricing::QuantityPrice; 30 pub use quantity::Quantity; 31 pub use unit::Unit;