WingZer0o
WingZer0o7mo ago

Deno_bindgen

I'm super happy to see the Deno NPM compatibility supporting an FFI call using Rust's NAPI crate for a npm package I just made. I'd like to make a first class Deno TPM, is deno_bindgen ment to be installed as a crate within the FFI binding project or cloned and have the binding code moved into the cloned repo? The first seems more logical for me but I had some problems just executing simple binding generation. I can post a more specific error if its needed.
1 Reply
Deno AI Helper
Deno AI Helper7mo ago
I wasn't able to find the answer to your question in the official Deno documentation. However, based on your message, I can provide some general advice. deno_bindgen is a tool that facilitates the creation of bindings for Deno's Foreign Function Interface (FFI). Typically, you would install deno_bindgen as a development dependency in your Rust project, not by cloning the repository. This allows you to use deno_bindgen to generate the necessary bindings for your Deno project. If you're having trouble executing simple binding generation, make sure that you have installed deno_bindgen correctly and that you are using the correct commands to generate the bindings. Also, ensure that your Rust project is set up properly to work with FFI and deno_bindgen. Please note that this advice is not based on the Deno documentation, and I recommend double-checking the accuracy of this advice and consulting the deno_bindgen documentation or community resources for more specific guidance. If you have a more specific error message, it might help to provide that for more targeted assistance.