denoland / deno_bindgen

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

Support for booleans #142

Open nearest-river opened 8 months ago

nearest-river commented 8 months ago

deno_bindgen doesn't allow bool for some reason.. we need to use u8 as return-type or parameters and then cast them, which is pretty annoying.. adding bool to deno_bindgen's native-type would be much better...

#[deno_bindgen]
pub fn is_fun()-> bool {
  true
}