Skip to content

Move most uses of the std crate to core and alloc #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 5, 2021

Conversation

linkmauve
Copy link
Contributor

std::io and std::error::Error are the two remaining uses of std preventing this crate from building in a #![no_std] context.

I’ve tried reimplementing just these parts of std in this crate, but it was obviously not a good way forward, and I don’t know what could be a way forward here. In the meantime, these changes don’t cause any issue, and will be useful for the next person trying to implement no_std!

f32::ceil() and f32::fract() are two other functions we use which are available only in std, I’m not too sure why.

std::io and std::error::Error are the two remaining uses of std
preventing this crate from building in a #![no_std] context.

I’ve tried reimplementing just these parts of std in this crate, but it
was obviously not a good way forward, and I don’t know what could be a
way forward here.  In the meantime, these changes don’t cause any issue,
and will be useful for the next person trying to implement no_std!

f32::ceil() and f32::fract() are two other functions we use which are
available only in std, I’m not too sure why.
@197g
Copy link
Member

197g commented Sep 23, 2021

@fintelia Your judgment, should we do the same as in the other crates—move to 0.2 and bump to 1.48? Note that we'll need to do a breaking release in any case after #193 is merged.

@fintelia fintelia merged commit b15262f into image-rs:master Oct 5, 2021
@linkmauve linkmauve deleted the almost-no_std branch October 6, 2021 13:29
@vstroebel vstroebel mentioned this pull request Feb 18, 2022
wartmanm pushed a commit to wartmanm/jpeg-decoder that referenced this pull request Sep 15, 2022
Move most uses of the std crate to core and alloc
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.

3 participants