Correct various no_std definitions

This commit is contained in:
Luke Parker
2023-05-13 04:03:56 -04:00
parent f069567f12
commit 227176e4b8
8 changed files with 25 additions and 22 deletions

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};