deribit_http/sync_compat.rs
1//! Cross-platform Mutex re-export for native and WASM targets
2//!
3//! This module provides a unified `Mutex` type that uses `tokio::sync::Mutex`
4//! on native targets and `async_lock::Mutex` on WASM targets.
5
6#[cfg(feature = "native")]
7pub use tokio::sync::Mutex;
8
9#[cfg(not(feature = "native"))]
10pub use async_lock::Mutex;