sized-dst: Owned trait object backed by static memory

50 points Yuhan-Liin

I've released sized-dst, which provides an owned container for dynamically-sized types (DSTs) that's backed by static memory. This allows for owned trait objects without heap allocation. You can think of it as a stack-only version of Box<dyn Trait>. This is achieved by statically specifying the maximum size and alignment of the DST object. Due to the lack of heap allocations, this crate is suitable for no-std and embedded environments.

Links:

https://github.com/YuhanLiin/sized-dst

https://crates.io/crates/sized-dst