-
-
Notifications
You must be signed in to change notification settings - Fork 116
/
Copy pathCargo.toml
109 lines (88 loc) · 2.36 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
[package]
name = "nostr-sdk"
version = "0.40.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 = []
tor = ["nostr-relay-pool/tor"]
lmdb = ["dep:nostr-lmdb"]
ndb = ["dep:nostr-ndb"]
indexeddb = ["dep:nostr-indexeddb"]
all-nips = ["nostr/all-nips", "nip04", "nip05", "nip06", "nip07", "nip11", "nip44", "nip47", "nip49", "nip57", "nip59", "nip96", "nip98"]
nip03 = ["nostr/nip03"]
nip04 = ["nostr/nip04"]
nip05 = ["nostr/nip05"]
nip06 = ["nostr/nip06"]
nip07 = ["nostr/nip07"]
nip11 = ["nostr/nip11", "nostr-relay-pool/nip11"]
nip44 = ["nostr/nip44"]
nip47 = ["nostr/nip47"]
nip49 = ["nostr/nip49"]
nip57 = ["nostr/nip57"]
nip59 = ["nostr/nip59"]
nip96 = ["nostr/nip96"]
nip98 = ["nostr/nip98"]
[dependencies]
async-utility.workspace = true
nostr = { workspace = true, features = ["std"] }
nostr-database.workspace = true
nostr-relay-pool.workspace = true
tokio = { workspace = true, features = ["sync"] }
tracing = { workspace = true, features = ["std", "attributes"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
nostr-lmdb = { workspace = true, optional = true }
nostr-ndb = { workspace = true, optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
nostr-indexeddb = { workspace = true, optional = true }
[dev-dependencies]
nostr-connect.workspace = true
tokio = { workspace = true, features = ["macros"] }
tracing-subscriber = { workspace = true, features = ["env-filter"] }
[[example]]
name = "aggregated-query"
required-features = ["lmdb"]
[[example]]
name = "blacklist"
[[example]]
name = "client"
[[example]]
name = "comment"
[[example]]
name = "fetch-events"
[[example]]
name = "gossip"
required-features = ["all-nips"]
[[example]]
name = "nostr-connect"
required-features = ["nip59"]
[[example]]
name = "bot"
required-features = ["all-nips"]
[[example]]
name = "nostrdb"
required-features = ["ndb"]
[[example]]
name = "stream-events"
[[example]]
name = "subscriptions"
[[example]]
name = "switch-account"
[[example]]
name = "tor"
required-features = ["nip59", "tor"]
[[example]]
name = "lmdb"
required-features = ["lmdb"]
[[example]]
name = "whitelist"