@@ -14,7 +14,7 @@ rust-version = "1.38"
14
14
15
15
[dependencies ]
16
16
lock_api_crate = { package = " lock_api" , version = " 0.4" , optional = true }
17
- portable-atomic = { version = " 0.3 " , optional = true , default-features = false }
17
+ portable-atomic = { version = " 1 " , optional = true , default-features = false }
18
18
19
19
[features ]
20
20
default = [" lock_api" , " mutex" , " spin_mutex" , " rwlock" , " once" , " lazy" , " barrier" ]
@@ -52,9 +52,14 @@ lock_api = ["lock_api_crate"]
52
52
# Enables std-only features such as yield-relaxing.
53
53
std = []
54
54
55
- # Use the portable_atomic crate to support platforms without native atomic operations
56
- # cfg 'portable_atomic_unsafe_assume_single_core' must also be set by the final binary crate.
57
- # This cfg is unsafe and enabling it for multicore systems is unsound.
55
+ # Use the portable_atomic crate to support platforms without native atomic operations.
56
+ # The `portable_atomic_unsafe_assume_single_core` cfg or `critical-section` feature
57
+ # of `portable-atomic` crate must also be set by the final binary crate.
58
+ # When using the cfg, note that it is unsafe and enabling it for multicore systems is unsound.
59
+ # When using the `critical-section` feature, you need to implement the critical-section
60
+ # implementation that sound for your system by implementing an unsafe trait.
61
+ # See the documentation for the `portable-atomic` crate for more information:
62
+ # https://docs.rs/portable-atomic/latest/portable_atomic/#optional-cfg
58
63
portable_atomic = [" portable-atomic" ]
59
64
60
65
[package .metadata .docs .rs ]
0 commit comments