Skip to content

Commit

Permalink
fix: random state reusage (#326)
Browse files Browse the repository at this point in the history
This includes the fix whisperfish/presage#292 in particular fixing the long-standing issue #234.

Also adjust usage of presage::Store API which is now asynchronous. One possibly negative side-effect is that the UI looks up in the contact names cache in read-only fashion, and only the async part of gurk can populate the cache using the store.

Also fix clippy warnings.
  • Loading branch information
gferon authored Nov 12, 2024
1 parent 968c2d4 commit 2a1f5af
Show file tree
Hide file tree
Showing 14 changed files with 519 additions and 410 deletions.
543 changes: 321 additions & 222 deletions Cargo.lock

Large diffs are not rendered by default.

24 changes: 18 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "gurk"
description = "Signal messenger client for terminal"
version = "0.5.2-dev"
version = "0.5.3-dev"
authors = ["boxdot <[email protected]>"]
edition = "2021"
keywords = ["signal", "tui"]
Expand All @@ -28,8 +28,8 @@ debug = true
dev = ["prost", "base64"]

[dependencies]
presage = { git = "https://github.com/whisperfish/presage", rev = "464626aa27829bc4d641086359afccdb0da4711f" }
presage-store-sled = { git = "https://github.com/whisperfish/presage", rev = "464626aa27829bc4d641086359afccdb0da4711f" }
presage = { git = "https://github.com/whisperfish/presage", rev = "af5273a18204a3dc07423284f3dc8fa7829cbd13" }
presage-store-sled = { git = "https://github.com/whisperfish/presage", rev = "af5273a18204a3dc07423284f3dc8fa7829cbd13" }

# dev feature dependencies
prost = { version = "0.13.0", optional = true }
Expand All @@ -49,7 +49,9 @@ hex = "0.4.3"
hostname = "0.4.0"
image = { version = "0.25.0", default-features = false, features = ["png"] }
itertools = "0.13.0"
libsqlite3-sys = { version = "0.30.1", features = ["bundled-sqlcipher-vendored-openssl"] }
libsqlite3-sys = { version = "0.30.1", features = [
"bundled-sqlcipher-vendored-openssl",
] }
log-panics = "2.1.0"
mime_guess = "2.0.4"
notify-rust = "4.5.10"
Expand All @@ -64,11 +66,21 @@ regex = "1.9.5"
scopeguard = "1.1.0"
serde = { version = "1.0.147", features = ["derive"] }
serde_json = "1.0.87"
sqlx = { version = "0.8.1", features = ["sqlite", "runtime-tokio-rustls", "uuid", "chrono"] }
sqlx = { version = "0.8.1", features = [
"sqlite",
"runtime-tokio-rustls",
"uuid",
"chrono",
] }
textwrap = "0.16.0"
thiserror = "1.0.40"
thread_local = "1.1.7"
tokio = { version = "1.21.2", default-features = false, features = ["rt-multi-thread", "macros", "net", "time"] }
tokio = { version = "1.21.2", default-features = false, features = [
"rt-multi-thread",
"macros",
"net",
"time",
] }
tokio-stream = "0.1.11"
toml = "0.8.0"
tracing = "0.1.37"
Expand Down
Loading

0 comments on commit 2a1f5af

Please sign in to comment.