-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathCargo.toml
More file actions
55 lines (45 loc) · 1.78 KB
/
Cargo.toml
File metadata and controls
55 lines (45 loc) · 1.78 KB
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
[package]
name = "electrum-client"
version = "0.24.1"
authors = ["Alekos Filini <alekos.filini@gmail.com>"]
license = "MIT"
homepage = "https://github.com/bitcoindevkit/rust-electrum-client"
repository = "https://github.com/bitcoindevkit/rust-electrum-client"
documentation = "https://docs.rs/electrum-client/"
description = "Bitcoin Electrum client library. Supports plaintext, TLS and Onion servers."
keywords = ["bitcoin", "electrum"]
readme = "README.md"
rust-version = "1.75.0"
edition = "2021"
# loosely based on https://github.com/evgeniy-scherbina/rust-electrumx-client
[lib]
name = "electrum_client"
path = "src/lib.rs"
[dependencies]
log = "^0.4"
bitcoin = { version = "0.32", features = ["serde"] }
serde = { version = "^1.0", features = ["derive"] }
serde_json = { version = "^1.0" }
# Optional dependencies
openssl = { version = "0.10", optional = true }
rustls = { version = "0.23.21", optional = true, default-features = false }
webpki-roots = { version = "0.25", optional = true }
byteorder = { version = "1.0", optional = true }
[target.'cfg(unix)'.dependencies]
libc = { version = "0.2", optional = true }
[target.'cfg(windows)'.dependencies]
winapi = { version="0.3.9", features=["winsock2"], optional = true }
[features]
default = ["proxy", "rustls"]
proxy = ["byteorder", "winapi", "libc"]
rustls = ["webpki-roots", "dep:rustls", "rustls/default"]
rustls-ring = ["webpki-roots", "dep:rustls", "rustls/ring", "rustls/logging", "rustls/std", "rustls/tls12"]
openssl = ["dep:openssl"]
# Old feature names
use-rustls = ["rustls"]
use-rustls-ring = ["rustls-ring"]
use-openssl = ["openssl"]
# optional dependencies only used in `jwt_dynamic_auth` example
[dev-dependencies]
tokio = { version = "1", features = ["full"] }
bitreq = { version = "0.3.4", features = ["async-https", "json-using-serde"] }