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