Skip to content

fix: make sure that only string keys can be (de)serialized - #54

Merged
vmx merged 3 commits into
masterfrom
string-keys-only
May 26, 2026
Merged

fix: make sure that only string keys can be (de)serialized#54
vmx merged 3 commits into
masterfrom
string-keys-only

Conversation

@vmx

@vmx vmx commented May 13, 2026

Copy link
Copy Markdown
Member

DAG-CBOR only allows strings as keys for maps. Make sure that only those can be encoded or decoded.

Fixes parts of #41.

DAG-CBOR only allows strings as keys for maps. Make sure that only
those can be encoded or decoded.

Fixes parts of #41.
@vmx
vmx requested a review from rvagg May 13, 2026 11:51
Comment thread tests/ser.rs Outdated
Comment thread src/de.rs Outdated

@rvagg rvagg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm sans a couple of thoughts inline

vmx added 2 commits May 18, 2026 14:38
@vmx
vmx requested a review from rvagg May 18, 2026 12:51
@vmx
vmx merged commit f6d9076 into master May 26, 2026
6 checks passed
@vmx
vmx deleted the string-keys-only branch May 26, 2026 10:04
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.

2 participants