wasm builds

This commit is contained in:
Sebastian Moser
2024-08-27 11:50:18 +02:00
parent 39cf7f5ee3
commit 31e071078a
8 changed files with 36 additions and 13 deletions

View File

@@ -17,9 +17,9 @@ path = "src/platform/os/main.rs"
required-features = [ "os-target" ]
[features]
os-target = [ "clap", "home", "daemonize", "nix", "toml", "serde_json", "sysinfo", "ciborium/default", "tracing-subscriber", "async", "tracing-subscriber/env-filter"]
async = ["tokio/net", "tokio", "tokio/rt-multi-thread", "tokio/io-util"]
os-target = [ "clap", "home", "daemonize", "nix", "toml", "sysinfo", "ciborium/default", "tracing-subscriber", "async", "tracing-subscriber/env-filter"]
wasm-target = [ "wasm-bindgen", "console_error_panic_hook", "wasm-bindgen-cli" ]
async = ["tokio/net", "tokio", "tokio/rt-multi-thread", "tokio/io-util"]
[dependencies]
@@ -30,6 +30,8 @@ ciborium = { version = "0.2.2", default-features = false }
serde = "1.0.203"
interner = { git = "https://github.com/c2vi/interner" }
tracing = "0.1.40"
serde_json = { version = "1.0.117", optional = false }
crossbeam = "0.8.4"
# wasm dependencies
wasm-bindgen = { version = "0.2.84", optional = true }
@@ -42,7 +44,6 @@ home = { version = "0.5.9", optional = true }
daemonize = { version = "0.5.0", optional = true }
nix = { version = "0.27.1", features = ["signal"], optional = true }
toml = { version = "0.8.13", features = ["parse"], optional = true }
serde_json = { version = "1.0.117", optional = true }
sysinfo = { version = "0.30.12", optional = true }
tracing-subscriber = { version = "0.3.18", optional = true }
tokio = { version = "1.21.0", features = ["sync"], optional = true }
@@ -53,7 +54,6 @@ tokio = { version = "1.21.0", features = ["sync"], optional = true }
axum = { version = "0.6.1", features = ["ws", "headers"], optional = true }
axum-extra = { version = "0.4.2", features = ["spa"], optional = true }
axum-macros = { version = "0.3.0", optional = true }
crossbeam = "0.8.4"
dyn-clone = "1.0.17"
tokio-core = "0.1.18"
tokio-io = "0.1.13"