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