Files
Rüdiger Klaehn 4706ec97e9 fix!: Fix serialization of CustomAddr so that the data serializes the same as a Vec<u8> (#4465)
## Description

Fix serialization of CustomAddr so that the data serializes the same as
a Vec<u8>

This is needed so the inline size remains an implementation detail. It
breaks CustomAddr deser, but that is fine since custom addresses, while
being stable, are only used in conjunction with a feature cleary marked
as experimental.

## Breaking Changes

Does not change the public API, but does change the serialization of
CustomAddrs. I think we don't need a iroh-base 2.0 regardless because
you only create or use CustomAddrs when working with the experimental
custom transports that are explicitly excluded from stability
guarantees. YMMV.

## Notes & open questions

Note for next release: we technically break serialization format for
CustomAddr, so we should add the rationale for not going to 2.0 to the
release notes.

## Change checklist
<!-- Remove any that are not relevant. -->
- [ ] Self-review.
- [ ] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
- [ ] This PR was created by a human that thought critically about the
      proposed change and wrote an as clear and concise description as
      they could.
- [ ] This PR isn't slop, and is carefully crafted to do have the
      intented effect.
2026-08-10 16:53:19 +00:00
..
2026-07-20 15:27:40 -04:00
2026-07-20 15:27:40 -04:00

iroh-base

This crate provides base types and utilities used throughout Iroh.

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.