Skip to content

Commit

Permalink
feature(http-client): add async-std compat layer and hyper connector (#…
Browse files Browse the repository at this point in the history
…215)

Part 1 of the `mini-http-client` implementation.

This PR updates some dependencies and adds the `async-std` and `hyper` compatibility building blocks.
  • Loading branch information
matheus-consoli committed Oct 17, 2023
1 parent 088ecbe commit ef5d418
Show file tree
Hide file tree
Showing 5 changed files with 293 additions and 10 deletions.
144 changes: 139 additions & 5 deletions Cargo.lock

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

19 changes: 14 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fluvio-future"
version = "0.6.0"
version = "0.6.1"
edition = "2021"
authors = ["Fluvio Contributors <[email protected]>"]
description = "I/O futures for Fluvio project"
Expand Down Expand Up @@ -49,6 +49,13 @@ zero_copy = ["nix", "task_unstable"]
mmap = ["fs", "memmap2", "task_unstable"]
retry = []
doomsday = ["task", "sync"]
http-client = [
"rust_tls",
"async-std/default",
"dep:tokio",
"dep:hyper",
"dep:anyhow",
]

[dependencies]
log = "0.4.0"
Expand All @@ -62,19 +69,22 @@ tracing-subscriber = { version = "0.3.9", optional = true }
bytes = { version = "1.0.0", optional = true }
async-trait = { version = "0.1.40", optional = true }
cfg-if = { version = "1.0.0", optional = true }
tokio = { version = "1.33.0", default-features = false, optional = true }
hyper = { version = "0.14.27", default-features = false, features = ["client", "http1", "http2"], optional = true }
anyhow = { version = "1.0.75", optional = true }
thiserror = "1.0.20"

fluvio-test-derive = { path = "async-test-derive", version = "0.1.1", optional = true }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
async-std = { version = "1.6.2", default-features = false, optional = true }
async-std = { version = "1.12.0", default-features = false, optional = true }
async-io = { version = "1.1.2", optional = true }
async-net = { version = "1.6.0", optional = true }
memmap2 = { version = "0.5", optional = true }
openssl = { version = "0.10.35", optional = true }
async-native-tls = { version = "0.4.0", optional = true }
native-tls = { version = "0.2.4", optional = true }
async-rustls = { version = "0.4.0",features = ["dangerous_configuration"], optional = true }
async-rustls = { version = "0.4.1", features = ["dangerous_configuration"], optional = true }
rustls-pemfile = { version = "1.0.0", optional = true }
openssl-sys = { version = "0.9.65", optional = true, features = ["vendored"]}
nix = { version = "0.26.0", optional = true }
Expand All @@ -83,7 +93,7 @@ socket2 = { version = "0.5.3", default-features = false, features = ["all"], opt

[target.'cfg(target_arch = "wasm32")'.dependencies]
fluvio-wasm-timer = "0.2.5"
async-std = { version = "1.6.2", default-features = false, features = ["unstable"], optional = true }
async-std = { version = "1.12.0", default-features = false, features = ["unstable"], optional = true }
ws_stream_wasm = "0.7.3"

[dev-dependencies]
Expand All @@ -98,7 +108,6 @@ flv-util = { version = "0.5.0", features = ["fixture"] }
fluvio-test-derive = { path = "async-test-derive", version = "0.1.0" }
fluvio-future = { path = ".", features = ["net", "fixture", "timer", "fs", "retry"] }


[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
portpicker = "0.1.1"

Expand Down
Loading

0 comments on commit ef5d418

Please sign in to comment.