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;
30mod human_quantity;
31pub mod ic;
32#[cfg(feature = "subnet-catalog-host")]
33mod ic_registry;
34pub mod icrc;
35#[cfg(feature = "subnet-catalog-host")]
36mod network;
37pub mod nns;
38#[cfg(feature = "host")]
39mod progress;
40pub mod report;
41#[cfg(feature = "host")]
42mod report_sort;
43#[cfg(feature = "subnet-catalog-host")]
44mod runtime;
45#[cfg(feature = "host")]
46pub(crate) mod snapshot_cache;
47pub mod sns;
48pub mod subnet_catalog;
49pub mod system;
50
51#[cfg(feature = "subnet-catalog-host")]
52pub use cache_file::{CacheFileError, HostCacheError};
53mod table;
54#[cfg(feature = "host")]
55mod text_search;
56mod text_value;
57mod token_amount;
58mod token_metadata_text;
59
60#[cfg(all(test, feature = "subnet-catalog-host"))]
61mod test_support;
62
63#[cfg(test)]
64mod tests;
65
66#[cfg(feature = "host")]
67pub use progress::{QueryProgress, QueryProgressEvent, QueryProgressState};