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(any(feature = "host", feature = "subnet-catalog-host"))]
18mod agent;
19#[cfg(any(feature = "host", feature = "subnet-catalog-host"))]
20mod cache_file;
21#[cfg(feature = "host")]
22mod certification;
23pub mod duration;
24#[cfg(any(feature = "host", feature = "subnet-catalog-host"))]
25mod freshness;
26mod hex;
27#[cfg(any(feature = "host", feature = "subnet-catalog-host"))]
28mod http_endpoint;
29pub mod ic;
30#[cfg(any(feature = "host", feature = "subnet-catalog-host"))]
31mod ic_registry;
32pub mod icrc;
33#[cfg(any(feature = "host", feature = "subnet-catalog-host"))]
34mod network;
35pub mod nns;
36#[cfg(feature = "host")]
37mod progress;
38#[cfg(any(feature = "host", feature = "subnet-catalog-host"))]
39mod runtime;
40#[cfg(feature = "host")]
41pub(crate) mod snapshot_cache;
42pub mod sns;
43pub mod subnet_catalog;
44pub mod system;
45
46#[cfg(any(feature = "host", feature = "subnet-catalog-host"))]
47pub use cache_file::{CacheFileError, HostCacheError};
48mod table;
49#[cfg(feature = "host")]
50mod text_search;
51mod text_value;
52mod token_amount;
53mod token_metadata_text;
54
55#[cfg(all(test, any(feature = "host", feature = "subnet-catalog-host")))]
56mod test_support;
57
58#[cfg(test)]
59mod tests;
60
61#[cfg(feature = "host")]
62pub use progress::{QueryProgress, QueryProgressEvent, QueryProgressState};