forked from rust-nostr/nostr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
66 lines (56 loc) · 1.79 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[package]
name = "nostr-sdk"
version = "0.21.0"
edition = "2021"
description = "High level Nostr client library."
authors = ["Yuki Kishimoto <[email protected]>"]
homepage.workspace = true
repository.workspace = true
license.workspace = true
readme = "README.md"
rust-version.workspace = true
keywords = ["nostr", "sdk", "rust"]
[features]
default = ["all-nips"]
sqlite = ["dep:nostr-sdk-sqlite"]
blocking = ["dep:once_cell", "nostr/blocking"]
vanity = ["nostr/vanity"]
all-nips = ["nip04", "nip05", "nip06", "nip11", "nip19", "nip46"]
nip03 = ["nostr/nip03"]
nip04 = ["nostr/nip04"]
nip05 = ["nostr/nip05"]
nip06 = ["nostr/nip06"]
nip11 = ["nostr/nip11"]
nip19 = ["nostr/nip19"]
nip46 = ["nostr/nip46"]
[dependencies]
log = "0.4"
nostr = { version = "0.21", path = "../nostr", default-features = false }
nostr-sdk-net = { version = "0.21", path = "../nostr-sdk-net" }
nostr-sdk-sqlite = { version = "0.21", path = "../nostr-sdk-sqlite", optional = true }
once_cell = { version = "1.17", optional = true }
thiserror = "1.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { version = "1", default-features = false, features = ["rt-multi-thread", "time", "macros", "sync"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
gloo-timers = { version = "0.2", features = ["futures"] }
tokio = { version = "1", default-features = false, features = ["rt", "macros", "sync"] }
wasm-bindgen-futures = "0.4"
[dev-dependencies]
env_logger = "0.10"
serde_json = "1.0"
[[example]]
name = "client"
required-features = ["all-nips"]
[[example]]
name = "client-with-opts"
required-features = ["all-nips"]
[[example]]
name = "sqlite"
required-features = ["all-nips", "sqlite"]
[[example]]
name = "blocking"
required-features = ["all-nips", "blocking"]
[[example]]
name = "nostr-connect"
required-features = ["nip46"]