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

Failing to compile on Linux (OpenVZ) "use of unstable library feature 'io_error_other'" #747

Closed
NexRX opened this issue Feb 9, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@NexRX
Copy link
Contributor

NexRX commented Feb 9, 2024

Expected Behavior

Succesfull compile

Actual Behavior

Fails to compile

   Compiling poem-openapi-derive v4.0.0
error[E0658]: use of unstable library feature 'io_error_other'
   --> /home/nex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/poem-2.0.0/src/request.rs:135:37
    |
135 |             body: Body(body.map_err(Error::other).boxed()),
    |                                     ^^^^^^^^^^^^
    |
    = note: see issue #91946 <https://github.com/rust-lang/rust/issues/91946> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `poem` (lib) due to previous error

Steps to Reproduce the Problem

  1. Install Cargo on Ubuntu 22.04 host via OpenVZ
  2. clone any project that depends on poem directly or indirectly.
  3. run cargo build with or without --release

Specifications

  • Version: 2.0.0
  • Platform: Linux Ubuntu 22.04 (OpenVZ)
  • Subsystem: poem
@NexRX NexRX added the bug Something isn't working label Feb 9, 2024
@NexRX
Copy link
Contributor Author

NexRX commented Feb 9, 2024

I'm not really exactly sure why this is happening but it seems to be linked with #735 since it mentions the issue in the log

@NexRX
Copy link
Contributor Author

NexRX commented Feb 10, 2024

Totally my fault here, I set rust-version = "1.74" in my cargo.toml and tried to compile on my VPS. This lead me to find out my rust install was broken with two different installs causing version issues. Basically I had a rust version lower than 1.74.

@NexRX NexRX closed this as completed Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant