jamesmunns / postcard

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

[postcard 2.0] - Revisit `char` encoding #101

Open jamesmunns opened 1 year ago

jamesmunns commented 1 year ago

As noted in https://github.com/jamesmunns/postcard/issues/63, the current handling of chars is pretty meh, and there are likely MUCH better ways, namely "just put utf8 on the wire it's already a varint" or encoding the char as a varint(u32), instead of a &[u8].

jamesmunns commented 1 year ago

Note: postcard 2.0 is not planned any time soon. This issue is just to remind me to revisit this if there ever is a need/want for other breaking changes.