You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[dependencies]
base64 = "0.22.1"
tonic = "0.11.0"
bytes = "1.6.0"
prost-derive = "0.12.6"
prost = "0.12.6"
tokio = { version = "1.38.0", features = ["macros", "rt-multi-thread"] }
hyper-util = { version = "0.1.5", features = ["tokio"] }
tower = "0.4.13"
vaultrs = "0.7.1"
tokio-stream = { version = "0.1.15", features = ["net"]}
[build-dependencies]
tonic-build = "0.11.0"
Platform
64-bit Ubuntu 22.04.4 LTS
Description
When copy pasting the example found here the code does not compile, resulting in the following error:
error[E0277]: the trait bound `tokio::net::UnixStream: hyper::rt::io::Read` is not satisfied
--> src/utilities/socket.rs:23:6
|
23 | .connect_with_connector(service_fn(|_| async {
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `hyper::rt::io::Read` is not implemented for `tokio::net::UnixStream`, which is required by `ServiceFn<{closure@src/utilities/socket.rs:23:40: 23:43}>: MakeConnection<Uri>`
|
= help: the following other types implement trait `hyper::rt::io::Read`:
TokioIo<T>
Box<T>
hyper::upgrade::Upgraded
Pin<P>
&mut T
= note: required for `TokioIo<tokio::net::UnixStream>` to implement `AsyncRead`
= note: required for `ServiceFn<{closure@src/utilities/socket.rs:23:40: 23:43}>` to implement `MakeConnection<Uri>`
The text was updated successfully, but these errors were encountered:
The example code link above is from recent master branch, after the hyper 1 migration. That it doesn't work with tokio 0.11 is intentional: the current state of the master branch reflects the current development state.
Bug Report
The current "uds" example does not compile
Version
All my dependencies
Platform
64-bit Ubuntu 22.04.4 LTS
Description
When copy pasting the example found here the code does not compile, resulting in the following error:
The text was updated successfully, but these errors were encountered: