ic_platform/lib.rs
1//! Controlled dependencies for IC runtime integration and required IC Candid interfaces.
2//!
3//! All owned application endpoints use IC Wire, including public endpoints.
4//! Candid adapts required management/system, NNS/SNS, ledger and other Candid
5//! interfaces; caller location does not select the codec. Existing Candid
6//! checkpoints remain a legacy persisted-data compatibility exception.
7//!
8//! [`Principal`] is always available. `candid` selects bounded decoding;
9//! `executor` selects the shared CDK executor without a Candid dependency.
10//! `candid-parser` selects native host parsing and binding generation only.
11//! `agent` selects native IC transport and identities, with consumer-owned policy.
12//! `pocket-ic` selects native simulator client identities; Testkit owns lifecycle policy.
13//! `secp256k1` selects native offline public-key derivation with upstream identities.
14//! `bls` selects BLS keys, signatures and verification with upstream allocation support.
15//! `canister-sig-creation` selects canister public-key formats and hashing.
16//! `signature-verification` selects upstream canister-signature verification.
17//! `cdk` selects owned explicit-codec entrypoints and a Candid-free runtime.
18//! `ic0` selects qualified raw system calls without Candid or an executor.
19//! `management-canister-types` selects external management HTTP/history/snapshot/status DTOs.
20//! `icrc-ledger-types` selects external ledger DTOs without storage integration.
21//! Consumers retain protocol schemas, resource limits and lifecycle policy.
22
23pub mod account;
24pub use account::{Account, AccountError, Subaccount};
25
26pub mod principal;
27pub use principal::{Principal, PrincipalError};
28
29#[cfg(all(feature = "agent", not(target_family = "wasm")))]
30pub mod agent;
31
32#[cfg(feature = "bls")]
33pub mod bls;
34#[cfg(feature = "candid")]
35pub mod candid;
36#[cfg(all(feature = "candid-parser", not(target_family = "wasm")))]
37pub mod candid_parser;
38#[cfg(feature = "canister-sig-creation")]
39pub mod canister_sig_creation;
40#[cfg(feature = "cdk")]
41pub mod cdk;
42#[cfg(feature = "certification")]
43pub mod certification;
44#[cfg(feature = "ecdsa")]
45pub mod ecdsa;
46#[cfg(feature = "ed25519")]
47pub mod ed25519;
48#[cfg(feature = "executor")]
49pub mod executor;
50#[cfg(feature = "ic0")]
51pub mod ic0;
52#[cfg(feature = "icrc-ledger-types")]
53pub mod icrc_ledger_types;
54#[cfg(feature = "management-canister-types")]
55pub mod management_canister_types;
56#[cfg(all(feature = "secp256k1", not(target_family = "wasm")))]
57pub mod secp256k1;
58#[cfg(feature = "signature-verification")]
59pub mod signature_verification;
60
61#[cfg(all(feature = "pocket-ic", not(target_family = "wasm")))]
62pub mod pocket_ic;