-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathCargo.toml
41 lines (38 loc) · 1.51 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
[package]
name = "nostr_rust"
description = "A Rust implementation of the Nostr protocol"
documentation = "https://docs.rs/nostr_rust"
readme = "README.md"
repository = "https://github.com/0xtlt/nostr_rust"
keywords = ["nostr", "rust", "protocol", "encryption", "decryption"]
categories = ["api-bindings"]
license = "MIT"
authors = ["Thomas Tastet"]
version = "0.20.3"
edition = "2021"
[features]
# Sync by default
default = ["sync"]
async = ["futures", "tokio", "futures-util"]
sync = ["reqwest/blocking"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde_json = { version = "1", default-features = false, features = ["std"] }
serde = { version = "1", default-features = false, features = ["derive"] }
serde_derive = "1"
sha256 = "1"
hex = "0.4"
bech32 = "0.9"
rand = "0.8"
secp256k1 = { version = "0.26", features = ["bitcoin_hashes", "global-context", "rand-std"] }
tungstenite = { version = "0.18", default-features = false, features = ["handshake", "rustls-tls-webpki-roots"] }
tokio-tungstenite = { version = "0.18", default-features = true, features = ["handshake", "rustls-tls-webpki-roots"] }
url = "2.3"
base64 = "0.21"
aes = "0.8"
cbc = { version = "0.1", features = ["alloc"] }
thiserror = "1"
reqwest = { version = "0.11", default-features = false, features = ["json", "rustls-tls-webpki-roots"] }
tokio = { version = "1.24", optional = true, features = ["macros"] }
futures-util = { version = "0.3", optional = true }
futures = { version = "0.3", optional = true }