canic_utils/lib.rs
1//! Small deterministic helpers used across Canic.
2//!
3//! This crate intentionally stays lightweight: helpers are designed to be
4//! replica-friendly and predictable, and avoid pulling in higher-level Canic
5//! orchestration concerns.
6//!
7//! Modules:
8//! - [`case`] – string casing helpers.
9//! - [`format`] – small formatting helpers for logs/UI.
10//! - [`hash`] – fast xxHash3 hashing (non-cryptographic).
11//! - [`instructions`] – formatting helpers for instruction counts.
12//! - [`rand`] – ChaCha20 PRNG seeded via the management canister `raw_rand`.
13
14pub mod case;
15pub mod format;
16pub mod hash;
17pub mod instructions;
18pub mod rand;