stepancheg / grpc-rust

Rust implementation of gRPC
MIT License
1.38k stars 125 forks source link

examples compile error #155

Open zsluedem opened 5 years ago

zsluedem commented 5 years ago

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`.
najcit commented 4 years ago

me,too

fabiotatsuo commented 4 years ago

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.*"