capnproto-rust
capnproto-rust copied to clipboard
Refactor builder arena
Each commit should be self explainable. This makes the code simpler and should help the compiler optimize things a bit better.
There is a small bug in the first commit because the vec of segments is leaked. It is not strictly unsound bit I'll fix it tomorrow anyway.
@dwrensha this is ready for review :)
Unless capnp/src/private is officially part of the public API, it should not be a breaking change.