denoland/rusty_v8

error about `read_unaligned is not yet stable as a const fn`

Bylx666 opened this issue · 2 comments

I was building for the example, but got such errors.

error: `read_unaligned` is not yet stable as a const fn
   --> USER_CARGO\v8-0.82.0\src\fast_api.rs:248:14
    |
248 |     unsafe { ptr::read_unaligned(self.data.add(index)) }
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: could not compile `v8` (lib) due to previous error

rustc 1.70.0 (90c541806 2023-05-31)

v8 = "0.82.0"

rusty_v8 requires Rust v1.71.0 to compile correctly. You can check it in https://github.com/denoland/rusty_v8/blob/main/rust-toolchain.toml.

Got alright with the rust nightly version, thanks for your patience.