Cargo Features

[dependencies]
bn254_hash2curve = { version = "0.1.2", default-features = false, features = ["constantine_compatible", "gnark_crypto_compatible"] }
default = constantine_compatible

The constantine_compatible feature is set by default whenever bn254_hash2curve is added without default-features = false somewhere in the dependency tree.

constantine_compatible default

Affects hash2g2::MapToCurve2

gnark_crypto_compatible

Affects hash2g2::MapToCurve2