iota_common/
lib.rs

1// Copyright (c) Mysten Labs, Inc.
2// Modifications Copyright (c) 2024 IOTA Stiftung
3// SPDX-License-Identifier: Apache-2.0
4
5pub mod backoff;
6pub mod logging;
7pub mod random;
8pub mod random_util;
9pub mod stream_ext;
10pub mod sync;
11pub mod try_iterator_ext;
12
13pub use iota_types::scoring_metrics;
14pub use random_util::tempdir;
15
16#[inline(always)]
17pub fn in_test_configuration() -> bool {
18    cfg!(msim) || cfg!(debug_assertions)
19}