Skip to content

Commit

Permalink
Fix build - incompatible with napi 2.15 so stick with 2.14
Browse files Browse the repository at this point in the history
```
error[E0308]: mismatched types
   --> src/audio_buffer.rs:217:17
    |
216 |             .create_arraybuffer_with_borrowed_data(
    |              ------------------------------------- arguments to this method are incorrect
217 |                 data_ptr,
    |                 ^^^^^^^^ types differ in mutability
    |
    = note: expected raw pointer `*mut u8`
               found raw pointer `*const u8`
note: method defined here
   --> /Users/otto/.cargo/registry/src/index.crates.io-6f17d22bba15001f/napi-2.15.1/src/env.rs:508:17
    |
508 |   pub unsafe fn create_arraybuffer_with_borrowed_data<Hint, Finalize>(
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
  • Loading branch information
orottier committed Feb 5, 2024
1 parent 0d5a326 commit 6e47300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ version = "0.15.0"
crate-type = ["cdylib"]

[dependencies]
napi = {version="2.14", features=["napi9", "tokio_rt"]}
napi = {version="=2.14", features=["napi9", "tokio_rt"]}
napi-derive = "2.14"
uuid = {version="1.6.1", features = ["v4","fast-rng"]}
web-audio-api = "0.42"
Expand Down

0 comments on commit 6e47300

Please sign in to comment.