concurrency_toolkit 0.2.8

Easy switching between std::sync, tokio::sync and loom::sync
Documentation
#[cfg(not( any(feature = "default", feature = "async_tokio", feature = "permutation_testing") ))]
compile_error!("At least one feature flag needs to be enabled");

#[cfg(all( feature = "default", any(feature = "async_tokio", feature = "permutation_testing") ))]
compile_error!("At most one feature flag can to be enabled");

#[cfg(all(feature = "async_tokio", feature = "permutation_testing"))]
compile_error!("feature async cannot be used with feature permutation_testing");

extern crate proc_macro_test;

/// `maybe_async::maybe_async` automatically removes `async`-related keywords
/// if feature "async_tokio" is not enabled.
pub extern crate maybe_async;
/// `maybe_async_attr` automatically removes `async`-related keywords
/// if feature "async_tokio" is not enabled.
pub use maybe_async::maybe_async as maybe_async_attr;

pub use proc_macro_test::test;

#[cfg(feature = "async_tokio")]
pub extern crate tokio;

#[cfg(feature = "permutation_testing")]
pub extern crate loom;

pub mod sync;
pub mod atomic;
pub mod thread;