Add tokio/rt feature only if task feature is enabled

This commit is contained in:
lumi 2025-06-26 21:10:07 +10:00
parent 8a74ade6a6
commit 09d7e51345
Signed by: luaneko
GPG Key ID: 406809B8763FF07A

View File

@ -8,7 +8,7 @@ homepage.workspace = true
repository.workspace = true
[features]
task = ["tokio/time"]
task = ["tokio/rt", "tokio/time"]
fs = ["tokio/fs"]
net = ["tokio/net"]
@ -18,4 +18,4 @@ luaffi = { path = "../luaffi" }
luajit = { path = "../luajit" }
sysexits = "0.9.0"
thiserror = "2.0.12"
tokio = { version = "1.45.1", features = ["rt"] }
tokio = { version = "1.45.1" }