infinyon / infinyon/node-bindgen
Add `impl JsValue` and `impl TryToJs` for `HashMap<String, T>`
Open
Nobody has claimed this yet.
good first issue
- Dominant language
- Rust
- Stars
- 587
- Forks
- 43
- PR merge metrics
- No merged PRs in 30d
Description
We should be able to convert a Rust HashMap to and from arbitrary JS objects. We should have the following impls:
- `impl<'a, T: JsValue<'a>> JsValue<'a> for HashMap {}`
- `impl TryIntoJs for HashMap {}`
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names the JsValue and TryIntoJs impls for HashMap; start by locating existing implementations of those traits and the Rust-to-JavaScript object conversion entry points. Done means HashMap can convert to and from arbitrary JavaScript objects for the stated trait bounds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, rust
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100