Cargo Features

[dependencies]
pg-curve = { version = "0.2.0", default-features = false, features = ["alloc", "bits", "groups", "pairings", "experimental", "nightly", "zeroize"] }
default = alloc, bits, groups, pairings

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

alloc default

Enables alloc of group

Affects expand_msg::ExpandMessageState.into_vec, pairings::G2Prepared, pairings::multi_miller_loop

bits default

Enables bits of ff

groups default pairings = group
pairings default = groups, pairing
experimental = digest

Affects pg-curve::hash_to_curve

nightly

Enables nightly of subtle

subtle:

DEPRECATED: As of 2.4.1, this feature does nothing.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

zeroize implicit feature
digest experimental?

Enables digest ^0.9

pairing pairings
group alloc groups