Skip to content

Conversation

@linkmauve
Copy link
Contributor

We were previously importing many things from std even though they are available in core, this will eventually help no_std support.

This crate isn’t no_std yet, but core::fmt provides the exact same
features as std::fmt, so let’s use it already.

I’ve also standardized on using a single use, and then prefixing all of
Display, Debug, Formatter and Result with fmt::.
We were previously importing many things from std even though they are
available in core, this will eventually help no_std support.
When using std, rustix will just reexport the former, but when using
no_std it will reimplement them.
@linkmauve linkmauve force-pushed the more-core branch 2 times, most recently from b194e3b to dbe96f4 Compare December 23, 2025 13:59
This still requires translation in the main drm crate.
It was only missing importing Vec from alloc at this point, everything
else builds in no_std!
This will pave the way for a no_std future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant