Cargo Features

[dependencies]
monoio-transports = { version = "0.5.3", default-features = false, features = ["time", "hyper", "rustls-unsafe-io", "native-tls", "logging"] }
default = time

The time feature is set by default whenever monoio-transports is added without default-features = false somewhere in the dependency tree.

time default

Enable this feature to make connection pool periodically checking works.
You must enable time driver to use it.

hyper

Enables hyper, hyper of monoio-compat and pin-project-lite and tokio

tokio:

TODO: impl async mutex in local-sync and replace here.

and poll-io of monoio

monoio:

(experimental)enable poll-io to convert structs to structs that impl tokio's poll io

Affects connectors::pollio, http::hyper

rustls-unsafe-io

Note: rustls and native-tls cannot be enabled at the same time

Enables unsafe_io of monoio-rustls

native-tls = monoio-native-tls

Enables native-tls

Affects tls_connector::TlsStream, tls_connector::TlsServerName, tls_connector::ServerName, key::ServerName

logging = tracing

Enables logging of monoio-rustls

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.

monoio-native-tls native-tls?
tracing logging?