deno_bindgen icon indicating copy to clipboard operation
deno_bindgen copied to clipboard

Write high-level Deno FFI libraries in Rust.

Results 36 deno_bindgen issues
Sort by recently updated
recently updated
newest added

I felt on case looking close what is described upstream in https://github.com/rust-lang/rust/issues/88737. What debugging steps could be made in order to isolate further the issue (e.g. Deno and/or Rust and/or...

bug

Waiting on https://github.com/denoland/deno/pull/14663 ```rust #[deno_bindgen] fn callback(cb: fn (a: i32, b: i32)) { cb(1, 2) } ```

## Environment: ### OS: MacOS Monterey version 12.4 ### Hardware: Model Name: MacBook Pro Chip: Apple M1 Memory: 16 GB ## Steps To Reproduce 1. first run `deno_bindgen` to build...

Hello, I know this is a rust based codegen but I hope it's ok to ask this. What could be the best way to access structs that contains strings in...

question

``` // Auto-generated with deno_bindgen import { CachePolicy, prepare } from "https://deno.land/x/[email protected]/plug.ts" const opts = { name: "teyda_core", url: (new URL("../target/release", import.meta.url)).toString(), policy: undefined, } const _lib = await prepare(opts,...

bug

Having an option to override the default JSON serialization would be nice. For example the https://github.com/Adelost/javascript-serialization-benchmark list other more performant options such as AVRO.

Doable with `Box`. Reference/Mutable reference for methods and deallocate box when consumed/finalization ```rust pub struct NonSerializable { inner: i32, } #[deno_bindgen] impl NonSerializable { pub fn add(&mut self, a: i32)...

enhancement

Closes #63 Rust structs as JavaScript classes. Prior art: `wasm_bindgen` & `napi-rs`. ```rust pub struct NonSerializable { inner: i32, } #[deno_bindgen] impl NonSerializable { pub fn add(&mut self, a: i32)...

I keep getting errors in vscode. ![image](https://user-images.githubusercontent.com/45398751/150541480-fa49b008-cd60-46ab-b0c6-c3b1241973e9.png) ``` custom attribute panicked help: message: Type definition not found for `Input` identifier ``` The project does, however, compile using `deno_bindgen` without errors.

bug

```rust use deno_bindgen::deno_bindgen; #[deno_bindgen] pub struct UsbDevice { // Not supposed to be serialized or included in typings. #[cfg(not(feature = "deno_ffi"))] non_serializable_handle: Device, } ``` Output: ```typescript type UsbDevice =...

bug