Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove SerializeOctets bounds #344

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

tertsdiepraam
Copy link
Contributor

In its current version, this needs to be paired with a new function in octseq: NLnetLabs/octseq#57.

This makes the bounds more clear. It's a breaking change in a few places where only SerializeOctets was specified and not AsRef<[u8]>, altough everything that implements SerializeOctets already implements AsRef<[u8]>, because AsRef<[u8]> is a supertrait of Octets, so fixing the bounds is easy.

I also think that this conceptually simplifies the serialization: we only need to look at the octets to serialize them, that functionality does not need to differ between the types.

Marking as draft because we should first land the other PR in octseq.

@tertsdiepraam tertsdiepraam added the breaking A PR that includes a breaking change. label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking A PR that includes a breaking change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant