denoland / deno_bindgen

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

best practices for binding existing crates #150

Open andykais opened 2 months ago

andykais commented 2 months ago

I am looking to use this existing crate in deno https://crates.io/crates/gstreamer. What is the recommended way to set up deno ffi bindings in a crate that you do not own? My best guess is that I should create a new repo that takes any public interfaces in this crate and adds the #[deno_bindgen] macro to it. This is likely very involved so I wanted to check in if this is the right approach before I start doing so