-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
165: Add an atomic-polyfill optional dependancy r=matklad a=ogoffart To make it compile on platform that have limited atomics Fixes #155 Note that this re-implement the Debug version of the OnceBox because atomic-polyfill::AtomicPtr don't implement Debug (embassy-rs/atomic-polyfill#11) Co-authored-by: Olivier Goffart <[email protected]>
- Loading branch information
Showing
3 changed files
with
27 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "once_cell" | ||
version = "1.8.0" | ||
version = "1.9.0" | ||
authors = ["Aleksey Kladov <[email protected]>"] | ||
license = "MIT OR Apache-2.0" | ||
edition = "2018" | ||
|
@@ -24,6 +24,13 @@ members = ["xtask"] | |
# for up to 16 bytes smaller, depending on the size of the T. | ||
parking_lot = { version = "0.11", optional = true, default_features = false } | ||
|
||
# To be used in order to enable the race feature on targets | ||
# that do not have atomics | ||
# *Warning:* This can be unsound. Please read the README of | ||
# [atomic-polyfill](https://github.com/embassy-rs/atomic-polyfill) | ||
# and make sure you understand all the implications | ||
atomic-polyfill = { version = "0.1", optional = true } | ||
|
||
[dev-dependencies] | ||
lazy_static = "1.0.0" | ||
crossbeam-utils = "0.7.2" | ||
|
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