jamesmunns / postcard

A no_std + serde compatible message library for Rust
Apache License 2.0
874 stars 87 forks source link

Define MaxSize for Arc and Rc #137

Closed carlsverre closed 5 months ago

carlsverre commented 6 months ago

Serde supports auto-deriving Serialize and Deserialize for Arc and Rc types with the caveat being that the underlying type is serialized/deserialized. I am using this feature along with Postcard, and need this patch (or something equivalent to it) in order to calculate the max serialized size of my types.

More details on Serde's Arc and Rc support here: https://serde.rs/feature-flags.html#rc

netlify[bot] commented 6 months ago

Deploy Preview for cute-starship-2d9c9b canceled.

Name Link
Latest commit b7f41e5789e973c992ae49acc26309afb3d6818c
Latest deploy log https://app.netlify.com/sites/cute-starship-2d9c9b/deploys/6621aa40336ec40008424635
jamesmunns commented 5 months ago

Thank you!

carlsverre commented 5 months ago

Thanks for merging this in @jamesmunns! Anything I can do to help release 1.0.9?