denoland / rusty_v8

Rust bindings for the V8 JavaScript engine
https://crates.io/crates/v8
MIT License
3.13k stars 305 forks source link

could build 'v8' #1631

Closed frezyn closed 3 hours ago

frezyn commented 4 hours ago

when i try build file, i recived this error.:

  Compiling v8 v0.106.0
error[E0658]: inline-const is experimental
   --> /Users/frezyn/.cargo/registry/src/index.crates.io-6f17d22bba15001f/v8-0.106.0/src/object.rs:772:5
    |
772 |     const {
    |     ^^^^^
    |
    = note: see issue #76001 <https://github.com/rust-lang/rust/issues/76001> for more information

error[E0658]: inline-const is experimental
   --> /Users/frezyn/.cargo/registry/src/index.crates.io-6f17d22bba15001f/v8-0.106.0/src/object.rs:790:5
    |
790 |     const {
    |     ^^^^^
    |
    = note: see issue #76001 <https://github.com/rust-lang/rust/issues/76001> for more information

error[E0658]: associated type bounds are unstable
   --> /Users/frezyn/.cargo/registry/src/index.crates.io-6f17d22bba15001f/v8-0.106.0/src/handle.rs:193:33
    |
193 |     Self: TryInto<Local<'s, A>, Error: std::fmt::Debug>,
    |                                 ^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #52662 <https://github.com/rust-lang/rust/issues/52662> for more information

error[E0658]: use of unstable library feature 'pointer_is_aligned'
   --> /Users/frezyn/.cargo/registry/src/index.crates.io-6f17d22bba15001f/v8-0.106.0/src/fast_api.rs:175:32
    |
175 |     if data.is_null() || !data.is_aligned() {
    |                                ^^^^^^^^^^
    |
    = note: see issue #96284 <https://github.com/rust-lang/rust/issues/96284> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `v8` (lib) due to 4 previous errors`

I didn't find anything about what causes this, does anyone have a suggestion?

bartlomieju commented 4 hours ago

Make sure you use latest stable Rust version (1.81.0)

frezyn commented 3 hours ago

omg, i didn't tkink of that, tks man!!! <3