fff icon indicating copy to clipboard operation
fff copied to clipboard

Getting cargo build error on compilation

Open rez1-dev opened this issue 1 year ago • 2 comments

Lazy.nvim threw a big error. Why do we need rust nightly build? I don't understand

   Compiling libssh2-sys v0.3.1
   Compiling openssl-sys v0.9.109
   Compiling openssl v0.10.73
   Compiling neo_frizbee v0.6.0
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/rez1/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/neo_frizbee-0.6.0/src/lib.rs:2:1
  |
2 | #![feature(avx512_target_feature)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/rez1/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/neo_frizbee-0.6.0/src/lib.rs:3:1
  |
3 | #![feature(portable_simd)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/rez1/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/neo_frizbee-0.6.0/src/lib.rs:4:1
  |
4 | #![feature(get_mut_unchecked)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `neo_frizbee` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...

rez1-dev avatar Aug 12 '25 15:08 rez1-dev

You have to make sure that your rust is installed through rustup. Check which cargo and if it comes from the package manager remove it and install via rustup

dmtrKovalenko avatar Aug 13 '25 22:08 dmtrKovalenko

Rust in my Linux distro is in the /usr/bin/ folder, not from package manager. I installed via rustup. Lazy.nvim couldn't compile due to a timeout. I went ahead and built it manually from Lazy/fff.nvim folder

rez1-dev avatar Aug 13 '25 23:08 rez1-dev