Add feature to support platforms without atomic CAS (#467)

This commit is contained in:
Taiki Endo
2025-01-31 18:52:54 +09:00
committed by GitHub
parent 71824b095c
commit 16fd473d5c
7 changed files with 53 additions and 6 deletions
+5
View File
@@ -24,6 +24,11 @@ std = []
[dependencies]
serde = { version = "1.0.60", optional = true, default-features = false, features = ["alloc"] }
# Use portable-atomic crate to support platforms without atomic CAS.
# See "no_std support" section in readme for more information.
#
# Enable require-cas feature to provide a better error message if the end user forgets to use the cfg or feature.
extra-platforms = { package = "portable-atomic", version = "1.3", optional = true, default-features = false, features = ["require-cas"] }
[dev-dependencies]
serde_test = "1.0"