Cargo Features

libpaillier = { version = "0.6.0", default-features = false, features = ["crypto", "gmp", "openssl", "rust", "wasm"] }
default = crypto

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

crypto default

Enables crypto of unknown_order ^0.8


Enables gmp of unknown_order ^0.8


Enables openssl of unknown_order ^0.8


Enables rust of unknown_order ^0.8

wasm = getrandom, rand, wasm-bindgen

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.

getrandom wasm?
rand wasm?
wasm-bindgen wasm?