Skip to content

Commit

Permalink
fix: Run our own async executor on Unix
Browse files Browse the repository at this point in the history
  • Loading branch information
DataTriny committed Jan 8, 2024
1 parent c034802 commit 5bec14c
Show file tree
Hide file tree
Showing 9 changed files with 529 additions and 408 deletions.
3 changes: 2 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions platforms/unix/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ edition = "2021"

[features]
default = ["async-io"]
async-io = ["dep:async-channel", "dep:async-lock", "dep:futures-util", "atspi/async-std", "zbus/async-io"]
async-io = ["dep:async-channel", "dep:async-executor", "dep:async-task", "dep:futures-util", "atspi/async-std", "zbus/async-io"]
tokio = ["dep:tokio", "dep:tokio-stream", "atspi/tokio", "zbus/tokio"]

[dependencies]
Expand All @@ -27,7 +27,8 @@ zbus = { version = "3.14", default-features = false }

# async-io support
async-channel = { version = "2.1.1", optional = true }
async-lock = { version = "2.7.0", optional = true }
async-executor = { version = "1.5.0", optional = true }
async-task = { version = "4.3.0", optional = true }
futures-util = { version = "0.3.27", optional = true }

# tokio support
Expand Down
Loading

0 comments on commit 5bec14c

Please sign in to comment.