irox_tools/
lib.rs

1// SPDX-License-Identifier: MIT
2// Copyright 2025 IROX Contributors
3//
4
5#![forbid(unsafe_code)]
6#![warn(clippy::alloc_instead_of_core)]
7#![warn(clippy::std_instead_of_alloc)]
8#![warn(clippy::std_instead_of_core)]
9#![cfg_attr(not(feature = "std"), no_std)]
10#![cfg_attr(docsrs, feature(doc_cfg))]
11extern crate alloc;
12
13pub use primitives::*;
14pub use util::*;
15
16#[macro_use]
17pub mod ansi_colors;
18pub mod arrays;
19#[macro_use]
20pub mod assert;
21pub mod codec;
22#[macro_use]
23pub mod fmt;
24pub mod hex;
25pub mod iterators;
26pub mod options;
27pub mod random;
28cfg_feature_std! {
29    pub mod read;
30    pub mod map;
31    pub mod sync;
32}
33cfg_feature_alloc! {
34    pub mod packetio;
35    pub mod vec;
36
37    mod str;
38    pub use str::*;
39}
40
41pub mod errors;
42pub mod fs;
43pub mod hash;
44mod primitives;
45
46pub mod buf;
47mod util;
48#[macro_use]
49pub mod macros;
50pub mod math;