-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
m: Remove the dependency on async-lock
This PR removes the need for async-lock as a dependency by making the Executor initializable in a const context. This relies on the const initialization of CondVars and Mutexes, so the MSRV was bumped to 1.63.
- Loading branch information
Showing
2 changed files
with
55 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ name = "blocking" | |
version = "1.6.0" | ||
authors = ["Stjepan Glavina <[email protected]>"] | ||
edition = "2021" | ||
rust-version = "1.60" | ||
rust-version = "1.63" | ||
description = "A thread pool for isolating blocking I/O in async programs" | ||
license = "Apache-2.0 OR MIT" | ||
repository = "https://github.com/smol-rs/blocking" | ||
|
@@ -22,8 +22,5 @@ futures-lite = { version = "2.0.0", default-features = false } | |
piper = "0.2.0" | ||
tracing = { version = "0.1.37", default-features = false, optional = true } | ||
|
||
[target.'cfg(not(target_family = "wasm"))'.dependencies] | ||
async-lock = "3.0.0" | ||
|
||
[dev-dependencies] | ||
futures-lite = "2.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters