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