Skip to main content

hopr_types/
lib.rs

1//! Contains all HOPR-specific or related Rust types.
2#![doc = include_str!("../README.md")]
3
4/// Basic public types used in the HOPR protocol.
5#[cfg(feature = "primitive")]
6pub mod primitive;
7
8/// Cryptographically secure random number generation.
9#[cfg(feature = "random")]
10pub mod crypto_random;
11
12/// Cryptography-related types.
13#[cfg(feature = "crypto")]
14pub mod crypto;
15
16/// Types internally used by the HOPR protocol.
17#[cfg(feature = "internal")]
18pub mod internal;
19
20/// Blockchain-related types.
21#[cfg(feature = "chain")]
22pub mod chain;
23
24/// Key pair management and Ethereum keystore support.
25#[cfg(feature = "keypair")]
26pub mod keypair;
27
28/// OpenTelemetry-backed metrics collection.
29#[cfg(feature = "telemetry")]
30pub mod telemetry;