Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #216 from dvc94ch/slim
Browse files Browse the repository at this point in the history
  • Loading branch information
little-dude authored Dec 29, 2021
2 parents 8d3db04 + 221ea3d commit 200d237
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rtnetlink/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ description = "manipulate linux networking resources via netlink"
test_as_root = []
default = ["tokio_socket"]
tokio_socket = ["netlink-proto/tokio_socket", "tokio"]
smol_socket = ["netlink-proto/smol_socket", "async-std"]
smol_socket = ["netlink-proto/smol_socket", "async-global-executor"]

[dependencies]
futures = "0.3.11"
Expand All @@ -25,7 +25,7 @@ netlink-packet-route = "0.9"
netlink-proto = { default-features = false, version = "0.8" }
nix = "0.22.0"
tokio = { version = "1.0.1", features = ["rt"], optional = true}
async-std = { version = "1.9.0", features = ["unstable"], optional = true}
async-global-executor = { version = "2.0.2", optional = true }

[dev-dependencies]
env_logger = "0.8.2"
Expand Down
2 changes: 1 addition & 1 deletion rtnetlink/src/ns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ where
F: FnOnce() -> R + Send + 'static,
R: Send + 'static,
{
async_std::task::spawn_blocking(fut).await
async_global_executor::spawn_blocking(fut).await
}

// only tokio enabled, so use tokio
Expand Down

0 comments on commit 200d237

Please sign in to comment.