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