ic-platform 0.1.16

Controlled Candid and IC runtime dependency boundary
Documentation
//! Controlled dependencies for external Candid protocols and IC runtime integration.
//!
//! [`Principal`] is always available. `candid` selects bounded decoding;
//! `executor` selects the shared CDK executor without a Candid dependency.
//! `candid-parser` selects native host parsing and binding generation only.
//! `agent` selects native IC transport and identities, with consumer-owned policy.
//! `pocket-ic` selects native simulator client identities; Testkit owns lifecycle policy.
//! `secp256k1` selects native offline public-key derivation with upstream identities.
//! `bls` selects BLS keys, signatures and verification with upstream allocation support.
//! `canister-sig-creation` selects canister public-key formats and hashing.
//! `signature-verification` selects upstream canister-signature verification.
//! `cdk` selects Platform entrypoint macros and the qualified upstream CDK runtime.
//! `ic0` selects qualified raw system calls without Candid or an executor.
//! `management-canister-types` selects external management HTTP/history/snapshot/status DTOs.
//! `icrc-ledger-types` selects external ledger DTOs without storage integration.
//! Consumers retain protocol schemas, resource limits and lifecycle policy.

pub use ic_principal::{Principal, PrincipalError};

#[cfg(all(feature = "agent", not(target_family = "wasm")))]
pub mod agent;

#[cfg(feature = "bls")]
pub mod bls;
#[cfg(feature = "candid")]
pub mod candid;
#[cfg(all(feature = "candid-parser", not(target_family = "wasm")))]
pub mod candid_parser;
#[cfg(feature = "canister-sig-creation")]
pub mod canister_sig_creation;
#[cfg(feature = "cdk")]
pub mod cdk;
#[cfg(feature = "certification")]
pub mod certification;
#[cfg(feature = "ed25519")]
pub mod ed25519;
#[cfg(feature = "executor")]
pub mod executor;
#[cfg(feature = "ic0")]
pub mod ic0;
#[cfg(feature = "icrc-ledger-types")]
pub mod icrc_ledger_types;
#[cfg(feature = "management-canister-types")]
pub mod management_canister_types;
#[cfg(all(feature = "secp256k1", not(target_family = "wasm")))]
pub mod secp256k1;
#[cfg(feature = "signature-verification")]
pub mod signature_verification;

#[cfg(all(feature = "pocket-ic", not(target_family = "wasm")))]
pub mod pocket_ic;