Cargo Features
[dependencies]
craftio-rs = { version = "0.1.0", default-features = false, features = ["futures-io", "tokio-io", "encryption", "compression", "backtrace", "gat"] }
- default = compression, encryption, tokio-io
-
These default features are set whenever
craftio-rs
is added without
somewhere in the dependency tree.default-features = false - futures-io = async-trait, futures
-
Affects
reader::CraftAsyncReader
,reader::AsyncReadExact
,writer::CraftAsyncWriter
,writer::AsyncWriteAll
… - tokio-io default = async-trait, tokio
-
Affects
tcp::CraftTokioConnection
,tcp::CraftUnbufferedTokioConnection
,reader::CraftAsyncReader
,reader::AsyncReadExact
,writer::CraftAsyncWriter
,writer::AsyncWriteAll
… - encryption default = aes
-
Affects
wrapper::CraftIo.enable_encryption
… - compression default = flate2
-
Affects
reader::DecompressErr
,wrapper::CraftIo.set_compression_threshold
,wrapper::CraftIo.ensure_compression_buf_capacity
… - backtrace
- gat
-
Enables gat of mcproto-rs
Affects
reader::CraftAsyncReader.read_packet_async
,reader::CraftAsyncReader.read_raw_packet_async
,reader::CraftSyncReader.read_packet
,reader::CraftSyncReader.read_raw_packet
…
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.