SoftbearStudios / SoftbearStudios/bitcode

Encode for foreign types?

Open
#13 6 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
671
Forks
61
PR merge metrics
No merged PRs in 30d

Description

Serde has #[serde(deserialize_with = "path")] in order to deserialize using a custom function. I'm not sure how easy that would be to implement in bitcode.

The issue I currently have is that I'm using IndexVec which I can't add derives to, and I'd like it to serialize (and deserialize) like a Vec.

Contributor guide

No contributing guide indexed for this repository

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

No files or tests are named. Start by reading bitcode's existing derive and serialization entry points, then determine how custom handling for foreign types would fit alongside the current API. Done should include a decided interface and round-trip serialization and deserialization for an IndexVec-like foreign type.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.