forked from rust-nostr/nostr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
102 lines (83 loc) · 2.48 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
[package]
name = "nostr-sdk"
version = "0.25.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 = "1.64.0"
keywords = ["nostr", "sdk"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = ["all-nips"]
blocking = ["async-utility/blocking", "nostr/blocking"]
rocksdb = ["dep:nostr-rocksdb"]
sqlite = ["dep:nostr-sqlite"]
indexeddb = ["dep:nostr-indexeddb"]
all-nips = ["nip04", "nip05", "nip06", "nip11", "nip46", "nip47"]
nip03 = ["nostr/nip03"]
nip04 = ["nostr/nip04"]
nip05 = ["nostr/nip05"]
nip06 = ["nostr/nip06"]
nip11 = ["nostr/nip11"]
nip44 = ["nostr/nip44"]
nip46 = ["nostr/nip46"]
nip47 = ["nostr/nip47"]
[dependencies]
async-utility = "0.1"
nostr = { workspace = true, features = ["std"] }
nostr-database = { workspace = true }
nostr-sdk-net = { version = "0.25", path = "../nostr-sdk-net" }
once_cell = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true, features = ["std"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
nostr-rocksdb = { version = "0.1", path = "../nostr-rocksdb", optional = true }
nostr-sqlite = { version = "0.1", path = "../nostr-sqlite", optional = true }
tokio = { workspace = true, features = ["rt-multi-thread", "time", "macros", "sync"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
nostr-indexeddb = { version = "0.1", path = "../nostr-indexeddb", 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 = "blocking"
required-features = ["all-nips", "blocking"]
[[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 = "nip65"