Skip to content

no_std support #33

@AlexTMjugador

Description

@AlexTMjugador

As mentioned in #32 (comment), it'd be nice to make this crate work with #![no_std], which would allow its usage by embedded developers or other freestanding environments. Moreover, as this requires carefully choosing any dependencies, those that use the crate in std environments will benefit from reducing their number as well, slightly speeding up build times.

An obvious first start would be getting rid of the byteorder dependency, as the core library of the MSRV, which is also available in no #![no_std], already contains methods to convert between bytes and integers.

Getting rid of the Read and Write traits is a bit more involved. However, some days ago I've stumbled upon the acid_io crate, which provides suitable, drop-in replacements for these traits. Using conditional compilation and feature flags to choose between acid_io's traits and the std ones is easy enough to be worth a try, in my opinion.

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