Correct various no_std definitions

This commit is contained in:
Luke Parker 2023-05-13 04:03:56 -04:00
parent f069567f12
commit 227176e4b8
No known key found for this signature in database
8 changed files with 25 additions and 22 deletions

View file

@ -21,20 +21,20 @@ zeroize = { version = "^1.5", default-features = false }
subtle = { version = "^2.4", default-features = false }
digest = { version = "0.10", default-features = false }
transcript = { package = "flexible-transcript", path = "../transcript", version = "0.3" }
transcript = { package = "flexible-transcript", path = "../transcript", version = "0.3", default-features = false }
sha2 = { version = "0.10", default-features = false, optional = true }
sha3 = { version = "0.10", default-features = false, optional = true }
ff = { version = "0.13", default-features = false, features = ["bits"] }
group = { version = "0.13", default-features = false }
dalek-ff-group = { path = "../dalek-ff-group", version = "0.3", optional = true }
dalek-ff-group = { path = "../dalek-ff-group", version = "0.3", default-features = false, optional = true }
elliptic-curve = { version = "0.13", default-features = false, features = ["hash2curve"], optional = true }
p256 = { version = "^0.13.1", default-features = false, features = ["arithmetic", "bits", "hash2curve"], optional = true }
k256 = { version = "^0.13.1", default-features = false, features = ["arithmetic", "bits", "hash2curve"], optional = true }
minimal-ed448 = { path = "../ed448", version = "0.3", optional = true }
minimal-ed448 = { path = "../ed448", version = "0.3", default-features = false, optional = true }
[dev-dependencies]
hex = "0.4"

View file

@ -27,16 +27,17 @@ transcript = { package = "flexible-transcript", path = "../transcript", version
chacha20 = { version = "0.9", default-features = false, features = ["zeroize"] }
ciphersuite = { path = "../ciphersuite", version = "0.3", default-features = false }
multiexp = { path = "../multiexp", version = "0.3", default-features = false, features = ["batch"] }
multiexp = { path = "../multiexp", version = "0.3", default-features = false }
schnorr = { package = "schnorr-signatures", path = "../schnorr", version = "0.4" }
dleq = { path = "../dleq", version = "0.3", default-features = false, features = ["serialize"] }
schnorr = { package = "schnorr-signatures", path = "../schnorr", version = "0.4", default-features = false }
dleq = { path = "../dleq", version = "0.3", default-features = false }
[dev-dependencies]
rand_core = { version = "0.6", default-features = false, features = ["getrandom"] }
ciphersuite = { path = "../ciphersuite", version = "0.3", default-features = false, features = ["ristretto"] }
[features]
std = ["thiserror", "std-shims/std", "ciphersuite/std", "multiexp/std", "schnorr/std", "dleq/std"]
std = ["thiserror", "rand_core/std", "std-shims/std", "ciphersuite/std", "multiexp/[batch, std]", "schnorr/std", "dleq/serialize"]
serde = ["dep:serde"]
tests = ["rand_core/getrandom"]
default = ["std"]

View file

@ -1,5 +1,6 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![doc = include_str!("../README.md")]
#![cfg_attr(not(feature = "std"), no_std)]
use core::fmt::{self, Debug};

View file

@ -15,22 +15,23 @@ rustdoc-args = ["--cfg", "docsrs"]
rustversion = "1"
thiserror = { version = "1", optional = true }
rand_core = "0.6"
rand_core = { version = "0.6", default-features = false }
zeroize = { version = "^1.5", features = ["zeroize_derive"] }
zeroize = { version = "^1.5", default-features = false, features = ["zeroize_derive"] }
digest = "0.10"
digest = { version = "0.10", default-features = false }
transcript = { package = "flexible-transcript", path = "../transcript", version = "0.3", default-features = false }
transcript = { package = "flexible-transcript", path = "../transcript", version = "0.3" }
ff = { version = "0.13", default-features = false }
group = { version = "0.13", default-features = false }
ff = "0.13"
group = "0.13"
multiexp = { path = "../multiexp", version = "0.3", features = ["batch"], optional = true }
multiexp = { path = "../multiexp", version = "0.3", default-features = false, features = ["batch"], optional = true }
[dev-dependencies]
hex-literal = "0.4"
rand_core = { version = "0.6", features = ["getrandom"] }
blake2 = "0.10"
k256 = { version = "^0.13.1", default-features = false, features = ["std", "arithmetic", "bits"] }

View file

@ -17,7 +17,7 @@ rustversion = "1"
std-shims = { path = "../../common/std-shims", version = "0.1", default-features = false }
zeroize = { version = "^1.5", features = ["zeroize_derive"] }
zeroize = { version = "^1.5", default-features = false, features = ["zeroize_derive"] }
ff = { version = "0.13", default-features = false, features = ["bits"] }
group = { version = "0.13", default-features = false }

View file

@ -17,7 +17,7 @@ std-shims = { path = "../../common/std-shims", version = "0.1", default-features
rand_core = { version = "0.6", default-features = false }
zeroize = { version = "^1.5", features = ["zeroize_derive"] }
zeroize = { version = "^1.5", default-features = false, features = ["zeroize_derive"] }
transcript = { package = "flexible-transcript", path = "../transcript", version = "0.3", default-features = false }

View file

@ -23,11 +23,11 @@ ciphersuite = { path = "../../crypto/ciphersuite", default-features = false, fea
multiexp = { path = "../../crypto/multiexp", default-features = false, features = ["batch"] }
# dleq = { path = "../../crypto/dleq" }
dleq = { path = "../../crypto/dleq", default-features = false }
schnorr-signatures = { path = "../../crypto/schnorr", default-features = false }
dkg = { path = "../../crypto/dkg", default-features = false }
# modular-frost = { path = "../../crypto/frost" }
# frost-schnorrkel = { path = "../../crypto/schnorrkel" }
# modular-frost = { path = "../../crypto/frost", default-features = false }
# frost-schnorrkel = { path = "../../crypto/schnorrkel", default-features = false }
monero-generators = { path = "../../coins/monero/generators", default-features = false, features = ["alloc"] }

View file

@ -9,11 +9,11 @@ pub use ciphersuite;
pub use multiexp;
// pub use dleq;
pub use dleq;
pub use schnorr_signatures;
/*
pub use dkg;
/*
pub use modular_frost;
pub use frost_schnorrkel;
*/