SoftbearStudios / SoftbearStudios/bitcode
FR: allow schema evolution (in or after 0.6)
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
- appending fields to struct (the encoding will store the number of fields in struct and new fields will be deserialized to default)
- appending variant to enum
- 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
- 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
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