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

"bitcoin_hashes" feature in rust-secp seems to break CI #830

Closed
apoelstra opened this issue Feb 14, 2022 · 5 comments
Closed

"bitcoin_hashes" feature in rust-secp seems to break CI #830

apoelstra opened this issue Feb 14, 2022 · 5 comments

Comments

@apoelstra
Copy link
Member

See e.g. #819 (comment)

Not sure yet if the bug is in bitcoin_hashes, rust-secp or this library.

@tcharding
Copy link
Member

Its the no-std build that fails. I cannot re-produce the build failure locally which is disconcerting but I've got a gut feeling that its something to do with the fact that we enable bitcoin_hashes in secp with default features enabled (implies std). However if we do not do this then users of secp have no way to enable std/alloc feature when enabling bitcoin_hashes?

@Kixunil
Copy link
Collaborator

Kixunil commented Feb 28, 2022

@tcharding oh, yes, that looks like it!

then users of secp have no way to enable std/alloc feature when enabling bitcoin_hashes?

They do, just depend on bitcoin_hashes explicitly with the feature enabled. The real question is whether it causes problems mentioned in #840 If it does then we need bitcoin_hashes_std feature in secp256k1. Ugly but not entirely terrible I think.

Side note: using default-features = false will be a breaking change.

@kafaichoi
Copy link
Contributor

@tcharding oh, yes, that looks like it!

then users of secp have no way to enable std/alloc feature when enabling bitcoin_hashes?

They do, just depend on bitcoin_hashes explicitly with the feature enabled. The real question is whether it causes problems mentioned in #840 If it does then we need bitcoin_hashes_std feature in secp256k1. Ugly but not entirely terrible I think.

Side note: using default-features = false will be a breaking change.

I verified that CI is fixed after setting default-features = false for bitcoin_hashes in secp deps. related issue #851 (comment)

@tcharding
Copy link
Member

Fixed in rust-secp256k1 by this PR.

@tcharding
Copy link
Member

This issue is resolved, secp256k1 v0.24.0 does not enable default features (includes "std") for bitcoin_hashes.

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

No branches or pull requests

4 participants