Make all modules feature-gated to improve compile time

This commit is contained in:
2025-06-26 16:54:58 +10:00
parent 2078dd0d8e
commit 31b5ff5ab9
6 changed files with 50 additions and 87 deletions

View File

@@ -7,12 +7,15 @@ authors.workspace = true
homepage.workspace = true
repository.workspace = true
[features]
task = []
fs = ["tokio/fs"]
net = ["tokio/net"]
[dependencies]
camino = "1.1.10"
derive_more = { version = "2.0.1", features = ["full"] }
luaffi = { path = "../luaffi" }
luajit = { path = "../luajit" }
sysexits = "0.9.0"
thiserror = "2.0.12"
tokio = { version = "1.45.1", features = ["rt", "time", "fs", "net", "process", "signal", "tracing"] }
tracing = "0.1.41"
tokio = { version = "1.45.1", features = ["rt"] }

View File

@@ -1,5 +1,10 @@
pub mod chan;
pub mod fs;
pub mod net;
pub mod runtime;
#[cfg(feature = "task")]
pub mod chan;
#[cfg(feature = "fs")]
pub mod fs;
#[cfg(feature = "net")]
pub mod net;
#[cfg(feature = "task")]
pub mod task;