some are needed for os-target

This commit is contained in:
Sebastian Moser
2024-09-02 19:18:29 +02:00
parent 9d34bdf9ce
commit 6f30696487
2 changed files with 5 additions and 3 deletions

2
Cargo.lock generated
View File

@@ -1089,6 +1089,7 @@ dependencies = [
"axum-extra", "axum-extra",
"axum-macros", "axum-macros",
"ciborium", "ciborium",
"ciborium-io",
"clap", "clap",
"colored", "colored",
"console_error_panic_hook", "console_error_panic_hook",
@@ -1105,6 +1106,7 @@ dependencies = [
"tokio", "tokio",
"toml", "toml",
"tracing", "tracing",
"tracing-core",
"tracing-subscriber", "tracing-subscriber",
"uuid", "uuid",
"wasm-bindgen", "wasm-bindgen",

View File

@@ -17,7 +17,7 @@ path = "src/platform/os/main.rs"
required-features = [ "os-target" ] required-features = [ "os-target" ]
[features] [features]
os-target = [ "clap", "home", "nix", "sysinfo", "ciborium/default", "tracing-subscriber", "async", "tracing-subscriber/env-filter", "libloading" ] os-target = [ "clap", "home", "nix", "sysinfo", "ciborium/default", "tracing-subscriber", "async", "tracing-subscriber/env-filter", "libloading", "ciborium-io", "tracing-core" ]
wasm-target = [ "wasm-bindgen", "console_error_panic_hook", "wasm-bindgen-cli" ] wasm-target = [ "wasm-bindgen", "console_error_panic_hook", "wasm-bindgen-cli" ]
async = ["tokio/net", "tokio", "tokio/rt-multi-thread", "tokio/io-util"] async = ["tokio/net", "tokio", "tokio/rt-multi-thread", "tokio/io-util"]
@@ -52,6 +52,8 @@ sysinfo = { version = "0.30.12", optional = true }
tracing-subscriber = { version = "0.3.18", optional = true } tracing-subscriber = { version = "0.3.18", optional = true }
tokio = { version = "1.21.0", features = ["sync"], optional = true } tokio = { version = "1.21.0", features = ["sync"], optional = true }
libloading = { version = "0.8.5", optional = true } libloading = { version = "0.8.5", optional = true }
ciborium-io = { version = "0.2.2", optional = true }
tracing-core = { version = "0.1.32", optional = true }
# bare dependencies # bare dependencies
@@ -61,8 +63,6 @@ axum-extra = { version = "0.4.2", features = ["spa"], optional = true }
axum-macros = { version = "0.3.0", optional = true } axum-macros = { version = "0.3.0", optional = true }
#tokio-core = "0.1.18" #tokio-core = "0.1.18"
#tokio-io = "0.1.13" #tokio-io = "0.1.13"
#ciborium-io = "0.2.2"
#tracing-core = "0.1.32"
#tokio-stream = { version = "0.1.9", optional = true } #tokio-stream = { version = "0.1.9", optional = true }
#derive_more = "0.99.17" #derive_more = "0.99.17"