Skip to content

Commit

Permalink
refactor(api, blocking)!: add generic Client trait, apply it to blo…
Browse files Browse the repository at this point in the history
…cking
  • Loading branch information
oleonardolima committed Sep 15, 2024
1 parent 53db518 commit 017a0cc
Show file tree
Hide file tree
Showing 4 changed files with 738 additions and 174 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ hex = { package = "hex-conservative", version = "0.2" }
log = "^0.4"
minreq = { version = "2.11.0", features = ["json-using-serde"], optional = true }
reqwest = { version = "0.11", optional = true, default-features = false, features = ["json"] }
serde_json = { version = "1.0.127" }

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

[features]
default = ["blocking", "async", "async-https"]
default = ["blocking", "blocking-https", "async", "async-https"]
blocking = ["minreq", "minreq/proxy"]
blocking-https = ["blocking", "minreq/https"]
blocking-https-rustls = ["blocking", "minreq/https-rustls"]
Expand Down
Loading

0 comments on commit 017a0cc

Please sign in to comment.