enarx / ciborium

CBOR utilities
Other
222 stars 54 forks source link

feat: implement ser::to_vec() for convenient serializing into a new Vec<u8> #128

Closed Voker57 closed 2 days ago

Voker57 commented 3 weeks ago

such shortcut is usually included in serde format libraries

rjzak commented 2 days ago

This won't work as-is because Ciborium aims to work in no_std environments, and vec! requires std. Feel free to re-work and re-open if you wish. Perhaps it could be gated on #[cfg_attr(feature = "std")]