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