Skip to main content

nimiq_utils/
lib.rs

1#[cfg(feature = "crc")]
2pub mod crc;
3#[cfg(feature = "credentials")]
4mod credentials;
5#[cfg(feature = "key-store")]
6pub mod file_store;
7pub mod interner;
8#[cfg(feature = "key-rng")]
9pub mod key_rng;
10pub mod math;
11#[cfg(feature = "merkle")]
12pub mod merkle;
13#[cfg(feature = "otp")]
14pub mod otp;
15#[cfg(feature = "spawn")]
16#[cfg_attr(not(target_family = "wasm"), path = "spawn/tokio.rs")]
17#[cfg_attr(target_family = "wasm", path = "spawn/wasm.rs")]
18mod spawn;
19#[cfg(feature = "tagged-signing")]
20pub mod tagged_signing;
21#[cfg(feature = "time")]
22pub mod time;
23
24#[cfg(feature = "futures")]
25pub mod stream;
26
27mod sensitive;
28mod waker;
29
30#[cfg(feature = "credentials")]
31pub use self::credentials::Credentials;
32#[cfg(feature = "spawn")]
33pub use self::spawn::{spawn, spawn_local};
34pub use self::{sensitive::Sensitive, waker::WakerExt};
35
36/// The version of the Cargo workspace package, with a `+dirty` build-metadata
37/// suffix appended when built from a Git work tree that has uncommitted changes
38/// (see `build.rs`).
39pub const CARGO_VERSION: &str = env!("NIMIQ_VERSION");