rust-managed icon indicating copy to clipboard operation
rust-managed copied to clipboard

Interest in adding serde features

Open jamesmunns opened this issue 2 years ago • 1 comments

Hey all,

I've used managed as inspiration for quite a few projects (here's the latest one) to allow for using slice/stack types (like heapless)/alloc types for things like arrays of bytes and strings in serde+postcard.

This comes up often enough that I've considered making a postcard-managed crate, but wanted to see if this would fit as another set of features that could be supported.

Ideally, it would be nice to have support for [u8] (and friends) as well as str and friends - general [T] items wouldn't work so well for borrowed deserialization, though the heapless/alloc split may still work here (though I don't think managed uses heapless either).

I'm still trying to figure out if this is something that should live with managed, or should just be separate and managed inspired instead, due to slightly different design constraints.

jamesmunns avatar Jun 17 '23 01:06 jamesmunns

I think this is in scope for managed!

whitequark avatar Jun 17 '23 01:06 whitequark