Cargo Features

[dependencies]
tcp-handler = { version = "1.0.1", default-features = false, features = ["compression", "encryption", "compress_encryption", "auto_flush", "streams", "stream_net", "serde"] }
default = auto_flush, compress_encryption, stream_net

These default features are set whenever tcp-handler is added without default-features = false somewhere in the dependency tree.

compression compress_encryption

Enables flate2, std-comp and sync of variable-len-reader

Affects config::Config.compression, config::get_compression, protocols::compress, streams::compress

encryption compress_encryption

Enables aead, aes-gcm, rand, and rsa, std-comp and sync of variable-len-reader

Affects common::Cipher, protocols::encrypt, streams::encrypt

compress_encryption default = compression, encryption

Enables std-comp and sync of variable-len-reader

Affects protocols::compress_encrypt, streams::compress_encrypt

auto_flush default

Enables io-util of tokio

streams stream_net

Enables async-trait

Affects tcp-handler::streams

stream_net default = streams

Enables net of tokio

serde

Enables serde