Skip to content

Commit 16ccbb5

Browse files
committed
deps: gate async-std behind async feature
1 parent e50ce73 commit 16ccbb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ name = "esplora_client"
1717
path = "src/lib.rs"
1818

1919
[dependencies]
20-
async-std = "1.13.0"
2120
serde = { version = "1.0", features = ["derive"] }
2221
bitcoin = { version = "0.32", features = ["serde", "std"], default-features = false }
2322
hex = { version = "0.2", package = "hex-conservative" }
2423
log = "^0.4"
2524
minreq = { version = "2.11.0", features = ["json-using-serde"], optional = true }
2625
reqwest = { version = "0.11", features = ["json"], default-features = false, optional = true }
26+
async-std = { version = "1.13.0", optional = true }
2727

2828
[dev-dependencies]
2929
serde_json = "1.0"
@@ -38,7 +38,7 @@ blocking-https = ["blocking", "minreq/https"]
3838
blocking-https-rustls = ["blocking", "minreq/https-rustls"]
3939
blocking-https-native = ["blocking", "minreq/https-native"]
4040
blocking-https-bundled = ["blocking", "minreq/https-bundled"]
41-
async = ["reqwest", "reqwest/socks"]
41+
async = ["async-std", "reqwest", "reqwest/socks"]
4242
async-https = ["async", "reqwest/default-tls"]
4343
async-https-native = ["async", "reqwest/native-tls"]
4444
async-https-rustls = ["async", "reqwest/rustls-tls"]

0 commit comments

Comments
 (0)