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

error[E0554]: #![feature] may not be used on the stable release channel #5

Open
vhscom opened this issue Jan 13, 2022 · 1 comment
Open

Comments

@vhscom
Copy link

vhscom commented Jan 13, 2022

Ran cargo install gitmoji and got an error:

error[E0554]: `#![feature]` may not be used on the stable release channel
  --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gitmoji-1.0.0/src/main.rs:21:12
   |
21 | #![feature(with_options)]
   |   

I don't want to run the Node one because I don't trust NPM where my command line is concerned.

@vhscom
Copy link
Author

vhscom commented Jan 13, 2022

I read here the above error may be caused because I'm not building using rust nightly. After installing and rebuilding with rust nightly I saw the following error:

error[E0599]: no function or associated item named `with_options` found for struct `File` in the current scope
   --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gitmoji-1.0.0/src/main.rs:253:11
    |
253 |     File::with_options().create(true).write(true).open(GITMOJI_CACHE.clone())?.write_all(emojis.dump().as_bytes())?;
    |           ^^^^^^^^^^^^ function or associated item not found in `File`

error[E0599]: no function or associated item named `with_options` found for struct `File` in the current scope
   --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/gitmoji-1.0.0/src/main.rs:260:11
    |
260 |     File::with_options().read(true).open(GITMOJI_CACHE.clone())?.read_to_string(&mut string)?;
    |           ^^^^^^^^^^^^ function or associated item not found in `File`

Should this software build without using rust nightly? The README seems to imply so.

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

1 participant