diff options
Diffstat (limited to 'lampada/Cargo.toml')
-rw-r--r-- | lampada/Cargo.toml | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/lampada/Cargo.toml b/lampada/Cargo.toml index c68f9c6..1937162 100644 --- a/lampada/Cargo.toml +++ b/lampada/Cargo.toml @@ -3,12 +3,26 @@ name = "lampada" version = "0.1.0" edition = "2021" +[features] +serde = ["dep:serde"] + [dependencies] -futures = "0.3.31" -luz = { version = "0.1.0", path = "../luz" } -peanuts = { version = "0.1.0", git = "https://bunny.garden/peanuts" } -jid = { version = "0.1.0", path = "../jid", features = ["sqlx"] } -stanza = { version = "0.1.0", path = "../stanza", features = ["xep_0203"] } -tokio = "1.42.0" -tracing = "0.1.41" -thiserror = "2.0.11" +futures = { workspace = true } +luz = { workspace = true } +peanuts = { workspace = true } +jid = { workspace = true } +stanza = { workspace = true, features = ["xep_0203"] } +tracing = { workspace = true } +thiserror = { workspace = true } +serde = { workspace = true, features = ["derive"], optional = true } + +[target.'cfg(not(target_arch = "wasm32"))'.dependencies] +tokio = { workspace = true, features = ["macros", "sync"] } + +[target.'cfg(target_arch = "wasm32")'.dependencies] +tokio_with_wasm = { workspace = true, features = [ + "macros", + "rt", + "time", + "sync", +] } |