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(feature = "host")]
39mod report_sort;
40#[cfg(any(feature = "host", feature = "subnet-catalog-host"))]
41mod runtime;
42#[cfg(feature = "host")]
43pub(crate) mod snapshot_cache;
44pub mod sns;
45pub mod subnet_catalog;
46pub mod system;
47
48#[cfg(any(feature = "host", feature = "subnet-catalog-host"))]
49pub use cache_file::{CacheFileError, HostCacheError};
50mod table;
51#[cfg(feature = "host")]
52mod text_search;
53mod text_value;
54mod token_amount;
55mod token_metadata_text;
56
57#[cfg(all(test, any(feature = "host", feature = "subnet-catalog-host")))]
58mod test_support;
59
60#[cfg(test)]
61mod tests;
62
63#[cfg(feature = "host")]
64pub use progress::{QueryProgress, QueryProgressEvent, QueryProgressState};