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