Cargo Features

generic-ec = { version = "0.3.0", default-features = false, features = ["std", "alloc", "serde", "udigest", "curves", "curve-secp256k1", "curve-secp256r1", "curve-stark", "curve-ed25519", "all-curves"] }
default = serde, std

These default features are set whenever generic-ec is added without default-features = false somewhere in the dependency tree.

std default = alloc
alloc std

Enables alloc of optional curve25519-dalek and hex


We use this dependency when both curve-ed25519 and alloc features are enabled, to provide generic_ec::multiscalar::Dalek

Affects multiscalar::Dalek

serde default = hex, serde_with

Enables serde, serde of generic-ec-core


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-dalek, curves

Enables ed25519 of generic-ec-curves

Affects multiscalar::Dalek

all-curves = curve-ed25519, curve-secp256k1, curve-secp256r1, curve-stark

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.

generic-ec-curves curve-ed25519? curve-secp256k1? curve-secp256r1? curve-stark? curves?
serde_with serde

Enables serde_with ^2

hex alloc? serde
curve25519-dalek curve-ed25519?