mirror of
https://github.com/n0-computer/iroh.git
synced 2026-11-29 08:01:13 +00:00
## 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.
iroh-base
This crate provides base types and utilities used throughout Iroh.
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
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.