Skip to content

Add pack logic for Nanoid type#15

Open
Handy-caT wants to merge 4 commits into
ciffelia:mainfrom
Handy-caT:pack-logic-impl
Open

Add pack logic for Nanoid type#15
Handy-caT wants to merge 4 commits into
ciffelia:mainfrom
Handy-caT:pack-logic-impl

Conversation

@Handy-caT
Copy link
Copy Markdown

This PR adds special PackedNanoid that uses more compact way for storage. It uses Alphabet length to optimize bit representation.

Mostly I'm adding this to store Nanoid properly as bytes in more compact way. Also because of this I'm adding rkyv feature that adds impls for it's serialization and deserialization.

Also I updated edition to latest as existing in repo was outdated. If you need exact version which is lower than latest stable, I can try to rework this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant