forked from rust-nostr/nostr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
116 lines (96 loc) · 3.1 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[package]
name = "nostr-sdk"
version = "0.29.0"
edition = "2021"
description = "High level Nostr client library."
authors.workspace = true
homepage.workspace = true
repository.workspace = true
license.workspace = true
readme = "README.md"
rust-version.workspace = true
keywords = ["nostr", "sdk"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = ["all-nips"]
blocking = ["dep:once_cell", "nostr/blocking"]
rocksdb = ["dep:nostr-rocksdb"]
sqlite = ["dep:nostr-sqlite"]
indexeddb = ["dep:nostr-indexeddb"]
webln = ["nip57", "dep:nostr-webln"]
all-nips = ["nip04", "nip05", "nip06", "nip07", "nip11", "nip44", "nip46", "nip47", "nip49", "nip57", "nip59"]
nip03 = ["nostr/nip03"]
nip04 = ["nostr/nip04", "nostr-signer/nip04"]
nip05 = ["nostr/nip05"]
nip06 = ["nostr/nip06"]
nip07 = ["nostr/nip07", "nostr-signer/nip07"]
nip11 = ["nostr/nip11", "nostr-relay-pool/nip11"]
nip44 = ["nostr/nip44", "nostr-signer/nip44"]
nip46 = ["nostr/nip46", "nostr-signer/nip46"]
nip47 = ["nostr/nip47", "dep:nwc"]
nip49 = ["nostr/nip49"]
nip57 = ["nostr/nip57", "dep:nostr-zapper", "dep:lnurl-pay"]
nip59 = ["nostr/nip59"]
[dependencies]
async-utility.workspace = true
lnurl-pay = { version = "0.5", features = ["api"], optional = true }
nostr = { workspace = true, features = ["std"] }
nostr-database.workspace = true
nostr-relay-pool.workspace = true
nostr-signer.workspace = true
nostr-zapper = { workspace = true, optional = true }
nwc = { version = "0.29", path = "../nwc", optional = true }
once_cell = { workspace = true, optional = true }
thiserror.workspace = true
tracing = { workspace = true, features = ["std", "attributes"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
nostr-rocksdb = { version = "0.29", path = "../nostr-rocksdb", optional = true }
nostr-sqlite = { version = "0.29", path = "../nostr-sqlite", optional = true }
tokio = { workspace = true, features = ["rt-multi-thread", "macros", "sync"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
nostr-indexeddb = { version = "0.29", path = "../nostr-indexeddb", optional = true }
nostr-webln = { version = "0.29", path = "../nostr-webln", optional = true }
tokio = { workspace = true, features = ["rt", "macros", "sync"] }
[dev-dependencies]
tracing-subscriber = { workspace = true, features = ["env-filter"] }
[[example]]
name = "client-with-opts"
required-features = ["all-nips"]
[[example]]
name = "client"
required-features = ["all-nips"]
[[example]]
name = "get-events-of"
required-features = ["all-nips"]
[[example]]
name = "nostr-connect"
required-features = ["nip46"]
[[example]]
name = "bot"
required-features = ["all-nips"]
[[example]]
name = "client-stop"
required-features = ["all-nips"]
[[example]]
name = "rocksdb"
required-features = ["all-nips", "rocksdb"]
[[example]]
name = "shutdown-on-drop"
[[example]]
name = "sqlite"
required-features = ["all-nips", "sqlite"]
[[example]]
name = "subscriptions"
required-features = ["all-nips"]
[[example]]
name = "negentropy"
[[example]]
name = "nip47"
required-features = ["nip47"]
[[example]]
name = "nip65"
[[example]]
name = "zapper"
required-features = ["nip47", "nip57"]