Cargo Features

[dependencies]
portal-lib = { version = "0.5.0", default-features = false, features = ["rustcrypto-backend", "ring-backend"] }
default = rustcrypto-backend

The rustcrypto-backend feature is set by default whenever portal-lib is added without default-features = false somewhere in the dependency tree.

rustcrypto-backend default = chacha20poly1305
ring-backend = ring

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.

chacha20poly1305 rustcrypto-backend

Enables chacha20poly1305 ^0.9.0

ring ring-backend?