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 compatible #66

Merged
merged 2 commits into from
Feb 4, 2021
Merged

Make crate no_std compatible #66

merged 2 commits into from
Feb 4, 2021

Conversation

fschutt
Copy link
Contributor

@fschutt fschutt commented Feb 3, 2021

  • Use BTreeSet instead of HashSet in tests, so that tests can run on no_std
  • Replace all imports of Vec and String with respective alloc types
  • use core:: instead of use std::

This is a preparation for yeslogic/allsorts#42, it would be nice if this could get merged so that we can have a proper font shaping library on no_std.

- Use BTreeSet instead of HashSet in test, so that test can
  run on no_std
- Replace all imports of Vec and String with respective alloc types
- use core instead of std
@fschutt
Copy link
Contributor Author

fschutt commented Feb 3, 2021

If this gets merged, please publish a new version so I can merge the other PR, thanks

Copy link
Owner

@hsivonen hsivonen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! It looks like a global find and replace changed some comments that shouldn't have been changed. Looks good otherwise.

src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
@hsivonen hsivonen merged commit b55e543 into hsivonen:master Feb 4, 2021
@hsivonen
Copy link
Owner

hsivonen commented Feb 4, 2021

I've published a new version with this change to crates.io.

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