Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ edition = "2021"
lock_api_crate = { package = "lock_api", version = "0.4", optional = true }
# 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"] }
# Allows this crate to be used as a dependency of the Rust standard library
core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core" }

[features]
default = ["lock_api", "mutex", "spin_mutex", "rwlock", "once", "lazylock", "barrier"]
Expand Down Expand Up @@ -68,6 +70,8 @@ portable-atomic = ["dep:portable-atomic"]
# Deprecated alias:
portable_atomic = ["portable-atomic"]

rustc-dep-of-std = ["core"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
Expand Down
Loading