denoland / deno_bindgen

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

feat: callbacks #78

Closed littledivy closed 1 year ago

littledivy commented 2 years ago

Waiting on https://github.com/denoland/deno/pull/14663

#[deno_bindgen]
fn callback(cb: fn (a: i32, b: i32)) {
  cb(1, 2)
}
littledivy commented 1 year ago

Merge conflicts. I'll revist this

KnorpelSenf commented 1 year ago

Any updates?

nearest-river commented 1 year ago

Why was that closed?