chore: use upstream rust nostr

This commit is contained in:
reya 2024-11-11 07:50:28 +07:00
parent 5103126001
commit c93edde7d2
4 changed files with 86 additions and 90 deletions

162
src-tauri/Cargo.lock generated
View File

@ -301,7 +301,7 @@ dependencies = [
"futures-lite 2.5.0", "futures-lite 2.5.0",
"parking", "parking",
"polling 3.7.4", "polling 3.7.4",
"rustix 0.38.39", "rustix 0.38.40",
"slab", "slab",
"tracing", "tracing",
"windows-sys 0.59.0", "windows-sys 0.59.0",
@ -340,7 +340,7 @@ dependencies = [
"cfg-if", "cfg-if",
"event-listener 3.1.0", "event-listener 3.1.0",
"futures-lite 1.13.0", "futures-lite 1.13.0",
"rustix 0.38.39", "rustix 0.38.40",
"windows-sys 0.48.0", "windows-sys 0.48.0",
] ]
@ -359,7 +359,7 @@ dependencies = [
"cfg-if", "cfg-if",
"event-listener 5.3.1", "event-listener 5.3.1",
"futures-lite 2.5.0", "futures-lite 2.5.0",
"rustix 0.38.39", "rustix 0.38.40",
"tracing", "tracing",
] ]
@ -386,7 +386,7 @@ dependencies = [
"cfg-if", "cfg-if",
"futures-core", "futures-core",
"futures-io", "futures-io",
"rustix 0.38.39", "rustix 0.38.40",
"signal-hook-registry", "signal-hook-registry",
"slab", "slab",
"windows-sys 0.59.0", "windows-sys 0.59.0",
@ -431,7 +431,7 @@ dependencies = [
"futures", "futures",
"futures-util", "futures-util",
"js-sys", "js-sys",
"thiserror 1.0.68", "thiserror 1.0.69",
"tokio", "tokio",
"tokio-rustls", "tokio-rustls",
"tokio-socks", "tokio-socks",
@ -679,7 +679,7 @@ dependencies = [
[[package]] [[package]]
name = "border" name = "border"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/ahkohd/tauri-toolkit?branch=v2#0bf90a47e90b22dede48f13444a34af8f8bbbdfc" source = "git+https://github.com/ahkohd/tauri-toolkit?branch=v2#8fa9329f677a199c5c2b445def218cef8ff325b2"
dependencies = [ dependencies = [
"cocoa 0.25.0", "cocoa 0.25.0",
"color", "color",
@ -754,7 +754,7 @@ dependencies = [
"glib", "glib",
"libc", "libc",
"once_cell", "once_cell",
"thiserror 1.0.68", "thiserror 1.0.69",
] ]
[[package]] [[package]]
@ -797,7 +797,7 @@ dependencies = [
"semver", "semver",
"serde", "serde",
"serde_json", "serde_json",
"thiserror 1.0.68", "thiserror 1.0.69",
] ]
[[package]] [[package]]
@ -987,7 +987,7 @@ dependencies = [
[[package]] [[package]]
name = "color" name = "color"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/ahkohd/tauri-toolkit?branch=v2#0bf90a47e90b22dede48f13444a34af8f8bbbdfc" source = "git+https://github.com/ahkohd/tauri-toolkit?branch=v2#8fa9329f677a199c5c2b445def218cef8ff325b2"
dependencies = [ dependencies = [
"cocoa 0.25.0", "cocoa 0.25.0",
"objc", "objc",
@ -1765,7 +1765,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "db9c27b72f19a99a895f8ca89e2d26e4ef31013376e56fdafef697627306c3e4" checksum = "db9c27b72f19a99a895f8ca89e2d26e4ef31013376e56fdafef697627306c3e4"
dependencies = [ dependencies = [
"nom", "nom",
"thiserror 1.0.68", "thiserror 1.0.69",
] ]
[[package]] [[package]]
@ -2029,7 +2029,7 @@ version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc3655aa6818d65bc620d6911f05aa7b6aeb596291e1e9f79e52df85583d1e30" checksum = "dc3655aa6818d65bc620d6911f05aa7b6aeb596291e1e9f79e52df85583d1e30"
dependencies = [ dependencies = [
"rustix 0.38.39", "rustix 0.38.40",
"windows-targets 0.52.6", "windows-targets 0.52.6",
] ]
@ -2079,7 +2079,7 @@ dependencies = [
"once_cell", "once_cell",
"pin-project-lite", "pin-project-lite",
"smallvec", "smallvec",
"thiserror 1.0.68", "thiserror 1.0.69",
] ]
[[package]] [[package]]
@ -2115,7 +2115,7 @@ dependencies = [
"memchr", "memchr",
"once_cell", "once_cell",
"smallvec", "smallvec",
"thiserror 1.0.68", "thiserror 1.0.69",
] ]
[[package]] [[package]]
@ -2858,7 +2858,7 @@ dependencies = [
"combine", "combine",
"jni-sys", "jni-sys",
"log", "log",
"thiserror 1.0.68", "thiserror 1.0.69",
"walkdir", "walkdir",
"windows-sys 0.45.0", "windows-sys 0.45.0",
] ]
@ -2893,7 +2893,7 @@ dependencies = [
"jsonptr", "jsonptr",
"serde", "serde",
"serde_json", "serde_json",
"thiserror 1.0.68", "thiserror 1.0.69",
] ]
[[package]] [[package]]
@ -3034,7 +3034,7 @@ dependencies = [
"freedesktop_entry_parser", "freedesktop_entry_parser",
"linicon-theme", "linicon-theme",
"memmap2", "memmap2",
"thiserror 1.0.68", "thiserror 1.0.69",
] ]
[[package]] [[package]]
@ -3275,7 +3275,7 @@ dependencies = [
"once_cell", "once_cell",
"png", "png",
"serde", "serde",
"thiserror 1.0.68", "thiserror 1.0.69",
"windows-sys 0.59.0", "windows-sys 0.59.0",
] ]
@ -3308,7 +3308,7 @@ dependencies = [
"ndk-sys", "ndk-sys",
"num_enum", "num_enum",
"raw-window-handle", "raw-window-handle",
"thiserror 1.0.68", "thiserror 1.0.69",
] ]
[[package]] [[package]]
@ -3388,7 +3388,7 @@ dependencies = [
[[package]] [[package]]
name = "nostr" name = "nostr"
version = "0.36.0" version = "0.36.0"
source = "git+https://github.com/reyamir/nostr?branch=feat/nip-22#9afd230b93494390438c69fbd6f2a7de79fa0af8" source = "git+https://github.com/rust-nostr/nostr#191410b7f14236b7a6b39e78a07099df4c691032"
dependencies = [ dependencies = [
"aes", "aes",
"async-trait", "async-trait",
@ -3419,13 +3419,13 @@ dependencies = [
[[package]] [[package]]
name = "nostr-connect" name = "nostr-connect"
version = "0.36.0" version = "0.36.0"
source = "git+https://github.com/reyamir/nostr?branch=feat/nip-22#9afd230b93494390438c69fbd6f2a7de79fa0af8" source = "git+https://github.com/rust-nostr/nostr#191410b7f14236b7a6b39e78a07099df4c691032"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"async-utility", "async-utility",
"nostr", "nostr",
"nostr-relay-pool", "nostr-relay-pool",
"thiserror 1.0.68", "thiserror 1.0.69",
"tokio", "tokio",
"tracing", "tracing",
] ]
@ -3433,13 +3433,13 @@ dependencies = [
[[package]] [[package]]
name = "nostr-database" name = "nostr-database"
version = "0.36.0" version = "0.36.0"
source = "git+https://github.com/reyamir/nostr?branch=feat/nip-22#9afd230b93494390438c69fbd6f2a7de79fa0af8" source = "git+https://github.com/rust-nostr/nostr#191410b7f14236b7a6b39e78a07099df4c691032"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"flatbuffers", "flatbuffers",
"lru", "lru",
"nostr", "nostr",
"thiserror 1.0.68", "thiserror 1.0.69",
"tokio", "tokio",
"tracing", "tracing",
] ]
@ -3447,12 +3447,12 @@ dependencies = [
[[package]] [[package]]
name = "nostr-lmdb" name = "nostr-lmdb"
version = "0.36.0" version = "0.36.0"
source = "git+https://github.com/reyamir/nostr?branch=feat/nip-22#9afd230b93494390438c69fbd6f2a7de79fa0af8" source = "git+https://github.com/rust-nostr/nostr#191410b7f14236b7a6b39e78a07099df4c691032"
dependencies = [ dependencies = [
"heed", "heed",
"nostr", "nostr",
"nostr-database", "nostr-database",
"thiserror 1.0.68", "thiserror 1.0.69",
"tokio", "tokio",
"tracing", "tracing",
] ]
@ -3460,7 +3460,7 @@ dependencies = [
[[package]] [[package]]
name = "nostr-relay-pool" name = "nostr-relay-pool"
version = "0.36.0" version = "0.36.0"
source = "git+https://github.com/reyamir/nostr?branch=feat/nip-22#9afd230b93494390438c69fbd6f2a7de79fa0af8" source = "git+https://github.com/rust-nostr/nostr#191410b7f14236b7a6b39e78a07099df4c691032"
dependencies = [ dependencies = [
"async-utility", "async-utility",
"async-wsocket", "async-wsocket",
@ -3469,7 +3469,7 @@ dependencies = [
"negentropy 0.4.3", "negentropy 0.4.3",
"nostr", "nostr",
"nostr-database", "nostr-database",
"thiserror 1.0.68", "thiserror 1.0.69",
"tokio", "tokio",
"tokio-stream", "tokio-stream",
"tracing", "tracing",
@ -3478,7 +3478,7 @@ dependencies = [
[[package]] [[package]]
name = "nostr-sdk" name = "nostr-sdk"
version = "0.36.0" version = "0.36.0"
source = "git+https://github.com/reyamir/nostr?branch=feat/nip-22#9afd230b93494390438c69fbd6f2a7de79fa0af8" source = "git+https://github.com/rust-nostr/nostr#191410b7f14236b7a6b39e78a07099df4c691032"
dependencies = [ dependencies = [
"async-utility", "async-utility",
"atomic-destructor", "atomic-destructor",
@ -3489,7 +3489,7 @@ dependencies = [
"nostr-relay-pool", "nostr-relay-pool",
"nostr-zapper", "nostr-zapper",
"nwc", "nwc",
"thiserror 1.0.68", "thiserror 1.0.69",
"tokio", "tokio",
"tracing", "tracing",
] ]
@ -3497,11 +3497,11 @@ dependencies = [
[[package]] [[package]]
name = "nostr-zapper" name = "nostr-zapper"
version = "0.36.0" version = "0.36.0"
source = "git+https://github.com/reyamir/nostr?branch=feat/nip-22#9afd230b93494390438c69fbd6f2a7de79fa0af8" source = "git+https://github.com/rust-nostr/nostr#191410b7f14236b7a6b39e78a07099df4c691032"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"nostr", "nostr",
"thiserror 1.0.68", "thiserror 1.0.69",
"webln", "webln",
] ]
@ -3631,14 +3631,14 @@ dependencies = [
[[package]] [[package]]
name = "nwc" name = "nwc"
version = "0.36.0" version = "0.36.0"
source = "git+https://github.com/reyamir/nostr?branch=feat/nip-22#9afd230b93494390438c69fbd6f2a7de79fa0af8" source = "git+https://github.com/rust-nostr/nostr#191410b7f14236b7a6b39e78a07099df4c691032"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"async-utility", "async-utility",
"nostr", "nostr",
"nostr-relay-pool", "nostr-relay-pool",
"nostr-zapper", "nostr-zapper",
"thiserror 1.0.68", "thiserror 1.0.69",
"tracing", "tracing",
] ]
@ -4337,7 +4337,7 @@ dependencies = [
"concurrent-queue", "concurrent-queue",
"hermit-abi 0.4.0", "hermit-abi 0.4.0",
"pin-project-lite", "pin-project-lite",
"rustix 0.38.39", "rustix 0.38.40",
"tracing", "tracing",
"windows-sys 0.59.0", "windows-sys 0.59.0",
] ]
@ -4497,7 +4497,7 @@ dependencies = [
"rustc-hash", "rustc-hash",
"rustls", "rustls",
"socket2 0.5.7", "socket2 0.5.7",
"thiserror 1.0.68", "thiserror 1.0.69",
"tokio", "tokio",
"tracing", "tracing",
] ]
@ -4514,7 +4514,7 @@ dependencies = [
"rustc-hash", "rustc-hash",
"rustls", "rustls",
"slab", "slab",
"thiserror 1.0.68", "thiserror 1.0.69",
"tinyvec", "tinyvec",
"tracing", "tracing",
] ]
@ -4657,7 +4657,7 @@ checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43"
dependencies = [ dependencies = [
"getrandom 0.2.15", "getrandom 0.2.15",
"libredox", "libredox",
"thiserror 1.0.68", "thiserror 1.0.69",
] ]
[[package]] [[package]]
@ -4827,9 +4827,9 @@ dependencies = [
[[package]] [[package]]
name = "rustix" name = "rustix"
version = "0.38.39" version = "0.38.40"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "375116bee2be9ed569afe2154ea6a99dfdffd257f533f187498c2a8f5feaf4ee" checksum = "99e4ea3e1cdc4b559b8e5650f9c8e5998e3e5c1343b4eaf034565f32318d63c0"
dependencies = [ dependencies = [
"bitflags 2.6.0", "bitflags 2.6.0",
"errno", "errno",
@ -5256,7 +5256,7 @@ dependencies = [
[[package]] [[package]]
name = "share-picker" name = "share-picker"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/ahkohd/tauri-toolkit?branch=v2#0bf90a47e90b22dede48f13444a34af8f8bbbdfc" source = "git+https://github.com/ahkohd/tauri-toolkit?branch=v2#8fa9329f677a199c5c2b445def218cef8ff325b2"
dependencies = [ dependencies = [
"objc2", "objc2",
"objc2-app-kit", "objc2-app-kit",
@ -5392,7 +5392,7 @@ checksum = "4ccbb212565d2dc177bc15ecb7b039d66c4490da892436a4eee5b394d620c9bc"
dependencies = [ dependencies = [
"paste", "paste",
"specta-macros", "specta-macros",
"thiserror 1.0.68", "thiserror 1.0.69",
] ]
[[package]] [[package]]
@ -5414,7 +5414,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "12260cbb21abb2e83a0375b1521867910e3aed8a7afa782206150ce552cd2e5a" checksum = "12260cbb21abb2e83a0375b1521867910e3aed8a7afa782206150ce552cd2e5a"
dependencies = [ dependencies = [
"specta", "specta",
"thiserror 1.0.68", "thiserror 1.0.69",
] ]
[[package]] [[package]]
@ -5425,7 +5425,7 @@ checksum = "b1e4472229365ceb6395487e3a60d921ad8e21f9ad06eaecc396f098902c9adc"
dependencies = [ dependencies = [
"specta", "specta",
"specta-serde", "specta-serde",
"thiserror 1.0.68", "thiserror 1.0.69",
] ]
[[package]] [[package]]
@ -5719,7 +5719,7 @@ dependencies = [
"tauri-runtime", "tauri-runtime",
"tauri-runtime-wry", "tauri-runtime-wry",
"tauri-utils", "tauri-utils",
"thiserror 2.0.1", "thiserror 2.0.3",
"tokio", "tokio",
"tray-icon", "tray-icon",
"url", "url",
@ -5772,7 +5772,7 @@ dependencies = [
"sha2", "sha2",
"syn 2.0.87", "syn 2.0.87",
"tauri-utils", "tauri-utils",
"thiserror 2.0.1", "thiserror 2.0.3",
"time", "time",
"url", "url",
"uuid", "uuid",
@ -5822,7 +5822,7 @@ dependencies = [
"serde_json", "serde_json",
"tauri", "tauri",
"tauri-plugin", "tauri-plugin",
"thiserror 1.0.68", "thiserror 1.0.69",
] ]
[[package]] [[package]]
@ -5855,7 +5855,7 @@ dependencies = [
"tauri", "tauri",
"tauri-plugin", "tauri-plugin",
"tauri-plugin-fs", "tauri-plugin-fs",
"thiserror 1.0.68", "thiserror 1.0.69",
"url", "url",
] ]
@ -5875,7 +5875,7 @@ dependencies = [
"serde_repr", "serde_repr",
"tauri", "tauri",
"tauri-plugin", "tauri-plugin",
"thiserror 1.0.68", "thiserror 1.0.69",
"url", "url",
"uuid", "uuid",
] ]
@ -5896,7 +5896,7 @@ dependencies = [
"tauri", "tauri",
"tauri-plugin", "tauri-plugin",
"tauri-plugin-fs", "tauri-plugin-fs",
"thiserror 1.0.68", "thiserror 1.0.69",
"tokio", "tokio",
"url", "url",
"urlpattern", "urlpattern",
@ -5916,7 +5916,7 @@ dependencies = [
"serde_repr", "serde_repr",
"tauri", "tauri",
"tauri-plugin", "tauri-plugin",
"thiserror 1.0.68", "thiserror 1.0.69",
"time", "time",
"url", "url",
] ]
@ -5936,7 +5936,7 @@ dependencies = [
"sys-locale", "sys-locale",
"tauri", "tauri",
"tauri-plugin", "tauri-plugin",
"thiserror 1.0.68", "thiserror 1.0.69",
] ]
[[package]] [[package]]
@ -5951,7 +5951,7 @@ dependencies = [
"strum", "strum",
"tauri", "tauri",
"tauri-plugin", "tauri-plugin",
"thiserror 1.0.68", "thiserror 1.0.69",
] ]
[[package]] [[package]]
@ -5981,7 +5981,7 @@ dependencies = [
"shared_child", "shared_child",
"tauri", "tauri",
"tauri-plugin", "tauri-plugin",
"thiserror 1.0.68", "thiserror 1.0.69",
"tokio", "tokio",
] ]
@ -5996,7 +5996,7 @@ dependencies = [
"serde_json", "serde_json",
"tauri", "tauri",
"tauri-plugin", "tauri-plugin",
"thiserror 1.0.68", "thiserror 1.0.69",
"tokio", "tokio",
] ]
@ -6043,7 +6043,7 @@ dependencies = [
"tauri", "tauri",
"tauri-plugin", "tauri-plugin",
"tempfile", "tempfile",
"thiserror 1.0.68", "thiserror 1.0.69",
"time", "time",
"tokio", "tokio",
"url", "url",
@ -6065,7 +6065,7 @@ dependencies = [
"serde_json", "serde_json",
"tauri", "tauri",
"tauri-plugin", "tauri-plugin",
"thiserror 1.0.68", "thiserror 1.0.69",
"tokio", "tokio",
"tokio-util", "tokio-util",
] ]
@ -6082,7 +6082,7 @@ dependencies = [
"serde_json", "serde_json",
"tauri", "tauri",
"tauri-plugin", "tauri-plugin",
"thiserror 1.0.68", "thiserror 1.0.69",
] ]
[[package]] [[package]]
@ -6099,7 +6099,7 @@ dependencies = [
"serde", "serde",
"serde_json", "serde_json",
"tauri-utils", "tauri-utils",
"thiserror 2.0.1", "thiserror 2.0.3",
"url", "url",
"windows 0.58.0", "windows 0.58.0",
] ]
@ -6143,7 +6143,7 @@ dependencies = [
"specta-typescript", "specta-typescript",
"tauri", "tauri",
"tauri-specta-macros", "tauri-specta-macros",
"thiserror 1.0.68", "thiserror 1.0.69",
] ]
[[package]] [[package]]
@ -6187,7 +6187,7 @@ dependencies = [
"serde_json", "serde_json",
"serde_with", "serde_with",
"swift-rs", "swift-rs",
"thiserror 2.0.1", "thiserror 2.0.3",
"toml 0.8.19", "toml 0.8.19",
"url", "url",
"urlpattern", "urlpattern",
@ -6225,7 +6225,7 @@ dependencies = [
"cfg-if", "cfg-if",
"fastrand 2.2.0", "fastrand 2.2.0",
"once_cell", "once_cell",
"rustix 0.38.39", "rustix 0.38.40",
"windows-sys 0.59.0", "windows-sys 0.59.0",
] ]
@ -6248,27 +6248,27 @@ checksum = "8eaa81235c7058867fa8c0e7314f33dcce9c215f535d1913822a2b3f5e289f3c"
[[package]] [[package]]
name = "thiserror" name = "thiserror"
version = "1.0.68" version = "1.0.69"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "02dd99dc800bbb97186339685293e1cc5d9df1f8fae2d0aecd9ff1c77efea892" checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
dependencies = [ dependencies = [
"thiserror-impl 1.0.68", "thiserror-impl 1.0.69",
] ]
[[package]] [[package]]
name = "thiserror" name = "thiserror"
version = "2.0.1" version = "2.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07c1e40dd48a282ae8edc36c732cbc219144b87fb6a4c7316d611c6b1f06ec0c" checksum = "c006c85c7651b3cf2ada4584faa36773bd07bac24acfb39f3c431b36d7e667aa"
dependencies = [ dependencies = [
"thiserror-impl 2.0.1", "thiserror-impl 2.0.3",
] ]
[[package]] [[package]]
name = "thiserror-impl" name = "thiserror-impl"
version = "1.0.68" version = "1.0.69"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7c61ec9a6f64d2793d8a45faba21efbe3ced62a886d44c36a009b2b519b4c7e" checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
@ -6277,9 +6277,9 @@ dependencies = [
[[package]] [[package]]
name = "thiserror-impl" name = "thiserror-impl"
version = "2.0.1" version = "2.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "874aa7e446f1da8d9c3a5c95b1c5eb41d800045252121dc7f8e0ba370cee55f5" checksum = "f077553d607adc1caf65430528a576c757a71ed73944b66ebb58ef2bbd243568"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
@ -6432,7 +6432,7 @@ checksum = "0d4770b8024672c1101b3f6733eab95b18007dbe0847a8afe341fcf79e06043f"
dependencies = [ dependencies = [
"either", "either",
"futures-util", "futures-util",
"thiserror 1.0.68", "thiserror 1.0.69",
"tokio", "tokio",
] ]
@ -6626,7 +6626,7 @@ dependencies = [
"once_cell", "once_cell",
"png", "png",
"serde", "serde",
"thiserror 1.0.68", "thiserror 1.0.69",
"windows-sys 0.59.0", "windows-sys 0.59.0",
] ]
@ -6652,7 +6652,7 @@ dependencies = [
"rustls", "rustls",
"rustls-pki-types", "rustls-pki-types",
"sha1", "sha1",
"thiserror 1.0.68", "thiserror 1.0.69",
"utf-8", "utf-8",
] ]
@ -6984,7 +6984,7 @@ checksum = "056535ced7a150d45159d3a8dc30f91a2e2d588ca0b23f70e56033622b8016f6"
dependencies = [ dependencies = [
"cc", "cc",
"downcast-rs", "downcast-rs",
"rustix 0.38.39", "rustix 0.38.40",
"scoped-tls", "scoped-tls",
"smallvec", "smallvec",
"wayland-sys", "wayland-sys",
@ -6997,7 +6997,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b66249d3fc69f76fd74c82cc319300faa554e9d865dab1f7cd66cc20db10b280" checksum = "b66249d3fc69f76fd74c82cc319300faa554e9d865dab1f7cd66cc20db10b280"
dependencies = [ dependencies = [
"bitflags 2.6.0", "bitflags 2.6.0",
"rustix 0.38.39", "rustix 0.38.40",
"wayland-backend", "wayland-backend",
"wayland-scanner", "wayland-scanner",
] ]
@ -7161,7 +7161,7 @@ version = "0.33.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a3a3e2eeb58f82361c93f9777014668eb3d07e7d174ee4c819575a9208011886" checksum = "a3a3e2eeb58f82361c93f9777014668eb3d07e7d174ee4c819575a9208011886"
dependencies = [ dependencies = [
"thiserror 1.0.68", "thiserror 1.0.69",
"windows 0.58.0", "windows 0.58.0",
"windows-core 0.58.0", "windows-core 0.58.0",
] ]
@ -7668,7 +7668,7 @@ dependencies = [
"sha2", "sha2",
"soup3", "soup3",
"tao-macros", "tao-macros",
"thiserror 1.0.68", "thiserror 1.0.69",
"url", "url",
"webkit2gtk", "webkit2gtk",
"webkit2gtk-sys", "webkit2gtk-sys",
@ -7707,7 +7707,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5d91ffca73ee7f68ce055750bf9f6eca0780b8c85eff9bc046a3b0da41755e12" checksum = "5d91ffca73ee7f68ce055750bf9f6eca0780b8c85eff9bc046a3b0da41755e12"
dependencies = [ dependencies = [
"gethostname 0.4.3", "gethostname 0.4.3",
"rustix 0.38.39", "rustix 0.38.40",
"x11rb-protocol", "x11rb-protocol",
] ]
@ -7725,7 +7725,7 @@ checksum = "8da84f1a25939b27f6820d92aed108f83ff920fdf11a7b19366c27c4cda81d4f"
dependencies = [ dependencies = [
"libc", "libc",
"linux-raw-sys 0.4.14", "linux-raw-sys 0.4.14",
"rustix 0.38.39", "rustix 0.38.40",
] ]
[[package]] [[package]]
@ -7973,7 +7973,7 @@ dependencies = [
"displaydoc", "displaydoc",
"indexmap 2.6.0", "indexmap 2.6.0",
"memchr", "memchr",
"thiserror 1.0.68", "thiserror 1.0.69",
] ]
[[package]] [[package]]

View File

@ -52,10 +52,6 @@ webbrowser = "1.0.2"
nostr-sdk = { git = "https://github.com/rust-nostr/nostr", features = ["lmdb", "webln", "all-nips"] } nostr-sdk = { git = "https://github.com/rust-nostr/nostr", features = ["lmdb", "webln", "all-nips"] }
nostr-connect = { git = "https://github.com/rust-nostr/nostr" } nostr-connect = { git = "https://github.com/rust-nostr/nostr" }
[patch.'https://github.com/rust-nostr/nostr']
nostr-sdk = { git = "https://github.com/reyamir/nostr", branch = "feat/nip-22", features = ["lmdb", "webln", "all-nips"] }
nostr-connect = { git = "https://github.com/reyamir/nostr", branch = "feat/nip-22" }
[target.'cfg(target_os = "macos")'.dependencies] [target.'cfg(target_os = "macos")'.dependencies]
border = { git = "https://github.com/ahkohd/tauri-toolkit", branch = "v2" } border = { git = "https://github.com/ahkohd/tauri-toolkit", branch = "v2" }
share-picker = { git = "https://github.com/ahkohd/tauri-toolkit", branch = "v2" } share-picker = { git = "https://github.com/ahkohd/tauri-toolkit", branch = "v2" }

View File

@ -104,7 +104,7 @@ pub fn create_tags(content: &str) -> Vec<Tag> {
} }
if entity.starts_with("nevent") { if entity.starts_with("nevent") {
if let Ok(event) = Nip19Event::from_bech32(&entity) { if let Ok(event) = Nip19Event::from_bech32(&entity) {
let relay_url = event.relays.first().map(UncheckedUrl::from); let relay_url = event.relays.first().and_then(|i| Url::parse(i).ok());
let tag = Tag::from_standardized(TagStandard::Quote { let tag = Tag::from_standardized(TagStandard::Quote {
event_id: event.event_id, event_id: event.event_id,
relay_url, relay_url,

View File

@ -475,7 +475,7 @@ fn main() {
Kind::Repost, Kind::Repost,
Kind::Reaction, Kind::Reaction,
Kind::ZapReceipt, Kind::ZapReceipt,
Kind::Custom(1111), Kind::Comment,
]) ])
.since(Timestamp::now()); .since(Timestamp::now());
@ -603,7 +603,7 @@ fn send_event_notification(event: &Event, author: Metadata, handle: &tauri::AppH
if let Err(e) = handle if let Err(e) = handle
.notification() .notification()
.builder() .builder()
.body("Mentioned you in a thread.") .body("You're mentioned in a thread.")
.title(author.display_name.unwrap_or_else(|| "Lume".to_string())) .title(author.display_name.unwrap_or_else(|| "Lume".to_string()))
.show() .show()
{ {
@ -614,7 +614,7 @@ fn send_event_notification(event: &Event, author: Metadata, handle: &tauri::AppH
if let Err(e) = handle if let Err(e) = handle
.notification() .notification()
.builder() .builder()
.body("Reposted your note.") .body("Your note has been reposted.")
.title(author.display_name.unwrap_or_else(|| "Lume".to_string())) .title(author.display_name.unwrap_or_else(|| "Lume".to_string()))
.show() .show()
{ {
@ -625,7 +625,7 @@ fn send_event_notification(event: &Event, author: Metadata, handle: &tauri::AppH
if let Err(e) = handle if let Err(e) = handle
.notification() .notification()
.builder() .builder()
.body("Zapped you.") .body("You've received zap.")
.title(author.display_name.unwrap_or_else(|| "Lume".to_string())) .title(author.display_name.unwrap_or_else(|| "Lume".to_string()))
.show() .show()
{ {