Skip to content

Commit

Permalink
Fix no_std builds attempt 2 (#78)
Browse files Browse the repository at this point in the history
* Fix no_std builds attempt 2

- Turn off default features for core in gen and genmult
- Use serde-json-core (no_std support) in dev-dependencies

Relates to #71

* Use resolver="2"

Allows us to use serde_json in dev-dependencies and compile for no_std:

https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#cargos-new-feature-resolver

* revert unnecessary changes
  • Loading branch information
trevor-crypto authored Sep 13, 2021
1 parent 07ec9d5 commit 765b291
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ authors = ["Wei Tang <hi@that.world>"]
repository = "https://github.com/paritytech/libsecp256k1"
keywords = ["crypto", "ECDSA", "secp256k1", "bitcoin", "no_std"]
edition = "2018"
resolver = "2"

[dependencies]
libsecp256k1-core = { version = "0.2.2", path = "core", default-features = false }
Expand Down

0 comments on commit 765b291

Please sign in to comment.