Divy Srivastava

Results 185 issues of Divy Srivastava

`serde_v8::Resource` is an "object wrap" around Rust allocated objects whose lifetime is managed by the V8 GC. Rust-side shared reference is managed with an `Rc`. Rust can reclaim ownership with...

Relands auto fast api template generation for ops. This patch seems to be triggering a race condition in V8. Crashes occur at `Context::new` and `Isolate::dispose`. Seems related to https://github.com/denoland/rusty_v8/issues/714

Depends on https://github.com/denoland/rusty_v8/pull/1020

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

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)...

```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

I have to `rm -rf ~/Library/Caches/deno/plug/` after every rebuild to keep the cache up to date. We should just disable caching local plugins.

bug
good first issue

Currently, one has to wrap it around another struct and return it. The macro should parse `Vec` something like this: ```rust use deno_bindgen::deno_bindgen; #[deno_bindgen] pub struct UsbDevice { // ......

enhancement

**DO NOT MERGE** This PR adds support for loading Node-API modules using `Deno.core.napiOpen`. Actual implementation resides here https://github.com/denoland/deno/pull/13633 We need this patch (unmerged) to run tests (temporarily) on the PR's...