Skip to content

tls_codec: bump to 0.5 and change SerializeBytes#2380

Merged
franziskuskiefer merged 1 commit into
masterfrom
franziskus/tls_codec-bytes-fixup
Jul 13, 2026
Merged

tls_codec: bump to 0.5 and change SerializeBytes#2380
franziskuskiefer merged 1 commit into
masterfrom
franziskus/tls_codec-bytes-fixup

Conversation

@franziskuskiefer

@franziskuskiefer franziskuskiefer commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

SerializeBytes::tls_serialize -> SerializeBytes::tls_serialize_bytes

The DeserializeBytes fixed this early one but for some reason we never changed the serialize to disambiguate. Because we implement this for more structs like VLBytes now, this makes trouble in too many places. This PR changes the name of this function to be in line with the deserialize and don't force users to go through the trait. This is a breaking change and consumers need to update their function calls.

Add future_deprecations and don't deprecate VLBytes

Deprecating VLBytes is a bit premature. It's used in too many places. Instead of deprecating right away, it's deprecated only when the future_deprecations feature is enabled.

@franziskuskiefer franziskuskiefer force-pushed the franziskus/tls_codec-bytes-fixup branch 2 times, most recently from 97916f2 to 9fbb33c Compare July 13, 2026 08:40
- SerializeBytes::tls_serialize -> SerializeBytes::tls_serialize_bytes
- Add future_deprecations and don't deprecate VLBytes
@franziskuskiefer franziskuskiefer force-pushed the franziskus/tls_codec-bytes-fixup branch from 9fbb33c to 7d117ed Compare July 13, 2026 09:02
@franziskuskiefer franziskuskiefer merged commit 7e45729 into master Jul 13, 2026
190 checks passed
@franziskuskiefer franziskuskiefer deleted the franziskus/tls_codec-bytes-fixup branch July 13, 2026 09:43
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