feat: use nostrdb for unix and rocksdb for windows

This commit is contained in:
reya
2024-06-02 08:16:59 +07:00
parent 1738cbdd97
commit 38d6c51921
4 changed files with 230 additions and 111 deletions

View File

@@ -5,13 +5,14 @@ description = "nostr client"
authors = ["npub1zfss807aer0j26mwp2la0ume0jqde3823rmu97ra6sgyyg956e0s6xw445"]
repository = "https://github.com/lumehq/lume"
edition = "2021"
rust-version = "1.68"
rust-version = "1.70"
[build-dependencies]
tauri-build = { version = "2.0.0-beta", features = [] }
[dependencies]
nostr-sdk = { version = "0.31", features = ["sqlite"] }
nostr-rocksdb = "^0.31"
nostr-sdk = { version = "0.31", features = ["ndb", "rocksdb"] }
tokio = { version = "1", features = ["full"] }
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
@@ -42,6 +43,9 @@ tauri-specta = { git = "https://github.com/cloudcad/tauri-specta", branch = "mai
] }
tauri-plugin-theme = "0.4.1"
[target.'cfg(target_family = "unix")'.dependencies]
nostr-ndb = "^0.31"
[target.'cfg(target_os = "macos")'.dependencies]
cocoa = "0.25.0"
objc = "0.2.7"