ic_platform/lib.rs
1//! Controlled dependencies for external Candid protocols and IC runtime integration.
2//!
3//! [`Principal`] is always available. `candid` selects bounded decoding;
4//! `executor` selects the shared CDK executor without a Candid dependency.
5//! `candid-parser` selects native host parsing and binding generation only.
6//! `agent` selects native IC transport and identities, with consumer-owned policy.
7//! `secp256k1` selects native offline public-key derivation with upstream identities.
8//! `bls` selects BLS keys, signatures and verification with upstream allocation support.
9//! `canister-sig-creation` selects canister public-key formats and hashing.
10//! `signature-verification` selects upstream canister-signature verification.
11//! `cdk` selects Platform entrypoint macros and the qualified upstream CDK runtime.
12//! `ic0` selects qualified raw system calls without Candid or an executor.
13//! `management-canister-types` selects external management HTTP/history/snapshot/status DTOs.
14//! `icrc-ledger-types` selects external ledger DTOs without storage integration.
15//! Consumers retain protocol schemas, resource limits and lifecycle policy.
16
17pub use ic_principal::{Principal, PrincipalError};
18
19#[cfg(all(feature = "agent", not(target_family = "wasm")))]
20pub mod agent;
21
22#[cfg(feature = "bls")]
23pub mod bls;
24#[cfg(feature = "candid")]
25pub mod candid;
26#[cfg(all(feature = "candid-parser", not(target_family = "wasm")))]
27pub mod candid_parser;
28#[cfg(feature = "canister-sig-creation")]
29pub mod canister_sig_creation;
30#[cfg(feature = "cdk")]
31pub mod cdk;
32#[cfg(feature = "certification")]
33pub mod certification;
34#[cfg(feature = "executor")]
35pub mod executor;
36#[cfg(feature = "ic0")]
37pub mod ic0;
38#[cfg(feature = "icrc-ledger-types")]
39pub mod icrc_ledger_types;
40#[cfg(feature = "management-canister-types")]
41pub mod management_canister_types;
42#[cfg(all(feature = "secp256k1", not(target_family = "wasm")))]
43pub mod secp256k1;
44#[cfg(feature = "signature-verification")]
45pub mod signature_verification;