ic_query/lib.rs
1//! Feature-selected access to IC Query's independent report libraries.
2//!
3//! Defaults are empty. Enable `topology`, `sns`, or both. These are direct
4//! re-exports: report types, query policy and implementation belong to the
5//! specialist crates. This crate adds no transport, state or policy.
6//!
7//! Version 0.104 replaces the legacy 0.103 API. Old feature and module names
8//! are not aliases; consumers must migrate explicitly. Existing specialist
9//! report JSON is unchanged, but legacy retained data has no automatic migration.
10
11/// IC infrastructure evidence for Canic decisions.
12///
13/// ```
14/// fn same_type(report: ic_query::topology::placement::PlacementReport)
15/// -> ic_query_topology::placement::PlacementReport {
16/// report
17/// }
18/// ```
19#[cfg(feature = "topology")]
20pub use ic_query_topology as topology;
21
22/// Selected ICRC balances and SNS neuron migration evidence.
23///
24/// The name allows future SNS capabilities; the current scope remains bounded
25/// read-only migration evidence, including balances outside SNS deployments.
26///
27/// ```
28/// fn same_type(report: ic_query::sns::balance::BalanceReport)
29/// -> ic_query_sns::balance::BalanceReport {
30/// report
31/// }
32/// ```
33#[cfg(feature = "sns")]
34pub use ic_query_sns as sns;