LukeMathWalker / wiremock-rs

HTTP mocking to test Rust applications.
Apache License 2.0
617 stars 70 forks source link

wiremock 0.4.4 compiler errors related to hyper #53

Closed Ploppz closed 3 years ago

Ploppz commented 3 years ago

wiremock = "0.4" in Cargo.toml. Not in dev-dependencies but in dependencies.

error[E0433]: failed to resolve: could not find `Server` in `hyper`
  --> /home/ploppz/.cargo/registry/src/github.com-1ecc6299db9ec823/wiremock-0.4.4/src/mock_server/hyper.rs:34:25
   |
34 |     let server = hyper::Server::from_tcp(listener)
   |                         ^^^^^^ could not find `Server` in `hyper`

error[E0433]: failed to resolve: could not find `rt` in `hyper`
  --> /home/ploppz/.cargo/registry/src/github.com-1ecc6299db9ec823/wiremock-0.4.4/src/mock_server/hyper.rs:54:16
   |
54 | impl<F> hyper::rt::Executor<F> for LocalExec
   |                ^^ could not find `rt` in `hyper`
LukeMathWalker commented 3 years ago

Can you use the latest version, instead of 0.4.4?

Ploppz commented 3 years ago

Hm.. I would have expected it to pick the latest with "0.4". Well, 0.4.9 works well, thanks!