infinyon / infinyon/node-bindgen
callback: handle more cases
Open
bug
callback
- Dominant language
- Rust
- Stars
- 587
- Forks
- 43
- PR merge metrics
- No merged PRs in 30d
Description
this fails to compile. Currently this is commented out in the examples/cb
```
#[node_bindgen]
fn sum String>(cb: F,second: i32) -> String {
let message = cb(second*2);
format!("my message: {}",message)
}
```
Contributor guide
Research direction
Start by reproducing the compile failure from examples/cb using the shown generic callback signature and capture the compiler diagnostics. Trace the callback handling used by node_bindgen, then verify that the example compiles and the callback case works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, rust
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100