diff options
Diffstat (limited to 'filamento')
-rw-r--r-- | filamento/Cargo.toml | 46 | ||||
-rw-r--r-- | filamento/src/db.rs | 4 |
2 files changed, 39 insertions, 11 deletions
diff --git a/filamento/Cargo.toml b/filamento/Cargo.toml index 08f482b..97c2931 100644 --- a/filamento/Cargo.toml +++ b/filamento/Cargo.toml @@ -4,20 +4,38 @@ version = "0.1.0" edition = "2024" [features] -serde = ["dep:serde", "jid/serde", "uuid/serde", "chrono/serde", "lampada/serde"] +serde = [ + "dep:serde", + "jid/serde", + "uuid/serde", + "chrono/serde", + "lampada/serde", +] opfs = ["dep:web-sys"] reactive_stores = ["dep:reactive_stores"] [dependencies] futures = "0.3.30" lampada = { version = "0.1.0", path = "../lampada" } -tokio = { workspace = true } 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"] } +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", +] } # TODO: re-export jid? jid = { version = "0.1.0", path = "../jid", features = ["rusqlite"] } uuid = { version = "1.13.1", features = ["v4"] } -rusqlite = { git = "https://github.com/Spxg/rusqlite.git", branch = "wasm-demo", features = ["uuid", "chrono"] } +rusqlite = { git = "https://github.com/Spxg/rusqlite.git", branch = "wasm-demo", features = [ + "uuid", + "chrono", +] } tracing = "0.1.41" chrono = "0.4.40" sha2 = "0.10.8" @@ -33,12 +51,26 @@ reactive_stores = { version = "0.1.8", optional = true } tokio = { workspace = true, features = ["sync", "time", "rt", "fs", "io-std"] } [target.'cfg(target_arch = "wasm32")'.dependencies] -web-sys = { version = "0.3", features = ["FileSystemDirectoryHandle", "FileSystemWritableFileStream", "FileSystemGetDirectoryOptions", "FileSystemFileHandle", "StorageManager", "File", "Url", "Window", "Navigator"], optional = true } +tokio = { workspace = true, features = ["sync", "time", "rt"] } +web-sys = { version = "0.3", features = [ + "FileSystemDirectoryHandle", + "FileSystemWritableFileStream", + "FileSystemGetDirectoryOptions", + "FileSystemFileHandle", + "StorageManager", + "File", + "Url", + "Window", + "Navigator", +], optional = true } jid = { version = "0.1.0", path = "../jid", features = ["rusqlite"] } wasm-bindgen = "0.2" wasm-bindgen-futures = "0.4" -rusqlite = { git = "https://github.com/Spxg/rusqlite.git", branch = "wasm-demo", features = ["uuid", "chrono", "precompiled-wasm"] } -tokio = { workspace = true, features = ["sync", "time", "rt"] } +rusqlite = { git = "https://github.com/Spxg/rusqlite.git", branch = "wasm-demo", features = [ + "uuid", + "chrono", + "precompiled-wasm", +] } tokio_with_wasm = { version = "0.8.2", features = ["sync", "time", "rt"] } [dev-dependencies] diff --git a/filamento/src/db.rs b/filamento/src/db.rs index d4edb4c..9d4b4e9 100644 --- a/filamento/src/db.rs +++ b/filamento/src/db.rs @@ -921,14 +921,10 @@ impl DbActor { result.send(self.read_message(message)); } DbCommand::ReadMessageHistory { chat, result } => { - tracing::warn!("ReadMessageHistory: {chat}"); result.send(self.read_message_history(chat)); - tracing::warn!("ReadMessageHistory: read and sent") } DbCommand::ReadMessageHistoryWithUsers { chat, result } => { - tracing::warn!("ReadMessageHistoryWithUsers: {chat}"); result.send(self.read_message_history_with_users(chat)); - tracing::warn!("ReadMessageHistoryWithUsers: read and sent") } DbCommand::ReadCachedStatus { result } => { result.send(self.read_cached_status()); |