Crate canic_utils Copy item path Source pub use ::canic_cdk as cdk;case format Small formatting helpers shared across logs and UI responses. hash xxHash3 hashing utilities. instructions Helpers for formatting raw instruction counts into friendly strings. macros rand Randomness helpers built atop tinyrand, seeded with wall-clock time.
Provides a shared RNG for tests and lightweight sampling (non-cryptographic). serialize MiniCBOR-powered serialization helpers ensuring deterministic codecs across
canisters. Provides a thin wrapper with shared error handling for CBOR
round-trips in stable structures. time Time helpers abstracting over host/IC execution so call sites can request
UNIX epoch timestamps at various precisions. wasm WASM utilities such as hashing embedded modules with SHA-256. impl_storable_bounded Implement Storable with a
bounded size guarantee. impl_storable_unbounded Implement Storable without a
size bound.