Expand description
Canic facade crate.
This crate is the recommended dependency for downstream canister projects. It re-exports the public Canic runtime surface and provides the common macro entry points:
build!for configured canisters and generated local sandbox/probe configstart!for configured canister lifecycle hooks and endpointsstart_fleet_coordinator!for Canic’s canonical Coordinator artifact source
For lower-level access, use the api, dto, and memory modules.
These surfaces are for configured canister role packages. Shared runtime
libraries should remain independent of Canic and use upstream crates such
as candid or ic-cdk directly when they need generic IC types or APIs.
Direct access to internal core modules is intentionally unsupported.
Modules§
- access
- Public access helpers re-exported from the core access layer.
- api
- diagnostics
- Public compact diagnostic identities and Canic-owned registered reasons.
- dto
- fleet_
admission - Synchronous Fleet-admission guard for endpoints owned by a composed framework.
- ids
- memory
- Module: memory
- prelude
- protocol
Macros§
- application_
scope - Construct one statically validated canonical application scope.
- build
- Embed the shared Canic configuration into a canister crate’s build script.
- canic_
bundle_ root_ only_ endpoints - Emit the root-only runtime endpoint surface.
- canic_
bundle_ wasm_ store_ runtime_ endpoints - Emit the canonical Fleet Subnet Root-local wasm-store endpoint surface.
- canic_
emit_ blob_ storage_ billing_ endpoints - canic_
emit_ blob_ storage_ endpoints - canic_
emit_ fleet_ coordinator_ endpoints - Emit the Fleet Coordinator’s exact command and status methods.
- canic_
emit_ icrc_ standards_ endpoints - Emit the ICRC standards-facing query endpoints selected for this profile.
- canic_
emit_ local_ wasm_ store_ endpoints - Emit the canonical local wasm-store canister endpoint surface.
- canic_
emit_ root_ command_ endpoint - Emit the Fleet Subnet Root’s role-owned command update.
- canic_
emit_ root_ status_ endpoint - Emit the Fleet Subnet Root’s role-owned status query.
- finish
- Finish a Canic canister module.
- impl_
storable_ bounded - impl_storable_bounded
- impl_
storable_ unbounded - impl_storable_unbounded
- log
- Log a runtime entry using Canic’s structured logger.
- perf
- Record and log elapsed instruction counts since the last
perf!invocation in this thread. - start
- Configure lifecycle hooks for Canic canisters.
- start_
fleet_ coordinator - Configure the dedicated built-in Fleet Coordinator canister surface.
- start_
fleet_ root - Configure Canic’s canonical Fleet Subnet Root lifecycle and endpoints.
- start_
local - Configure a local-only non-root Canic canister for manual development.
- start_
wasm_ store - Configure lifecycle hooks and the canonical endpoint bundle for a Fleet
Subnet Root-local
wasm_storecanister.
Structs§
- Diagnostic
Code - DiagnosticCode
- Error
- Error
- Registered
Diagnostic Code - RegisteredDiagnosticCode
Constants§
Attribute Macros§
- canic_
query - Define a Canic query endpoint.
- canic_
update - Define a Canic update endpoint.