Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

examples compile error #155

Open
zsluedem opened this issue Jul 19, 2019 · 2 comments
Open

examples compile error #155

zsluedem opened this issue Jul 19, 2019 · 2 comments

Comments

@zsluedem
Copy link

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
Copy link

najcit commented Aug 15, 2019

me,too

@fabiotatsuo
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants