diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d49890..9eb202d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.0.14] + +### Fixed + +- Windows builds without `std` no longer fail to compile. `concurrent` named + `ps-reclaim/libc` in a feature list, and a feature list is not per target, so + Windows was handed the unix platform crate and never enabled its own. The + choice moves into `cfg(unix)` and `cfg(windows)` dependency sections. Builds + with `std` were unaffected, which is why this went unnoticed: `ps-reclaim` + only reaches for `windows-sys` on its `no_std` path. + ## [0.0.12] ### Changed diff --git a/Cargo.toml b/Cargo.toml index 5e72780..d153f45 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "WorkTablesIndex" -version = "0.0.13" +version = "0.0.14" edition = "2021" documentation = "https://docs.rs/WorkTablesIndex/" repository = "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/pathscale/WorkTablesIndex" @@ -55,7 +55,6 @@ parking_lot = { package = "parking_lot_lite_hack", version = "0.12.6", default-f "send_guard", "arc_lock", ], optional = true } -ps-reclaim = { version = "0.1.4", optional = true, default-features = false } fastrand = { version = "2", optional = true, default-features = false } superslice = { version = "1", optional = true } wt-slice = { version = "0.1", optional = true } @@ -70,7 +69,6 @@ serde = ["dep:serde", "ftree/serde", "std"] concurrent = [ "dep:parking_lot", "dep:ps-reclaim", - "ps-reclaim/libc", "ps-reclaim/spin", ] cdc = ["concurrent"] @@ -143,3 +141,15 @@ while_let_loop = "allow" [[bench]] name = "locks" harness = false + +[target."cfg(unix)".dependencies.ps-reclaim] +version = "^0.1, >=0.1.4" +features = ["libc"] +optional = true +default-features = false + +[target."cfg(windows)".dependencies.ps-reclaim] +version = "^0.1, >=0.1.4" +features = ["windows-sys"] +optional = true +default-features = false