Skip to main content

ic_platform_protocol/
lib.rs

1//! Bounded external protocol formats, independent of transport and execution.
2//!
3//! Capabilities are explicit; default features are empty. The initial
4//! `cloud-engine` capability encodes requests only. `cloud-engine-response` adds
5//! bounded selected response decoding and canonical identities. `http-request`
6//! encodes a narrow management HTTP GET argument without a codec dependency.
7//! This package does not replace the complete legacy Platform surface.
8
9#![forbid(unsafe_code)]
10
11#[cfg(feature = "caffeine")]
12pub mod caffeine;
13
14#[cfg(feature = "cloud-engine")]
15pub mod cloud_engine;
16
17#[cfg(any(
18    feature = "cloud-engine-response",
19    feature = "management-chunks",
20    feature = "management-snapshots",
21    feature = "caffeine",
22    feature = "sns-neurons"
23))]
24pub mod candid;
25
26#[cfg(feature = "management-snapshots")]
27pub mod management_snapshots;
28
29#[cfg(feature = "management-chunks")]
30pub mod management_chunks;
31
32#[cfg(feature = "registry-settings")]
33pub mod registry_settings;
34
35#[cfg(feature = "http-request")]
36pub mod http_request;
37
38#[cfg(feature = "registry")]
39pub mod registry;
40
41#[cfg(feature = "registry-placement")]
42pub mod placement;
43
44#[cfg(feature = "raw-rand")]
45pub mod raw_rand;
46
47#[cfg(feature = "ledger")]
48pub mod ledger;
49#[cfg(feature = "management")]
50pub mod management;
51
52#[cfg(feature = "sns-neurons")]
53pub mod sns;