Crate canic_utils

Crate canic_utils 

Source

Re-exports§

pub use ::canic_cdk as cdk;

Modules§

case
export
format
Small formatting helpers shared across logs and UI responses.
hash
xxHash3 hashing utilities.
instructions
Helpers for formatting raw instruction counts into friendly strings.
perf
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.