grpc-rust
grpc-rust copied to clipboard
examples compile error
build failed in both examples.
error[E0277]: the trait bound `T: tls_api::TlsConnector` is not satisfied
--> grpc/src/client/mod.rs:50:13
|
50 | Explict(ClientTlsOption<T>),
| ^^^^^^^^^^^^^^^^^^ the trait `tls_api::TlsConnector` is not implemented for `T`
|
= help: consider adding a `where T: tls_api::TlsConnector` bound
= note: required by `httpbis::ClientTlsOption`
error[E0277]: the trait bound `A: tls_api::TlsAcceptor` is not satisfied
--> grpc/src/server/mod.rs:77:5
|
77 | pub http: httpbis::ServerBuilder<A>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `tls_api::TlsAcceptor` is not implemented for `A`
|
= help: consider adding a `where A: tls_api::TlsAcceptor` bound
= note: required by `httpbis::ServerBuilder`
error[E0277]: the trait bound `TLS: tls_api::TlsConnector` is not satisfied
--> grpc/src/client/mod.rs:144:5
|
144 | / pub fn explicit_tls<TLS: tls_api::TlsConnector>(
145 | | self,
146 | | tls: ClientTlsOption<TLS>,
147 | | ) -> ClientBuilder<'a, TLS> {
... |
154 | | }
155 | | }
| |_____^ the trait `tls_api::TlsConnector` is not implemented for `TLS`
|
= help: consider adding a `where TLS: tls_api::TlsConnector` bound
= note: required by `httpbis::ClientTlsOption`
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0277`.
error: Could not compile `grpc`.
me,too
got this trying to run examples.
this pull https://github.com/stepancheg/grpc-rust/pulls helps.
update tls versions
tls-api = "0.2.*"
tls-api-native-tls = "0.2.*"