From 824989012ce8afc96bdaa43bae7cbf645fb8e4a0 Mon Sep 17 00:00:00 2001 From: varovainen <99664267+varovainen@users.noreply.github.com> Date: Wed, 23 Nov 2022 14:20:10 +0200 Subject: [PATCH] fix: no-std compatibility tweak (#1) --- Cargo.toml | 4 ++-- gen/ecmult/Cargo.toml | 2 +- gen/genmult/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7017734..9e091b9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,11 +14,11 @@ libsecp256k1-core = { version = "0.3.0", path = "core", default-features = false arrayref = "0.3" rand = { version = "0.8", default-features = false } digest = "0.9" -base64 = { version = "0.13", default-features = false } +base64 = { version = "0.13", optional = true, default-features = false } hmac-drbg = { version = "0.3", optional = true } sha2 = { version = "0.9", optional = true, default-features = false } typenum = { version = "1.12", optional = true } -serde = { version = "1.0.104", features = ["derive"], default-features = false } +serde = { version = "1.0.104", optional = true, features = ["derive"], default-features = false } lazy_static = { version = "1.4.0", optional = true } [dev-dependencies] diff --git a/gen/ecmult/Cargo.toml b/gen/ecmult/Cargo.toml index a57b096..8eb87df 100644 --- a/gen/ecmult/Cargo.toml +++ b/gen/ecmult/Cargo.toml @@ -9,4 +9,4 @@ repository = "https://github.com/paritytech/libsecp256k1" keywords = ["crypto", "ECDSA", "secp256k1", "bitcoin", "no_std"] [dependencies] -libsecp256k1-core = { version = "0.3.0", path = "../../core" } +libsecp256k1-core = { version = "0.3.0", path = "../../core", default-features = false } diff --git a/gen/genmult/Cargo.toml b/gen/genmult/Cargo.toml index 96c4a9f..a3f9436 100644 --- a/gen/genmult/Cargo.toml +++ b/gen/genmult/Cargo.toml @@ -9,4 +9,4 @@ repository = "https://github.com/paritytech/libsecp256k1" keywords = ["crypto", "ECDSA", "secp256k1", "bitcoin", "no_std"] [dependencies] -libsecp256k1-core = { version = "0.3.0", path = "../../core" } +libsecp256k1-core = { version = "0.3.0", path = "../../core", default-features = false }