|
12 | 12 | //! ## Why CMN? |
13 | 13 | //! |
14 | 14 | //! `std::f64::consts` provides 11 mathematical constants. CMN |
15 | | -//! extends that with 44 physical, cryptographic, and series |
16 | | -//! constants — plus a runtime lookup API, 14 utility macros, |
17 | | -//! and a built-in word-list module. Every constant resolves at |
18 | | -//! compile time. Works in `no_std` environments. |
| 15 | +//! extends that with 110 additional physical, cryptographic, |
| 16 | +//! and series constants — plus a runtime lookup API, 15 |
| 17 | +//! utility macros (7 `no_std` + 8 `std`), a datetime module, |
| 18 | +//! and a built-in word-list. Every constant resolves at |
| 19 | +//! compile time. Works in `no_std` and WASM environments. |
19 | 20 | //! |
20 | 21 | //! ## Modules |
21 | 22 | //! |
22 | 23 | //! - **[`constants`]** — 121 `const` values (PI, Avogadro, |
23 | | -//! Planck, etc.). With `std`: runtime `Constants` lookup API |
24 | | -//! + `ConstantValue` typed enum. |
25 | | -//! - **[`macros`]** — 14 utility macros for min/max, |
26 | | -//! range-checks, collections, and parsing. |
| 24 | +//! Planck, W/Z/Higgs boson, etc.) with `Category` filtering. |
| 25 | +//! With `std`: runtime `Constants` lookup API + |
| 26 | +//! `ConstantValue` typed enum. |
| 27 | +//! - **[`macros`]** — 15 utility macros: 7 `no_std` |
| 28 | +//! (`cmn_max!`, `cmn_min!`, `cmn_in_range!`, `cmn_assert!`, |
| 29 | +//! `cmn_contains!`, `cmn_to_num!`, `cmn_constants!`) + 8 |
| 30 | +//! `std` (`cmn_vec!`, `cmn_map!`, `cmn_join!`, `cmn_split!`, |
| 31 | +//! `cmn_print!`, `cmn_print_vec!`, `cmn!`, `cmn_parse!`). |
27 | 32 | //! - With `std` feature: **[`words`]** module, **[`datetime`]** |
28 | 33 | //! utilities, and **`Common`** JSON bridge. |
29 | 34 | //! |
|
56 | 61 | //! |
57 | 62 | //! | Feature | Default | Enables | |
58 | 63 | //! |---------|---------|---------| |
59 | | -//! | `std` | Yes | `Constants` struct, `Words`, `Common`, serde support | |
| 64 | +//! | `std` | Yes | `Constants` struct, `ConstantValue`, `Words`, `Common`, `datetime`, 8 std macros, serde | |
60 | 65 | //! |
61 | 66 | //! For `no_std`, disable default features: |
62 | 67 | //! ```toml |
|
81 | 86 | #[cfg(feature = "std")] |
82 | 87 | use serde::{Deserialize, Serialize}; |
83 | 88 |
|
84 | | -/// 14 utility macros for assertions, collections, range-checks, |
85 | | -/// and string operations. Available in `no_std`. |
| 89 | +/// 15 utility macros: 7 `no_std`-compatible + 8 `std`-only. |
| 90 | +/// See the [`macros`] module for the full list. |
86 | 91 | pub mod macros; |
87 | 92 |
|
88 | 93 | /// 121 mathematical, physical, and cryptographic constants as |
|
0 commit comments