Skip to content

Commit

Permalink
Enable portable-atomic's require-cas feature
Browse files Browse the repository at this point in the history
Provide a better error message if the end user forgets to use cfg
  • Loading branch information
taiki-e committed Apr 25, 2023
1 parent b26ac66 commit 990fa92
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 @@ -14,7 +14,8 @@ rust-version = "1.38"

[dependencies]
lock_api_crate = { package = "lock_api", version = "0.4", optional = true }
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 cfg.
portable-atomic = { version = "1", optional = true, default-features = false, features = ["require-cas"], git = "https://github.com/taiki-e/portable-atomic.git", branch = "require-cas" }

[features]
default = ["lock_api", "mutex", "spin_mutex", "rwlock", "once", "lazy", "barrier"]
Expand Down

0 comments on commit 990fa92

Please sign in to comment.