mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-07 00:00:13 +02:00
Add feature to support platforms without atomic CAS (#467)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user