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