SoftbearStudios / SoftbearStudios/bitcode

FR: allow schema evolution (in or after 0.6)

Open
#21 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I know it would be serving really different audience if it supports schema evolution (SE for short). But I would really benefit from similar encoding as bitcode but with SE and it would be a lot of duplicate code to implement such thing. So I'm here to ask: will you consider adding SE as a flavor of bitcode? Or somehow allow me to write a crate that easily reuses bitcode encoding and add SE?

I think the main thing that schema evolution need is

  1. appending fields to struct (the encoding will store the number of fields in struct and new fields will be deserialized to default)
  2. appending variant to enum
  3. increase capacity of ints (I.e. u8 to u16) (though this is less important)

In 0.6 style encoding, this would not add much space either.

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, tests, or entry points are named. Start by reading the existing bitcode encoding, especially the 0.6 style, then clarify compatibility and defaults for appended struct fields, enum variants, and increased integer capacity; the work is done only after a concrete schema-evolution design and scope are agreed.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend
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.