denoland / deno_bindgen

Write high-level Deno FFI libraries in Rust.
MIT License
287 stars 28 forks source link

Generated bindings.ts no longer works with latest deno #80

Closed vectronic closed 2 years ago

vectronic commented 2 years ago

Since https://github.com/denoland/deno/pull/14915 was released in Deno v1.23.1 my bindings.ts file no longer compiles as there is a typescript error:

error: TS2345 [ERROR]: Argument of type 'UnsafePointer' is not assignable to parameter of type 'bigint'.

for a generated line such as:

const ptr = new Deno.UnsafePointerView(v as Deno.UnsafePointer)

I'm wondering if there is a plan to update deno_bindgen accordingly or is there some other direction to be looking now?

Thanks very much.