Skip to content

Add no_std option #24

Description

@emberian

You claim "no dependencies", but std is actually a quite large dependency in some environments. Most of this crate can do without std and use only core (ie, function overloading traits)`.

There's a few bits which can't:

It's a bit unfortunate trying to use alloc and collections, as they are currently unstable. I recommend adding a no_std feature that explicitly depends on those crates, with internal aliases for Rc, Vec, and VecDeque that switch between std and alloc/collections based on #[cfg(feature = "no_std")]. This does imply that no_std is unstable.

If you're happy with this, I can send a PR doing these 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