feat: add basic nostr connection

This commit is contained in:
2024-02-02 09:09:14 +07:00
parent e8bd48e51b
commit fd393a4d30
4 changed files with 175 additions and 789 deletions

View File

@@ -1,9 +1,8 @@
[package]
name = "lume"
version = "3.0.0"
description = "the communication app"
authors = ["Ren Amamiya"]
license = "GPL-3.0"
description = "nostr client"
authors = ["npub1zfss807aer0j26mwp2la0ume0jqde3823rmu97ra6sgyyg956e0s6xw445"]
repository = "https://github.com/lumehq/lume"
edition = "2021"
rust-version = "1.70"
@@ -14,10 +13,12 @@ tauri-build = { version = "2.0.0-alpha", features = [] }
[dependencies]
nostr = "0.27"
nostr-sdk = "0.27"
nostr-sqlite = "0.27"
tokio = { version = "1", features = ["full"] }
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "2.0.0-alpha", features = [ "tray-icon",
tauri = { version = "2.0.0-alpha", features = [
"tray-icon",
"macos-private-api",
"native-tls-vendored",
"protocol-asset",
@@ -37,19 +38,15 @@ tauri-plugin-store = "2.0.0-alpha"
tauri-plugin-upload = "2.0.0-alpha"
tauri-plugin-window-state = "2.0.0-alpha"
tauri-plugin-theme = { git = "https://github.com/wyhaya/tauri-plugin-theme" }
tauri-plugin-sql = {version="2.0.0-alpha", features = [
"sqlite",
] }
sqlx-cli = { version = "0.7.0", default-features = false, features = [
"sqlite",
] }
webpage = { version = "2.0", features = ["serde"] }
[target.'cfg(not(target_os = "linux"))'.dependencies]
keyring = "2"
[target.'cfg(target_os = "linux")'.dependencies]
keyring = { version = "2", default_features = false, features = ["linux-secret-service"] }
keyring = { version = "2", default_features = false, features = [
"linux-secret-service",
] }
[features]
# by default Tauri runs in production mode