Skip to content

Commit

Permalink
Enable portable-atomic's require-cas feature
Browse files Browse the repository at this point in the history
This provides a better error message if the end user forgets to use the
cfg or feature.
  • Loading branch information
taiki-e committed Jun 4, 2023
1 parent 2be8c5e commit c50b621
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ extra-platforms = ["portable-atomic"]

[dependencies]
serde = { version = "1.0.60", optional = true, default-features = false, features = ["alloc"] }
portable-atomic = { version = "1", optional = true, default-features = false }
# Enable require-cas feature to provide a better error message if the end user forgets to use the cfg or feature.
portable-atomic = { version = "1.3", optional = true, default-features = false, features = ["require-cas"] }

[dev-dependencies]
serde_test = "1.0"
Expand Down

0 comments on commit c50b621

Please sign in to comment.