deno_bindgen icon indicating copy to clipboard operation
deno_bindgen copied to clipboard

feat: Support for C and perhaps other languages too

Open eliassjogreen opened this issue 4 years ago • 0 comments

It would be nice to have support for more languages than just rust, but I understand if that is out of the scope of the project at the moment. Anyways I propose splitting up codegen into a different crate and removing serde instead opting for encoding and decoding repr(C) objects in js directly using the new UnsafePointerView (wrote a small prototype in ts to prove that this works which it does).

This approach would let us continue using the macro for rust, and possibly reusing the codegen for analyzing other languages such as C header files while being more intuitive and most likely performant.

eliassjogreen avatar Jan 11 '22 07:01 eliassjogreen