-
Notifications
You must be signed in to change notification settings - Fork 314
Open
Description
Proposition:
I wonder if is it possible to make alloc optional. As far as I have checked the source code the main problem for make alloc optional is with implementation of Bytes and BytesMut that require alloc to work. To support partially bytes for embedded devices where alloc is not an option theses structs need re-implementation and this is complicated subject. Things that can be introduced to embedded word are Buf and BufMut traits and this works nearly out of the box.
Motivation:
- common interface for bytes on every level of rust
Here is example where alloc crate is a problem:
- example crate that used bytes with motivation above. This was done in 28 PR
- problem that MR generated: Latest version depends on
allocviaBufMutrust-iot/rust-ieee802.15.4#33
Crate that could benefits from proposed changes:
hnefatl and Altair-Bueno
Metadata
Metadata
Assignees
Labels
No labels