-
Notifications
You must be signed in to change notification settings - Fork 33
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 it work on WASM #194
Comments
In rust-secp we have the following code in our Cargo.toml
I guess we need to copy that here. (Though I'm surprised that us having a rust-secp dependency here is insufficient.) |
The rust-secp code seems it's there also in rust-secp-zkp https://github.com/BlockstreamResearch/rust-secp256k1-zkp/blob/master/Cargo.toml (it puzzles me it's a DEV-dependencies but anyway). Not sure if some deps is taking it without the js feature?
If I add
to rust-elements the build succeeds but I am not sure it's the right way to do it |
Ohh, I see. It's a dev-dependency because this avoids making it a dependency downstream. We don't want to force wasm users to have So what you're doing is the right thing, AFAICT. |
I think the only issue is deal with rand
The text was updated successfully, but these errors were encountered: