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

Cargo can't compile v0.0.7 #6

Open
luizmlo opened this issue Dec 20, 2021 · 4 comments
Open

Cargo can't compile v0.0.7 #6

luizmlo opened this issue Dec 20, 2021 · 4 comments

Comments

@luizmlo
Copy link

luizmlo commented Dec 20, 2021

First time trying to use the library and got the following:
After adding screenshot = "0.0.7" to the Cargo.toml file,
I tried running cargo build and this error shows up:

Compiling screenshot v0.0.7
error[E0554]: `#![feature]` may not be used on the stable release channel
  --> [...]\github.com-1ecc6299db9ec823\screenshot-0.0.7\src\lib.rs:15:1
   |
15 | #![feature(core_intrinsics, convert)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `screenshot` due to previous error

This is the rustc explanation for the error:

Feature attributes are only allowed on the nightly release channel. Stable or
beta compilers will not comply.

Erroneous code example:
#![feature(lang_items)] // error: `#![feature]` may not be used on the
                        //        stable release channel

If you need the feature, make sure to use a nightly release of the compiler
(but be warned that the feature may be removed or altered in the future).
@Coaixy
Copy link

Coaixy commented Mar 4, 2024

I have same trouble.

@jezrielbajan
Copy link

same!

@jacks0n9
Copy link

it says it in the error, use a nightly compiler:
rustup default nightly

@jacks0n9
Copy link

also remove the convert feature from the crate attributes

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

4 participants