mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Correct various no_std definitions
This commit is contained in:
@@ -21,20 +21,20 @@ zeroize = { version = "^1.5", default-features = false }
|
|||||||
subtle = { version = "^2.4", default-features = false }
|
subtle = { version = "^2.4", default-features = false }
|
||||||
|
|
||||||
digest = { version = "0.10", 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 }
|
sha2 = { version = "0.10", default-features = false, optional = true }
|
||||||
sha3 = { 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"] }
|
ff = { version = "0.13", default-features = false, features = ["bits"] }
|
||||||
group = { version = "0.13", default-features = false }
|
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 }
|
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 }
|
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 }
|
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]
|
[dev-dependencies]
|
||||||
hex = "0.4"
|
hex = "0.4"
|
||||||
|
|||||||
@@ -27,16 +27,17 @@ transcript = { package = "flexible-transcript", path = "../transcript", version
|
|||||||
chacha20 = { version = "0.9", default-features = false, features = ["zeroize"] }
|
chacha20 = { version = "0.9", default-features = false, features = ["zeroize"] }
|
||||||
|
|
||||||
ciphersuite = { path = "../ciphersuite", version = "0.3", default-features = false }
|
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" }
|
schnorr = { package = "schnorr-signatures", path = "../schnorr", version = "0.4", default-features = false }
|
||||||
dleq = { path = "../dleq", version = "0.3", default-features = false, features = ["serialize"] }
|
dleq = { path = "../dleq", version = "0.3", default-features = false }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
rand_core = { version = "0.6", default-features = false, features = ["getrandom"] }
|
||||||
ciphersuite = { path = "../ciphersuite", version = "0.3", default-features = false, features = ["ristretto"] }
|
ciphersuite = { path = "../ciphersuite", version = "0.3", default-features = false, features = ["ristretto"] }
|
||||||
|
|
||||||
[features]
|
[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"]
|
serde = ["dep:serde"]
|
||||||
tests = ["rand_core/getrandom"]
|
tests = ["rand_core/getrandom"]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
||||||
#![doc = include_str!("../README.md")]
|
#![doc = include_str!("../README.md")]
|
||||||
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
|
|
||||||
use core::fmt::{self, Debug};
|
use core::fmt::{self, Debug};
|
||||||
|
|
||||||
|
|||||||
@@ -15,22 +15,23 @@ rustdoc-args = ["--cfg", "docsrs"]
|
|||||||
rustversion = "1"
|
rustversion = "1"
|
||||||
|
|
||||||
thiserror = { version = "1", optional = true }
|
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"
|
multiexp = { path = "../multiexp", version = "0.3", default-features = false, features = ["batch"], optional = true }
|
||||||
group = "0.13"
|
|
||||||
|
|
||||||
multiexp = { path = "../multiexp", version = "0.3", features = ["batch"], optional = true }
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
hex-literal = "0.4"
|
hex-literal = "0.4"
|
||||||
|
|
||||||
|
rand_core = { version = "0.6", features = ["getrandom"] }
|
||||||
|
|
||||||
blake2 = "0.10"
|
blake2 = "0.10"
|
||||||
|
|
||||||
k256 = { version = "^0.13.1", default-features = false, features = ["std", "arithmetic", "bits"] }
|
k256 = { version = "^0.13.1", default-features = false, features = ["std", "arithmetic", "bits"] }
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ rustversion = "1"
|
|||||||
|
|
||||||
std-shims = { path = "../../common/std-shims", version = "0.1", default-features = false }
|
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"] }
|
ff = { version = "0.13", default-features = false, features = ["bits"] }
|
||||||
group = { version = "0.13", default-features = false }
|
group = { version = "0.13", default-features = false }
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ std-shims = { path = "../../common/std-shims", version = "0.1", default-features
|
|||||||
|
|
||||||
rand_core = { version = "0.6", default-features = false }
|
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 }
|
transcript = { package = "flexible-transcript", path = "../transcript", version = "0.3", default-features = false }
|
||||||
|
|
||||||
|
|||||||
@@ -23,11 +23,11 @@ ciphersuite = { path = "../../crypto/ciphersuite", default-features = false, fea
|
|||||||
|
|
||||||
multiexp = { path = "../../crypto/multiexp", default-features = false, features = ["batch"] }
|
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 }
|
schnorr-signatures = { path = "../../crypto/schnorr", default-features = false }
|
||||||
|
|
||||||
dkg = { path = "../../crypto/dkg", default-features = false }
|
dkg = { path = "../../crypto/dkg", default-features = false }
|
||||||
# modular-frost = { path = "../../crypto/frost" }
|
# modular-frost = { path = "../../crypto/frost", default-features = false }
|
||||||
# frost-schnorrkel = { path = "../../crypto/schnorrkel" }
|
# frost-schnorrkel = { path = "../../crypto/schnorrkel", default-features = false }
|
||||||
|
|
||||||
monero-generators = { path = "../../coins/monero/generators", default-features = false, features = ["alloc"] }
|
monero-generators = { path = "../../coins/monero/generators", default-features = false, features = ["alloc"] }
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ pub use ciphersuite;
|
|||||||
|
|
||||||
pub use multiexp;
|
pub use multiexp;
|
||||||
|
|
||||||
// pub use dleq;
|
pub use dleq;
|
||||||
pub use schnorr_signatures;
|
pub use schnorr_signatures;
|
||||||
|
|
||||||
/*
|
|
||||||
pub use dkg;
|
pub use dkg;
|
||||||
|
/*
|
||||||
pub use modular_frost;
|
pub use modular_frost;
|
||||||
pub use frost_schnorrkel;
|
pub use frost_schnorrkel;
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user