From d1bfbbac62ba08174a74400822e895294850d395 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Mon, 22 Apr 2024 22:15:43 +0200 Subject: [PATCH] Enable missing tokio features in various crates --- crates/lune-std-serde/Cargo.toml | 5 ++++- crates/lune-std-stdio/Cargo.toml | 5 ++++- crates/lune-std/Cargo.toml | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/crates/lune-std-serde/Cargo.toml b/crates/lune-std-serde/Cargo.toml index 35f2ba3..d35d401 100644 --- a/crates/lune-std-serde/Cargo.toml +++ b/crates/lune-std-serde/Cargo.toml @@ -27,6 +27,9 @@ serde_json = { version = "1.0", features = ["preserve_order"] } serde_yaml = "0.9" toml = { version = "0.8", features = ["preserve_order"] } -tokio = { version = "1", default-features = false } +tokio = { version = "1", default-features = false, features = [ + "rt", + "io-util", +] } lune-utils = { version = "0.1.0", path = "../lune-utils" } diff --git a/crates/lune-std-stdio/Cargo.toml b/crates/lune-std-stdio/Cargo.toml index a160fc8..3876c90 100644 --- a/crates/lune-std-stdio/Cargo.toml +++ b/crates/lune-std-stdio/Cargo.toml @@ -15,6 +15,9 @@ dialoguer = "0.11" mlua = { version = "0.9.7", features = ["luau"] } mlua-luau-scheduler = "0.0.1" -tokio = { version = "1", default-features = false } +tokio = { version = "1", default-features = false, features = [ + "io-std", + "io-util", +] } lune-utils = { version = "0.1.0", path = "../lune-utils" } diff --git a/crates/lune-std/Cargo.toml b/crates/lune-std/Cargo.toml index d85234a..6e69db2 100644 --- a/crates/lune-std/Cargo.toml +++ b/crates/lune-std/Cargo.toml @@ -39,7 +39,7 @@ task = ["dep:lune-std-task"] mlua = { version = "0.9.7", features = ["luau"] } mlua-luau-scheduler = "0.0.1" -tokio = { version = "1", default-features = false, features = ["fs"] } +tokio = { version = "1", default-features = false, features = ["fs", "sync"] } lune-utils = { version = "0.1.0", path = "../lune-utils" }