ctb_formats_math/
math.rs

1// SPDX-License-Identifier: AGPL-3.0-or-later
2/*
3This file is part of Collective Toolbox, a database and document workspace and utilities.
4Copyright (C) 2026 Collective Toolbox Developers
5Contact: info@collectivetoolbox.com
6
7This program is free software: you can redistribute it and/or modify it under
8the terms of the GNU Affero General Public License as published by the Free
9Software Foundation, either version 3 of the License, or (at your option) any
10later version.
11
12This program is distributed in the hope that it will be useful, but WITHOUT ANY
13WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more details.
15
16You should have received a copy of the GNU Affero General Public License along
17with this program.  If not, see <https://www.gnu.org/licenses/>.
18*/
19
20//! Mathematical computation, base conversion, and calculator utilities.
21
22#[allow(
23    unused_imports,
24    clippy::wildcard_imports,
25    reason = "Standard workspace crate prelude"
26)]
27pub(crate) use ctb_utilities::*;
28
29pub mod base;
30pub mod calculator_classic;
31pub mod center_of_gravity;
32pub mod cli;
33pub mod constant;
34pub mod parsing;
35pub mod primality;
36pub mod range_generator;
37
38pub use cli::{
39    BaseArgs, BaseToBaseArgs, CliBaseAlphabet, run_base_convert, run_base2base,
40};
41pub use malachite::Natural;
42pub use parsing::{MathDetection, detect_math_format, detect_numeric_format};
43
44#[cfg(test)]
45#[allow(
46    clippy::panic,
47    clippy::expect_used,
48    clippy::unwrap_used,
49    clippy::unwrap_in_result,
50    clippy::panic_in_result_fn,
51    clippy::indexing_slicing,
52    clippy::arithmetic_side_effects,
53    reason = "Standard repository test boilerplate"
54)]
55mod tests {
56    use super::*;
57
58    #[crate::ctb_test]
59    fn test_modules_load() {
60        assert!(true);
61    }
62}