-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add no_std once primitive for stdlib deserialization (#1463)
- Loading branch information
Showing
7 changed files
with
522 additions
and
315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
pub mod racy_lock; | ||
pub mod rw_lock; | ||
|
||
#[cfg(feature = "std")] | ||
pub use std::sync::LazyLock; | ||
|
||
#[cfg(feature = "std")] | ||
pub use parking_lot::{RwLock, RwLockReadGuard, RwLockWriteGuard}; | ||
#[cfg(not(feature = "std"))] | ||
pub use racy_lock::RacyLock as LazyLock; | ||
#[cfg(not(feature = "std"))] | ||
pub use rw_lock::{RwLock, RwLockReadGuard, RwLockWriteGuard}; |
Oops, something went wrong.