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

Add no_std support #57

Merged
merged 1 commit into from
May 5, 2022
Merged

Add no_std support #57

merged 1 commit into from
May 5, 2022

Conversation

pvdrz
Copy link
Contributor

@pvdrz pvdrz commented Jan 19, 2022

This PR adds no_std support to ed25519-zebra and keeps all the std related bits under a feature with the same name.

@dconnolly dconnolly self-requested a review January 19, 2022 22:07
@pvdrz
Copy link
Contributor Author

pvdrz commented Feb 8, 2022

@dconnolly hi, any updates?

@thibault-martinez
Copy link

Hi @dconnolly, we would really appreciate this being merged, let us know if we can help. Thanks.

@dconnolly
Copy link
Contributor

Hi @dconnolly, we would really appreciate this being merged, let us know if we can help. Thanks.

We can spend some time with this PR to get it merged this coming week I think 👍

Copy link
Contributor

@conradoplg conradoplg left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

I've confirmed that:

  • no_std is not enabled by default
  • everything compiles with no_std, including dependencies. I did that by running
rustup target add thumbv6m-none-eabi
cargo build --no-default-features --target thumbv6m-none-eabi

Since that target does not support std. (I tried cargo nono but it seemed to think curve29919-dalek used std when it didn't.)

@dconnolly can you take a quick look and merge if it's OK?

src/error.rs Show resolved Hide resolved
Cargo.toml Show resolved Hide resolved
@conradoplg conradoplg merged commit 15e0286 into ZcashFoundation:main May 5, 2022
@pvdrz pvdrz deleted the no-std-support branch May 5, 2022 13:43
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.

4 participants