Skip to content

Commit b605e35

Browse files
composefs: fix feature flags of once_cell
We use once_cell because rust-lang/rust#109737 once_cell has a large number of potential locking backends for `no_std` environments. We were randomly using `critical-section`, which itself requires specifying a backend, which we weren't doing. So far, we've been protected by this by the fact that we also have once_cell as a transient dependency (via tempfile). Fix this to just use `std` so that we get locking via the stdlib. Signed-off-by: Allison Karlitskaya <[email protected]>
1 parent 7a0ad6c commit b605e35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/composefs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test = []
2020
anyhow = { version = "1.0.87", default-features = false }
2121
hex = { version = "0.4.0", default-features = false, features = ["std"] }
2222
log = { version = "0.4.8", default-features = false }
23-
once_cell = { version = "1.21.3", default-features = false, features = ["critical-section"] }
23+
once_cell = { version = "1.21.3", default-features = false, features = ["std"] }
2424
rustix = { version = "1.0.0", default-features = false, features = ["fs", "mount", "process", "std"] }
2525
sha2 = { version = "0.10.1", default-features = false, features = ["std"] }
2626
thiserror = { version = "2.0.0", default-features = false }

0 commit comments

Comments
 (0)