Skip to content

Commit

Permalink
refactor(blocking): replace ureq with minreq
Browse files Browse the repository at this point in the history
  • Loading branch information
notmandatory authored and zoedberg committed Sep 12, 2024
1 parent 6d9f630 commit a6d323c
Show file tree
Hide file tree
Showing 6 changed files with 312 additions and 341 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cont_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
features:
- default
- blocking
- blocking-https
- blocking-https-rustls
- blocking-https-native
- blocking-https-bundled
- async
- async-https
- async-https-native
Expand Down
172 changes: 86 additions & 86 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,18 @@ bp-std = { version = "0.11.0-beta.8", features = ["serde"] }
serde = { version = "1.0", features = ["derive"] }
serde_with = { version = "3.9", features = ["hex"] }
log = "^0.4"
ureq = { version = "2.10.1", features = ["json"], optional = true }
minreq = { version = "2.11.0", features = ["json-using-serde"], optional = true }
reqwest = { version = "0.12.5", optional = true, default-features = false, features = ["json"] }

[features]
default = ["blocking", "async", "async-https"]
all = ["blocking"]
blocking = ["ureq", "ureq/socks-proxy"]
blocking = ["minreq", "minreq/proxy"]
blocking-https = ["blocking", "minreq/https"]
blocking-https-rustls = ["blocking", "minreq/https-rustls"]
blocking-https-rustls-manual-roots = ["blocking", "minreq/https-rustls", "reqwest/rustls-tls-manual-roots"]
blocking-https-native = ["blocking", "minreq/https-native"]
blocking-https-bundled = ["blocking", "minreq/https-bundled"]
async = ["reqwest", "reqwest/socks"]
async-https = ["async", "reqwest/default-tls"]
async-https-native = ["async", "reqwest/native-tls"]
Expand Down
Loading

0 comments on commit a6d323c

Please sign in to comment.