diff options
author | 2025-05-30 20:57:41 +0100 | |
---|---|---|
committer | 2025-05-30 20:57:41 +0100 | |
commit | 76ea017eb8d9feda691d21ec501e31e02a8fa224 (patch) | |
tree | 75e345cef4e16a1dc28c127a6e0bba1e7321d497 | |
parent | b67e2d1897e0c9d1177b78d16019da4889b33db5 (diff) | |
download | luz-76ea017eb8d9feda691d21ec501e31e02a8fa224.tar.gz luz-76ea017eb8d9feda691d21ec501e31e02a8fa224.tar.bz2 luz-76ea017eb8d9feda691d21ec501e31e02a8fa224.zip |
chore(luz): move dependencies to workspace
-rw-r--r-- | Cargo.toml | 18 | ||||
-rw-r--r-- | luz/Cargo.toml | 47 |
2 files changed, 38 insertions, 27 deletions
@@ -6,10 +6,28 @@ members = ["luz", "lampada", "stanza", "jid", "filamento"] [workspace.dependencies] tokio = { version = "1.42.0" } jid = { path = "jid" } +stanza = { path = "stanza" } peanuts = { version = "0.1.0", git = "https://bunny.garden/peanuts" } thiserror = "2.0.11" chrono = { version = "0.4.40" } serde = { version = "1.0.219" } +tracing = { version = "0.1.40" } +uuid = { version = "1.13.1" } + +# WASM dependencies + +web-sys = "0.3" +js-sys = "0.3" +wasm-bindgen = "0.2" +wasm-bindgen-futures = "0.4.50" + +# dev-dependencies + +tracing-wasm = "0.2.1" +wasm-bindgen-test = "0.3.0" +test-log = "0.2" +env_logger = "*" +tracing-subscriber = "0.3" [patch.crates-io] tokio_with_wasm = { path = "../tokio-with-wasm/tokio_with_wasm" } diff --git a/luz/Cargo.toml b/luz/Cargo.toml index b130a68..e9cccd9 100644 --- a/luz/Cargo.toml +++ b/luz/Cargo.toml @@ -10,37 +10,29 @@ crate-type = ["cdylib", "rlib"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -async-recursion = "1.0.4" -uuid = { version = "1.13.1", features = ["v4"] } -# TODO: remove unneeded features and dependencies rsasl = { version = "2.0.1", default-features = false, features = [ "provider_base64", "plain", "config_builder", "scram-sha-1", ] } -tracing = "0.1.40" -try_map = "0.3.1" -stanza = { version = "0.1.0", path = "../stanza", features = ["xep_0156"] } +uuid = { workspace = true, features = ["v4"] } +tracing = { workspace = true } +stanza = { workspace = true, features = ["xep_0156"] } peanuts = { workspace = true } -# peanuts = { version = "0.1.0", path = "../../peanuts" } jid = { workspace = true } -futures = "0.3.30" -take_mut = "0.2.2" -pin-project-lite = "0.2.15" -pin-project = "1.1.7" -thiserror = "2.0.11" +thiserror = { workspace = true } [target.'cfg(target_arch = "wasm32")'.dependencies] -tokio = { workspace = true, features = ["macros", "rt", "time"] } -tokio_with_wasm = { version = "0.8.2", features = ["macros", "sync"] } -uuid = { version = "1.13.1", features = ["js", "v4"] } +tokio = { workspace = true, features = ["macros"] } +uuid = { workspace = true, features = ["js", "v4"] } +# TODO: check this getrandom = { version = "0.2.15", features = ["js"] } -stanza = { version = "0.1.0", path = "../stanza", features = [ +stanza = { workspace = true, features = [ "rfc_7395", "xep_0156", ] } -web-sys = { version = "0.3", features = [ +web-sys = { workspace = true, features = [ "Request", "WebSocket", "RequestInit", @@ -49,23 +41,24 @@ web-sys = { version = "0.3", features = [ "Response", "ErrorEvent", ] } -js-sys = "0.3" -wasm-bindgen = "0.2" -wasm-bindgen-futures = "0.4.50" +js-sys = { workspace = true } +wasm-bindgen = { workspace = true } +wasm-bindgen-futures = { workspace = true } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -tokio = { workspace = true, features = ["io-util", "sync"] } +tokio = { workspace = true } tokio-native-tls = "0.3.1" trust-dns-resolver = "0.22.0" [dev-dependencies] -tracing-wasm = "0.2.1" -wasm-bindgen-test = "0.3.0" +# TODO: clean up dev dependencies and write tests +tracing-wasm = { workspace = true } +wasm-bindgen-test = { workspace = true } tokio = { workspace = true, features = ["macros", "rt", "time"] } -test-log = { version = "0.2", features = ["trace"] } -env_logger = "*" -tracing-subscriber = { version = "0.3", default-features = false, features = [ +test-log = { workspace = true, features = ["trace"] } +env_logger = { workspace = true } +tracing-subscriber = { workspace = true, default-features = false, features = [ "env-filter", "fmt", ] } -stanza = { version = "0.1.0", path = "../stanza", features = ["xep_0199"] } +stanza = { workspace = true, features = ["xep_0199"] } |