0glabs / 0g-da-node

3 stars 2 forks source link

While compiling storage v0.1.0 got an error message #14

Open iamcryptofennec opened 2 months ago

iamcryptofennec commented 2 months ago

image

hubofvalley commented 1 month ago

same problem

error[E0658]: use of unstable library feature 'slice_first_last_chunk' --> storage/src/slice_db.rs:216:45 216 let (cur, rest) = key_slice.split_first_chunk::<8>().unwrap(); ^^^^^^^^^^^^^^^^^
= note: see issue #111774 <https://github.com/rust-lang/rust/issues/111774> for more information
error[E0658]: use of unstable library feature 'slice_first_last_chunk' --> storage/src/slice_db.rs:222:45 222 let (cur, rest) = key_slice.split_first_chunk::<32>().unwrap(); ^^^^^^^^^^^^^^^^^
= note: see issue #111774 <https://github.com/rust-lang/rust/issues/111774> for more information

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

tgross35 commented 1 month ago

I'm here as a driveby comment, seeing this crosslinked at the issue. What version of Rust are you on? split_first_chunk and similar were stabilized in 1.77, so you may just need to rustup update.