Skip to main content

ic_query/
lib.rs

1//! Reusable report models and helpers for Internet Computer metadata queries.
2//!
3//! The default feature set is empty. A dependency using
4//! `default-features = false` gets the pure report DTOs, renderers, and local
5//! parsing/resolution helpers that are intended to stay free of native
6//! live-call dependencies.
7//!
8//! This is a host dependency boundary, not a `no_std` promise. No-default
9//! builds are expected to compile for `wasm32-unknown-unknown` without
10//! `ic-agent`, Reqwest, Tokio, or `futures`, but they may still use ordinary
11//! `std` types such as `String` and `Vec`.
12//!
13//! Enable `subnet-catalog-host` for the focused live/cache Subnet catalog API,
14//! `nns-topology-host` for that API plus exact-version joined NNS Subnet
15//! topology, or `host` for every native live-call adapter and runtime helper.
16//! CLI parsing and process IO belong to the separate `ic-query-cli` crate.
17
18#[cfg(feature = "subnet-catalog-host")]
19mod agent;
20pub mod cache;
21#[cfg(feature = "subnet-catalog-host")]
22mod cache_file;
23#[cfg(feature = "host")]
24mod certification;
25pub mod duration;
26#[cfg(feature = "subnet-catalog-host")]
27mod freshness;
28mod hex;
29#[cfg(feature = "subnet-catalog-host")]
30mod http_endpoint;
31mod human_quantity;
32pub mod ic;
33#[cfg(feature = "subnet-catalog-host")]
34mod ic_registry;
35pub mod icrc;
36#[cfg(feature = "subnet-catalog-host")]
37mod network;
38pub mod nns;
39#[cfg(feature = "host")]
40mod progress;
41pub mod report;
42#[cfg(feature = "host")]
43mod report_sort;
44#[cfg(feature = "subnet-catalog-host")]
45mod runtime;
46#[cfg(feature = "host")]
47pub(crate) mod snapshot_cache;
48pub mod sns;
49pub mod subnet_catalog;
50pub mod system;
51
52#[cfg(feature = "subnet-catalog-host")]
53pub use cache_file::{CacheFileError, HostCacheError};
54mod table;
55#[cfg(feature = "host")]
56mod text_search;
57mod text_value;
58mod token_amount;
59mod token_metadata_text;
60
61#[cfg(all(test, feature = "subnet-catalog-host"))]
62mod test_support;
63
64#[cfg(test)]
65mod tests;
66
67#[cfg(feature = "host")]
68pub use progress::{QueryProgress, QueryProgressEvent, QueryProgressState};