Cargo Features

bromine has no features set by default.

[dependencies]
bromine = { version = "0.22.1", features = ["encryption_layer", "serialize", "serialize_rmp", "serialize_bincode", "serialize_postcard", "serialize_json"] }
encryption_layer = chacha20poly1305, rand, rand_core, sha2, x25519-dalek

Affects protocol::encrypted, utils::generate_secret

serialize serialize_bincode? serialize_json? serialize_postcard? serialize_rmp? = serde

Affects events::payload_serializer, context::Context.default_serializer

serialize_rmp = rmp-serde, serialize
serialize_bincode = bincode, serialize
serialize_postcard = postcard, serialize
serialize_json = serde_json, serialize

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.

rmp-serde serialize_rmp?
bincode serialize_bincode?
serde_json serialize_json?
chacha20poly1305 encryption_layer?
x25519-dalek encryption_layer?
rand encryption_layer?
rand_core encryption_layer?
sha2 encryption_layer?
postcard serialize_postcard?
serde serialize?