infinyon / infinyon/node-bindgen

Add `impl JsValue` and `impl TryToJs` for `HashMap<String, T>`

Open
#169 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.