-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
44 lines (39 loc) · 1.44 KB
/
Cargo.toml
File metadata and controls
44 lines (39 loc) · 1.44 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
[package]
name = "mempoolspace"
version = "0.2.0"
edition = "2024"
description = "A Rust client library for interacting with the Mempool Space APIs."
authors = ["Yuki Kishimoto <yukikishimoto@protonmail.com>"]
homepage = "https://github.com/shadowylab/mempool"
repository = "https://github.com/shadowylab/mempool.git"
license = "MIT"
readme = "README.md"
keywords = ["bitcoin", "mempool"]
[features]
# Default features
default = ["rustls", "ws"]
# Enable rust TLS
rustls = ["reqwest/rustls-tls"]
# Enable natile TLS (openssl)
nativetls = ["reqwest/native-tls"]
# Enable socks proxy
socks = ["reqwest/socks"]
# Enable WebSocket client
ws = ["dep:futures-util", "dep:serde_json", "dep:tokio", "dep:tokio-tungstenite", "dep:tracing"]
[dependencies]
bitcoin = { version = "0.32", default-features = false, features = ["std", "serde"] }
reqwest = { version = "0.12", default-features = false, features = ["json"] }
serde = { version = "1.0", features = ["derive"] }
url = "2.5"
# WebSocket
futures-util = { version = "0.3", optional = true }
serde_json = { version = "1.0", optional = true }
tokio = { version = "1", features = ["sync", "time"], optional = true }
tokio-tungstenite = { version = "0.27", features = ["rustls-tls-webpki-roots"], optional = true }
tracing = { version = "0.1", optional = true }
[dev-dependencies]
serde_json = "1.0"
tokio = { version = "1.46", features = ["macros", "rt-multi-thread"] }
[[example]]
name = "mempool"
required-features = ["ws"]