Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no http1 in server::conn #3029

Closed
ghost opened this issue Oct 28, 2022 · 1 comment
Closed

no http1 in server::conn #3029

ghost opened this issue Oct 28, 2022 · 1 comment
Labels
C-bug Category: bug. Something is wrong. This is bad!

Comments

@ghost
Copy link

ghost commented Oct 28, 2022

Version
0.14.20

Platform
Linux xornet 5.19.16-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Oct 16 22:50:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Description
The gateaway server example

[dependencies]
hyper = { version = "0.14.20", features = ["full"] }
tokio = { version = "1", features = ["full"] }
pretty_env_logger = "0.4"
futures = "0.3"

Instead when running it i get the error

error[E0432]: unresolved import `hyper::server::conn::http1`
 --> src/main.rs:3:13
  |
3 | use hyper::{server::conn::http1, service::service_fn};
  |             ^^^^^^^^^^^^^^^^^^^ no `http1` in `server::conn`

error[E0433]: failed to resolve: could not find `http1` in `conn`
  --> src/main.rs:47:42
   |
47 |                     hyper::client::conn::http1::handshake(client_stream).await?;
   |                                          ^^^^^ could not find `http1` in `conn`

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `xorproxy` due to 2 previous errors```
@ghost ghost added the C-bug Category: bug. Something is wrong. This is bad! label Oct 28, 2022
@seanmonstar
Copy link
Member

As mentioned in the README, the master branch has breaking changes. If you want to use 0.14.x, you see the relevant branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug. Something is wrong. This is bad!
Projects
None yet
Development

No branches or pull requests

1 participant