foundation_core 0.0.3

Central crate for all foundation crates for the ewe-platform project
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Sub module to provide compatibility layer for specific types to use in specific platforms.

#[cfg(any(target_arch = "wasm32", target_arch = "wasm64"))]
pub use foundation_nostd::primitives::Mutex;

#[cfg(all(not(target_arch = "wasm32"), not(target_arch = "wasm64")))]
pub use std::sync::Mutex;

#[cfg(any(target_arch = "wasm32", target_arch = "wasm64"))]
pub use foundation_nostd::primitives::RwLock;

#[cfg(all(not(target_arch = "wasm32"), not(target_arch = "wasm64")))]
pub use std::sync::RwLock;