Skip to content
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

Make crate no_std #35

Merged
merged 2 commits into from
Sep 20, 2023
Merged

Make crate no_std #35

merged 2 commits into from
Sep 20, 2023

Conversation

EHfive
Copy link
Contributor

@EHfive EHfive commented Sep 19, 2023

See commit messages.

The motivation is to use it for resizing emoji images in no_std cosmic-text, see pop-os/cosmic-text#185.

Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
@kornelski
Copy link
Collaborator

Please don't use rustfmt. It makes code less readable by weirdly stretching it vertically. I deliberately don't use it.

This is to prevent tests code from being included in no_std.
hashbrown::HashMap is used to replace std::collections::HashMap.
libm is used for float operations.

The minimum required rust version is bumped to 1.60 to use `dep:` syntax
in Cargo.toml.
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.

2 participants