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//! or `host` for every native live-call adapter and runtime helper. CLI parsing
15//! and process IO belong to the separate `ic-query-cli` crate.
16
17#[cfg(feature = "subnet-catalog-host")]
18mod agent;
19pub mod cache;
20#[cfg(feature = "subnet-catalog-host")]
21mod cache_file;
22#[cfg(feature = "host")]
23mod certification;
24pub mod duration;
25#[cfg(feature = "subnet-catalog-host")]
26mod freshness;
27mod hex;
28#[cfg(feature = "subnet-catalog-host")]
29mod http_endpoint;
30pub mod ic;
31#[cfg(feature = "subnet-catalog-host")]
32mod ic_registry;
33pub mod icrc;
34#[cfg(feature = "subnet-catalog-host")]
35mod network;
36pub mod nns;
37#[cfg(feature = "host")]
38mod progress;
39#[cfg(feature = "host")]
40mod report_sort;
41#[cfg(feature = "subnet-catalog-host")]
42mod runtime;
43#[cfg(feature = "host")]
44pub(crate) mod snapshot_cache;
45pub mod sns;
46pub mod subnet_catalog;
47pub mod system;
48
49#[cfg(feature = "subnet-catalog-host")]
50pub use cache_file::{CacheFileError, HostCacheError};
51mod table;
52#[cfg(feature = "host")]
53mod text_search;
54mod text_value;
55mod token_amount;
56mod token_metadata_text;
57
58#[cfg(all(test, feature = "subnet-catalog-host"))]
59mod test_support;
60
61#[cfg(test)]
62mod tests;
63
64#[cfg(feature = "host")]
65pub use progress::{QueryProgress, QueryProgressEvent, QueryProgressState};