Skip to main content

reth_concurrency/
lib.rs

1//! Concurrency primitives selected for native execution or opt-in fuzz simulation.
2//!
3//! The `fuzz` feature alone keeps native primitives. Add `--cfg dst` to `RUSTFLAGS`
4//! with `fuzz` enabled to select simulation; callers must enter `sync::Runtime::run`.
5
6#![cfg_attr(not(feature = "std"), no_std)]
7#![cfg_attr(not(test), warn(unused_crate_dependencies))]
8
9#[cfg(all(feature = "fuzz", dst))]
10use parking_lot as _;
11#[cfg(all(feature = "fuzz", dst))]
12use rayon as _;
13#[cfg(all(feature = "fuzz", dst))]
14use reth_primitives_traits as _;
15
16#[cfg(all(feature = "fuzz", not(dst)))]
17use {either as _, shuttle as _, shuttle_parking_lot as _, shuttle_sync as _};
18
19pub mod sync;
20
21/// Marks a test that runs in the selected runtime. Async tests require the `async-test`
22/// feature.
23#[cfg(feature = "std")]
24pub use reth_concurrency_macros::test;