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

Compile issue when installing via cargo method #1271

Closed
t-391 opened this issue Nov 16, 2023 · 2 comments
Closed

Compile issue when installing via cargo method #1271

t-391 opened this issue Nov 16, 2023 · 2 comments

Comments

@t-391
Copy link

t-391 commented Nov 16, 2023

Hello, I attempted to install miniserve using cargo with the following command:

cargo install --locked miniserve

On my Ubuntu server. However, I got a few errors during the build/compile. Here is a snippet. It is repeated in the areas of code where is_terminal gets used:

error[E0658]: use of unstable library feature 'is_terminal'
 --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/miniserve-0.24.0/src/main.rs:1:21
  |
1 | use std::io::{self, IsTerminal, Write};
  |                     ^^^^^^^^^^
  |
  = note: see issue #98070 <https://github.com/rust-lang/rust/issues/98070> for more information

I can of course provide full logs is that would be beneficial. I made sure to get my rust installation fully updated before starting. Do you have any recommendations to troubleshoot?

The related rust support thread seems to have a lot of activity.

@svenstaro
Copy link
Owner

Pretty sure you're using an old version of Rust. If you update this problem should get fixed.

@t-391
Copy link
Author

t-391 commented Nov 17, 2023

Pretty sure you're using an old version of Rust. If you update this problem should get fixed.

Of course you were right. Thank you for your advice. Solved!

@t-391 t-391 closed this as completed Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants