alexchandel / screenshot-rs

Get a bitmap image of a display in Rust.
The Unlicense
56 stars 25 forks source link

Cargo can't compile v0.0.7 #6

Open luizmlo opened 2 years ago

luizmlo commented 2 years ago

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 commented 7 months ago

I have same trouble.

jezrielbajan commented 6 months ago

same!

jacks0n9 commented 2 months ago

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

jacks0n9 commented 2 months ago

also remove the convert feature from the crate attributes