aboutsummaryrefslogtreecommitdiffstats
path: root/filamento/Cargo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'filamento/Cargo.toml')
-rw-r--r--filamento/Cargo.toml77
1 files changed, 65 insertions, 12 deletions
diff --git a/filamento/Cargo.toml b/filamento/Cargo.toml
index 91b7e91..b89c577 100644
--- a/filamento/Cargo.toml
+++ b/filamento/Cargo.toml
@@ -3,28 +3,81 @@ name = "filamento"
version = "0.1.0"
edition = "2024"
+[features]
+serde = [
+ "dep:serde",
+ "jid/serde",
+ "uuid/serde",
+ "chrono/serde",
+ "lampada/serde",
+]
+opfs = ["dep:web-sys"]
+reactive_stores = ["dep:reactive_stores"]
+
[dependencies]
-futures = "0.3.31"
-lampada = { version = "0.1.0", path = "../lampada" }
-tokio = "1.42.0"
-thiserror = "2.0.11"
-stanza = { version = "0.1.0", path = "../stanza", features = ["rfc_6121", "xep_0203", "xep_0030", "xep_0060", "xep_0172", "xep_0390", "xep_0128", "xep_0115", "xep_0084"] }
-sqlx = { version = "0.8.3", features = ["sqlite", "runtime-tokio", "uuid", "chrono"] }
+futures = { workspace = true }
+lampada = { workspace = true }
+thiserror = { workspace = true }
+stanza = { workspace = true, features = [
+ "rfc_6121",
+ "xep_0203",
+ "xep_0030",
+ "xep_0060",
+ "xep_0172",
+ "xep_0390",
+ "xep_0128",
+ "xep_0115",
+ "xep_0084",
+] }
# TODO: re-export jid?
-jid = { version = "0.1.0", path = "../jid", features = ["sqlx"] }
-uuid = { version = "1.13.1", features = ["v4"] }
-tracing = "0.1.41"
-chrono = "0.4.40"
+jid = { workspace = true, features = ["rusqlite"] }
+uuid = { workspace = true, features = ["v4"] }
+rusqlite = { git = "https://github.com/Spxg/rusqlite.git", branch = "wasm-demo", features = [
+ "uuid",
+ "chrono",
+] }
+tracing = { workspace = true }
+chrono = { workspace = true }
+serde = { workspace = true, features = ["derive"], optional = true }
sha2 = "0.10.8"
sha3 = "0.10.8"
base64 = "0.22.1"
sha1 = "0.10.6"
image = "0.25.6"
hex = "0.4.3"
+reactive_stores = { version = "0.2.2", optional = true }
+
+[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
+tokio = { workspace = true, features = ["sync", "time", "rt", "fs", "io-std"] }
+
+[target.'cfg(target_arch = "wasm32")'.dependencies]
+tokio = { workspace = true, features = ["sync", "time", "rt"] }
+js-sys.workspace = true
+web-sys = { workspace = true, features = [
+ "FileSystemDirectoryHandle",
+ "FileSystemWritableFileStream",
+ "FileSystemGetDirectoryOptions",
+ "FileSystemFileHandle",
+ "StorageManager",
+ "File",
+ "Url",
+ "Window",
+ "Navigator",
+], optional = true }
+wasm-bindgen = { workspace = true }
+wasm-bindgen-futures = { workspace = true }
+rusqlite = { git = "https://github.com/Spxg/rusqlite.git", branch = "wasm-demo", features = [
+ "uuid",
+ "chrono",
+ "precompiled-wasm",
+] }
+tokio_with_wasm = { workspace = true, features = ["sync", "time", "rt"] }
[dev-dependencies]
-tracing-subscriber = "0.3.19"
-peanuts = { version = "0.1.0", git = "https://bunny.garden/peanuts" }
+tracing-subscriber = { workspace = true }
+peanuts = { workspace = true }
+tracing-wasm = { workspace = true }
+wasm-bindgen-test = { workspace = true }
[[example]]
name = "example"