Skip to content

Investigate no_std, improve core / std consistency #1028

@chitoyuu

Description

@chitoyuu

From this discussion in a PR: #1026 (comment)

It's mostly a matter of consistency and surprise factor -- when I see core::, my association is immediately no_std, but maybe the Rust community sees this differently, and using core when it suffices is good practice.

Most of the codebase currently uses std:: though, with a handful of core:: occurrences for things like core::cmp::Ord, core::marker::PhantomData -- but even those are not used consistently. It's only a cosmetic issue though.

While no_std should be irrelevant for all the main, openly available targets, it might be slightly relevant for consoles or other obscure platforms. If the cost to support it is reasonably low, it should be a nice-to-have.

Otherwise, we can change all imports from core to std for consistency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    quality-of-lifeNo new functionality, but improves ergonomics/internals

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions