chore: update deps

This commit is contained in:
2024-10-10 09:05:49 +07:00
parent 3d33767520
commit 978d1e953b
7 changed files with 1199 additions and 1420 deletions

1582
src-tauri/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -10,41 +10,42 @@ rust-version = "1.70"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
tauri-build = { version = "2.0.0-rc", features = [] }
tauri-build = { version = "2.0.0", features = [] }
[dependencies]
nostr-sdk = { git = "https://github.com/rust-nostr/nostr", features = [
"lmdb",
] }
tauri = { version = "2.0.0-rc", features = [
tauri = { version = "2.0.0", features = [
"tray-icon",
"macos-private-api",
"protocol-asset",
] }
tauri-specta = { version = "2.0.0-rc", features = ["derive", "typescript"] }
tauri-plugin-devtools = "2.0.0-rc"
tauri-plugin-prevent-default = "0.4"
tauri-plugin-os = "2.0.0-rc"
tauri-plugin-clipboard-manager = "2.0.0-rc"
tauri-plugin-dialog = "2.0.0-rc"
tauri-plugin-shell = "2.0.0-rc"
tauri-plugin-updater = "2.0.0-rc"
tauri-plugin-process = "2.0.0-rc"
tauri-plugin-fs = "2.0.0-rc"
tauri-plugin-notification = "2.0.0-rc"
tauri-plugin-os = "2.0.0"
tauri-plugin-clipboard-manager = "2.0.0"
tauri-plugin-dialog = "2.0.0"
tauri-plugin-shell = "2.0.0"
tauri-plugin-updater = "2.0.0"
tauri-plugin-process = "2.0.0"
tauri-plugin-fs = "2.0.0"
tauri-plugin-notification = "2.0.0"
tauri-plugin-decorum = "1.1.0"
tauri-specta = { version = "2.0.0-rc", features = ["derive", "typescript"] }
specta = "^2.0.0-rc.20"
specta-typescript = "0.0.7"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
itertools = "0.13.0"
futures = "0.3.30"
keyring-search = "1.2.0"
keyring = { version = "3", features = [
"apple-native",
"windows-native",
"linux-native",
] }
keyring-search = "1.2.0"
itertools = "0.13.0"
futures = "0.3.30"
specta = "^2.0.0-rc.20"
specta-typescript = "0.0.7"
[target.'cfg(target_os = "macos")'.dependencies]
border = { git = "https://github.com/ahkohd/tauri-toolkit", branch = "v2" }

View File

@@ -159,7 +159,7 @@ pub async fn connect_account(uri: String, state: State<'_, Nostr>) -> Result<Str
let remote_user = bunker_uri.signer_public_key().unwrap();
let remote_npub = remote_user.to_bech32().unwrap();
match Nip46Signer::new(bunker_uri, app_keys, Duration::from_secs(120), None).await {
match Nip46Signer::new(bunker_uri, app_keys, Duration::from_secs(120), None) {
Ok(signer) => {
let mut url = Url::parse(&uri).unwrap();
let query: Vec<(String, String)> = url
@@ -268,7 +268,7 @@ pub async fn login(
let public_key = uri.signer_public_key().unwrap();
let app_keys = Keys::from_str(&account.password).map_err(|e| e.to_string())?;
match Nip46Signer::new(uri, app_keys, Duration::from_secs(120), None).await {
match Nip46Signer::new(uri, app_keys, Duration::from_secs(120), None) {
Ok(signer) => {
// Update signer
client.set_signer(Some(signer.into())).await;

View File

@@ -142,7 +142,7 @@ pub async fn connect_inbox_relays(
let mut relays = Vec::new();
if let Some(event) = events.into_iter().next() {
for tag in &event.tags {
for tag in event.tags.iter() {
if let Some(TagStandard::Relay(relay)) = tag.as_standardized() {
let url = relay.to_string();

View File

@@ -60,13 +60,7 @@ fn main() {
.export(Typescript::default(), "../src/commands.ts")
.expect("Failed to export typescript bindings");
#[cfg(debug_assertions)]
let tauri_builder = tauri::Builder::default().plugin(tauri_plugin_devtools::init());
#[cfg(not(debug_assertions))]
let tauri_builder = tauri::Builder::default();
tauri_builder
tauri::Builder::default()
.invoke_handler(builder.invoke_handler())
.setup(move |app| {
// This is also required if you want to use events