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
somewhere in the dependency tree.default-features = false - 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
- streams stream_net
-
Enables async-trait
Affects
tcp-handler::streams
… - stream_net default = streams
- serde
-
Enables serde