iota_sdk/
lib.rs

1// Copyright 2023 IOTA Stiftung
2// SPDX-License-Identifier: Apache-2.0
3
4#![cfg_attr(not(feature = "std"), no_std)]
5#![cfg_attr(docsrs, feature(doc_cfg))]
6// TODO missing_docs
7#![deny(clippy::nursery, rust_2018_idioms, warnings, unreachable_pub)]
8#![allow(
9    clippy::redundant_pub_crate,
10    clippy::missing_const_for_fn,
11    clippy::significant_drop_in_scrutinee,
12    clippy::significant_drop_tightening
13)]
14// Allowed in Cargo.toml for examples
15#![deny(clippy::expect_fun_call, clippy::single_element_loop)]
16
17extern crate alloc;
18
19#[cfg(feature = "client")]
20#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
21pub mod client;
22#[cfg(feature = "pow")]
23#[cfg_attr(docsrs, doc(cfg(feature = "pow")))]
24pub mod pow;
25pub mod types;
26#[cfg(feature = "wallet")]
27#[cfg_attr(docsrs, doc(cfg(feature = "wallet")))]
28pub mod wallet;
29// Utilities used in multiple submodules
30pub mod utils;
31
32pub use crypto;
33pub use packable;
34pub use primitive_types::U256;
35#[cfg(feature = "url")]
36pub use url::Url;
37
38#[cfg(feature = "wallet")]
39pub type Wallet = self::wallet::Wallet<client::secret::SecretManager>;