ctoolbox/lib.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//! Collective Toolbox core library re-exporting formats, IO, network, and renderer.
21
22#[allow(
23 unused_imports,
24 clippy::wildcard_imports,
25 reason = "Standard workspace crate prelude"
26)]
27pub(crate) use ctb_utilities::*;
28
29pub use ctb_formats as formats;
30pub use ctb_io as io;
31pub use ctb_network as network;
32pub use ctb_renderer as renderer;
33pub use ctb_runtime as runtime;
34pub use ctb_storage as storage;
35
36pub use ctb_cli as cli;
37
38pub use ctb_workspace as workspace;
39
40#[cfg(test)]
41#[allow(
42 clippy::panic,
43 clippy::expect_used,
44 clippy::unwrap_used,
45 clippy::unwrap_in_result,
46 clippy::panic_in_result_fn,
47 clippy::indexing_slicing,
48 clippy::arithmetic_side_effects,
49 reason = "Standard repository test boilerplate"
50)]
51mod tests {
52 use super::*;
53
54 #[crate::ctb_test]
55 fn it_works() {
56 assert_eq!(2 + 2, 4);
57 }
58}