8000 Make alloc optional (embedded rust) · Issue #479 · tokio-rs/bytes · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Make alloc optional (embedded rust) #479
Open
@xoac

Description

@xoac

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:


Crate that could benefits from proposed changes:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0