aboutsummaryrefslogtreecommitdiffstats
path: root/luz/Cargo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'luz/Cargo.toml')
-rw-r--r--luz/Cargo.toml64
1 files changed, 43 insertions, 21 deletions
diff --git a/luz/Cargo.toml b/luz/Cargo.toml
index 0a7f86e..e9cccd9 100644
--- a/luz/Cargo.toml
+++ b/luz/Cargo.toml
@@ -4,39 +4,61 @@ authors = ["cel <cel@bunny.garden>"]
version = "0.1.0"
edition = "2021"
+[lib]
+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"
-async-trait = "0.1.68"
-lazy_static = "1.4.0"
-nanoid = "0.4.0"
-# TODO: remove unneeded features and dependencies
-rsasl = { version = "2.0.1", default_features = false, features = [
+rsasl = { version = "2.0.1", default-features = false, features = [
"provider_base64",
"plain",
"config_builder",
"scram-sha-1",
] }
-tokio = { version = "1.28", features = ["full"] }
+uuid = { workspace = true, features = ["v4"] }
+tracing = { workspace = true }
+stanza = { workspace = true, features = ["xep_0156"] }
+peanuts = { workspace = true }
+jid = { workspace = true }
+thiserror = { workspace = true }
+
+[target.'cfg(target_arch = "wasm32")'.dependencies]
+tokio = { workspace = true, features = ["macros"] }
+uuid = { workspace = true, features = ["js", "v4"] }
+# TODO: check this
+getrandom = { version = "0.2.15", features = ["js"] }
+stanza = { workspace = true, features = [
+ "rfc_7395",
+ "xep_0156",
+] }
+web-sys = { workspace = true, features = [
+ "Request",
+ "WebSocket",
+ "RequestInit",
+ "Request",
+ "Window",
+ "Response",
+ "ErrorEvent",
+] }
+js-sys = { workspace = true }
+wasm-bindgen = { workspace = true }
+wasm-bindgen-futures = { workspace = true }
+
+[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
+tokio = { workspace = true }
tokio-native-tls = "0.3.1"
-tracing = "0.1.40"
trust-dns-resolver = "0.22.0"
-try_map = "0.3.1"
-stanza = { version = "0.1.0", path = "../stanza" }
-peanuts = { version = "0.1.0", git = "https://bunny.garden/peanuts" }
-jid = { version = "0.1.0", path = "../jid" }
-futures = "0.3.31"
-take_mut = "0.2.2"
-pin-project-lite = "0.2.15"
-pin-project = "1.1.7"
-thiserror = "2.0.11"
[dev-dependencies]
-test-log = { version = "0.2", features = ["trace"] }
-env_logger = "*"
-tracing-subscriber = { version = "0.3", default-features = false, features = [
+# 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 = { 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"] }