Cargo Features

rustp2p has no features set by default.

[dependencies]
rustp2p = { version = "0.3.0", features = ["aes-gcm-openssl", "chacha20-poly1305-openssl", "aes-gcm-ring", "chacha20-poly1305-ring", "use-kcp"] }
aes-gcm-openssl = openssl

Affects cipher::aes_gcm, config::Config.encryption

chacha20-poly1305-openssl = openssl

Affects cipher::chacha20_poly1305, config::Config.encryption

aes-gcm-ring = ring

Affects cipher::aes_gcm, config::Config.encryption

chacha20-poly1305-ring = ring

Affects cipher::chacha20_poly1305, config::Config.encryption

use-kcp = kcp

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.

kcp use-kcp?
openssl aes-gcm-openssl? chacha20-poly1305-openssl?
ring aes-gcm-ring? chacha20-poly1305-ring?