mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Correct std feature-flagging
If a crate has std set, it should enable std for all dependencies in order to let them properly select which algorithms to use. Some crates fallback to slower/worse algorithms on no-std. Also more aggressively sets default-features = false leading to a *10%* reduction in the amount of crates coordinator builds.
This commit is contained in:
@@ -41,15 +41,18 @@ dalek-ff-group = { path = "../dalek-ff-group" }
|
||||
transcript = { package = "flexible-transcript", path = "../transcript", features = ["recommended"] }
|
||||
|
||||
[features]
|
||||
std = []
|
||||
std = ["rand_core/std", "zeroize/std", "digest/std", "transcript/std", "ff/std", "multiexp?/std"]
|
||||
serialize = ["std"]
|
||||
|
||||
# Needed for cross-group DLEqs
|
||||
secure_capacity_difference = []
|
||||
experimental = ["std", "thiserror", "multiexp"]
|
||||
|
||||
# Only applies to experimental, yet is default to ensure security
|
||||
# experimental doesn't mandate it itself in case two curves with extreme
|
||||
# capacity differences are desired to be used together, in which case the user
|
||||
# must specify experimental without default features
|
||||
default = ["secure_capacity_difference"]
|
||||
default = [
|
||||
"std",
|
||||
# Only applies to experimental, yet is default to ensure security
|
||||
# experimental doesn't mandate it itself in case two curves with extreme
|
||||
# capacity differences are desired to be used together, in which case the user
|
||||
# must specify experimental without default features
|
||||
"secure_capacity_difference"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user