Cargo Features

[dependencies]
libpaillier = { version = "0.7.0-rc0", default-features = false, features = ["2048", "3072", "4096", "wasm"] }
default = 2048

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

2048 default

Affects libpaillier::paillier2048

3072

Affects libpaillier::paillier3072

4096

Affects libpaillier::paillier4096

wasm = getrandom, serde-wasm-bindgen, 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?
serde-wasm-bindgen wasm?
wasm-bindgen wasm?