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

#![no_std] as an optional feature #59

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

piotrfila
Copy link

This PR makes primal available on no_std targets by adding no-std feature.
I have checked this builds on thumbv7em-none-eabihf.
I ran cargo bench before and after those changes and found no difference in performance (tested on x86_64-linux-gnu).
Without the no-std feature enabled the crate still builds on the MSRV (1.36).

One issue I found is the hamming dependency - no_std support was added there 5 years ago, but the newest version on crates.io is from 8 years ago.

@piotrfila
Copy link
Author

@huonw any chance of merging? I was working on no-std support for another crate and this is a dependency. I would appreciate the changes being published to crates.io so that the downstream crate can also be published.

@cuviper
Copy link
Collaborator

cuviper commented Jan 19, 2024

I can help with changes in this repo, but I don't have access to hamming.

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.

None yet

2 participants