Cargo Features
[dependencies]
generic-ec = { version = "0.4.3", default-features = false, features = ["std", "alloc", "serde", "udigest", "curves", "curve-secp256k1", "curve-secp256r1", "curve-stark", "curve-ed25519", "all-curves", "hash-to-scalar"] }
- default = serde, std
-
These default features are set whenever
generic-ec
is added without
somewhere in the dependency tree.default-features = false - std default = alloc
- alloc std
-
Enables alloc of optional curve25519-dalek and hex
curve25519-dalek:
We use this dependency when both
curve-ed25519
andalloc
features are enabled, to providegeneric_ec::multiscalar::Dalek
Affects
multiscalar::Dalek
… - serde default = hex, serde_with
-
Enables serde, serde of generic-ec-core
- udigest hash-to-scalar?
-
Enables udigest
- curves curve-ed25519? curve-secp256k1? curve-secp256r1? curve-stark? = generic-ec-curves
- curve-secp256k1 all-curves? = curves
-
Enables secp256k1 of generic-ec-curves
- curve-secp256r1 all-curves? = curves
-
Enables secp256r1 of generic-ec-curves
- curve-stark all-curves? = curves
-
Enables stark of generic-ec-curves
- curve-ed25519 all-curves? = curve25519, curves
-
Enables ed25519 of generic-ec-curves
Affects
multiscalar::Dalek
… - all-curves = curve-ed25519, curve-secp256k1, curve-secp256r1, curve-stark
- hash-to-scalar = udigest
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.