Skip to content

Commit c3c46e4

Browse files
committed
refactor(api, blocking)!: add generic Client trait, apply it to blocking
1 parent 53db518 commit c3c46e4

File tree

4 files changed

+551
-206
lines changed

4 files changed

+551
-206
lines changed

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ hex = { package = "hex-conservative", version = "0.2" }
2323
log = "^0.4"
2424
minreq = { version = "2.11.0", features = ["json-using-serde"], optional = true }
2525
reqwest = { version = "0.11", optional = true, default-features = false, features = ["json"] }
26+
serde_json = { version = "1.0.127" }
2627

2728
[dev-dependencies]
2829
serde_json = "1.0"
@@ -31,7 +32,7 @@ electrsd = { version = "0.28.0", features = ["legacy", "esplora_a33e97e1", "bitc
3132
lazy_static = "1.4.0"
3233

3334
[features]
34-
default = ["blocking", "async", "async-https"]
35+
default = ["blocking", "blocking-https", "async", "async-https"]
3536
blocking = ["minreq", "minreq/proxy"]
3637
blocking-https = ["blocking", "minreq/https"]
3738
blocking-https-rustls = ["blocking", "minreq/https-rustls"]

0 commit comments

Comments
 (0)