feat: 12-char Base62 box IDs + trait-based migration framework#285
Merged
DorianZheng merged 1 commit intomainfrom Feb 21, 2026
Merged
feat: 12-char Base62 box IDs + trait-based migration framework#285DorianZheng merged 1 commit intomainfrom
DorianZheng merged 1 commit intomainfrom
Conversation
f46885e to
08bd620
Compare
Replace ULID box ID generation with 12-char Base62 (~71 bits entropy). Existing ULID IDs are preserved for backward compatibility — BoxID::parse() accepts both formats. - Add BoxIDMint for new ID generation (runtime/id.rs) - Refactor migrations from monolithic if-chain to trait-based per-file pattern - Remove BoxID from types.rs, canonical import is now runtime::id::BoxID - Update all internal imports and stale comments
08bd620 to
45822f9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BoxIDMint::mint(), replacing ULID generationBoxID::parse()accepts both 12-char Base62 (new) and 26-char ULID (legacy)db/migration/)BoxIDmoved fromruntime::typesto dedicatedruntime::idmodule; all imports updatedTest plan
cargo test -p boxlite --lib— 468 passedcargo clippy -p boxlite --tests -- -D warnings— zero warningscargo fmt --check— clean