iota_types/lib.rs
1// Copyright 2020-2022 IOTA Stiftung
2// SPDX-License-Identifier: Apache-2.0
3
4//! Common types required by nodes and clients APIs like blocks, responses and DTOs.
5
6#![cfg_attr(not(feature = "std"), no_std)]
7#![cfg_attr(docsrs, feature(doc_cfg))]
8#![deny(clippy::nursery, missing_docs, rust_2018_idioms, warnings)]
9#![allow(
10 clippy::redundant_pub_crate,
11 clippy::module_name_repetitions,
12 clippy::missing_const_for_fn,
13 clippy::significant_drop_in_scrutinee
14)]
15
16extern crate alloc;
17#[cfg(feature = "std")]
18extern crate std;
19
20#[cfg(feature = "api")]
21pub mod api;
22#[cfg(feature = "block")]
23pub mod block;