notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 135a5c99ae8205fd60af8aedad6d525bf0516554
parent c421a49912bfdb960c71b06451a746db178263f7
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 23 May 2024 16:10:07 -0700

Revert "deps: using tracing instead of log"

This reverts commit af92e326f62294fd43ef19e27abe481136d6bcb7.

Diffstat:
MCargo.lock | 18+++++++++++++++++-
MCargo.toml | 2+-
Menostr/src/relay/message.rs | 2+-
Menostr/src/relay/mod.rs | 2+-
Msrc/timeline.rs | 2+-
5 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock @@ -437,6 +437,12 @@ dependencies = [ ] [[package]] +name = "bitcoin-private" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73290177011694f38ec25e165d0387ab7ea749a4b81cd4c80dae5988229f7a57" + +[[package]] name = "bitcoin_hashes" version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -444,6 +450,15 @@ checksum = "90064b8dee6815a6470d60bad07bbbaee885c0e12d04177138fa3291a01b7bc4" [[package]] name = "bitcoin_hashes" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d7066118b13d4b20b23645932dfb3a81ce7e29f95726c2036fa33cd7b092501" +dependencies = [ + "bitcoin-private", +] + +[[package]] +name = "bitcoin_hashes" version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1930a4dabfebb8d7d9992db18ebe3ae2876f0a305fab206fd168df931ede293b" @@ -2447,6 +2462,7 @@ dependencies = [ "env_logger 0.10.2", "hex", "image", + "log", "nostrdb", "poll-promise", "puffin", @@ -3389,7 +3405,7 @@ version = "0.28.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d24b59d129cdadea20aea4fb2352fa053712e5d713eee47d700cd4b2bc002f10" dependencies = [ - "bitcoin_hashes 0.13.0", + "bitcoin_hashes 0.12.0", "rand", "secp256k1-sys", "serde", diff --git a/Cargo.toml b/Cargo.toml @@ -22,6 +22,7 @@ ehttp = "0.2.0" egui-tabs = { git = "https://github.com/damus-io/egui-tabs", rev = "75f47141aebcf876986fad00dd83a69a7bb04840" } reqwest = { version = "0.12.4", default-features = false, features = [ "rustls-tls-native-roots" ] } image = { version = "0.24", features = ["jpeg", "png", "webp"] } +log = "0.4.17" poll-promise = { version = "0.3.0", features = ["tokio"] } serde_derive = "1" serde = { version = "1", features = ["derive"] } # You only need this if you want app persistence @@ -40,7 +41,6 @@ strum = "0.26" strum_macros = "0.26" bitflags = "2.5.0" egui_virtual_list = "0.3.0" -#egui_virtual_list = { path = "/home/jb55/dev/github/lucasmerlin/hello_egui/crates/egui_virtual_list" } [target.'cfg(target_os = "macos")'.dependencies] security-framework = "2.11.0" diff --git a/enostr/src/relay/message.rs b/enostr/src/relay/message.rs @@ -161,7 +161,7 @@ mod tests { #[test] fn test_handle_valid_event() -> Result<()> { - use tracing::debug; + use log::debug; env_logger::init(); let valid_event_msg = r#"["EVENT", "random_string", {"id":"70b10f70c1318967eddf12527799411b1a9780ad9c43858f5e5fcd45486a13a5","pubkey":"379e863e8357163b5bce5d2688dc4f1dcc2d505222fb8d74db600f30535dfdfe","created_at":1612809991,"kind":1,"tags":[],"content":"test","sig":"273a9cd5d11455590f4359500bccb7a89428262b96b3ea87a756b770964472f8c3e87f5d5e64d8d2e859a71462a3f477b554565c4f2f326cb01dd7620db71502"}]"#; diff --git a/enostr/src/relay/mod.rs b/enostr/src/relay/mod.rs @@ -1,9 +1,9 @@ use ewebsock::{WsMessage, WsReceiver, WsSender}; use crate::{ClientMessage, Filter, Result}; +use log::info; use std::fmt; use std::hash::{Hash, Hasher}; -use tracing::info; pub mod message; pub mod pool; diff --git a/src/timeline.rs b/src/timeline.rs @@ -11,7 +11,7 @@ use std::cell::RefCell; use std::cmp::Ordering; use std::rc::Rc; -use tracing::warn; +use log::warn; #[derive(Debug, Eq, PartialEq, Copy, Clone)] pub struct NoteRef {