Cargo Features

dup-crypto has no features set by default.

[dependencies]
dup-crypto = { version = "0.58.0", features = ["client", "duniter", "bip32-ed25519", "dewif", "encrypt_tx_comment", "x25519", "mnemonic", "private_message", "pubkey_check", "mnemonic_all_languages", "mnemonic_chinese_simplified", "mnemonic_chinese_traditional", "mnemonic_french", "mnemonic_japanese", "mnemonic_korean", "mnemonic_spanish"] }
client = bip32-ed25519, dewif, encrypt_tx_comment, mnemonic, mnemonic_french, mnemonic_spanish

meta-feature for "standard" clients (gcli, gecko, etc)

duniter

meta-feature for duniter

bip32-ed25519 client? dewif? = arrayvec, cryptoxide, ed25519-bip32, mnemonic

Affects ed25519::bip32

dewif client? = arrayvec, bip32-ed25519, mnemonic

Affects dup-crypto::dewif

encrypt_tx_comment client? = cryptoxide, x25519

Affects dup-crypto::encrypt_tx_comment

x25519 encrypt_tx_comment? private_message? = curve25519-dalek, pubkey_check
mnemonic bip32-ed25519? client? dewif? = once_cell

Affects dup-crypto::mnemonic

private_message = arrayvec, chacha20poly1305, x25519

Affects dup-crypto::private_message

pubkey_check x25519? = curve25519-dalek
mnemonic_all_languages = mnemonic_chinese_simplified, mnemonic_chinese_traditional, mnemonic_french, mnemonic_italian, mnemonic_japanese, mnemonic_korean, mnemonic_spanish

mnemonic languages features (English is the default language, so always included)

mnemonic_chinese_simplified mnemonic_all_languages?
mnemonic_chinese_traditional mnemonic_all_languages?
mnemonic_french client? mnemonic_all_languages?
mnemonic_italian mnemonic_japanese mnemonic_all_languages?
mnemonic_korean mnemonic_all_languages?
mnemonic_spanish client? mnemonic_all_languages?

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.

arrayvec bip32-ed25519? dewif? private_message?
curve25519-dalek pubkey_check? x25519?

Enables curve25519-dalek ^3.1

chacha20poly1305 private_message?

Enables chacha20poly1305 ^0.7.1

ed25519-bip32 bip32-ed25519?

Enables ed25519-bip32 ^0.3.2

once_cell mnemonic?
cryptoxide not wasm32 wasm32 bip32-ed25519? encrypt_tx_comment?

Enables cryptoxide ^0.3.2