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