Cargo Features
[dependencies]
monoio-transports-netreq-fork = { version = "0.1.1", default-features = false, features = ["default-crate", "crate-hyper", "crate-native-tls", "time", "hyper", "rustls-unsafe-io", "native-tls", "logging", "pool", "hyper-tls", "hyper-native-tls"] }
- default = default-crate
-
The
default-crate
feature is set by default whenevermonoio-transports-netreq-fork
is added without
somewhere in the dependency tree.default-features = false - default-crate default crate-hyper? crate-native-tls? = monoio-transports
- crate-hyper = default-crate
-
Enables hyper of monoio-transports
- crate-native-tls = default-crate
-
Enables native-tls of monoio-transports
- time hyper-tls? pool?
-
Enable this feature to make connection pool periodically checking works.
You must enable time driver to use it. - hyper hyper-tls?
-
Enables hyper, hyper of monoio-compat and pin-project-lite and tokio
tokio:
TODO: impl async mutex in local-sync and replace here.
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
- pool = monoio-http, monoio-rustls, time
-
This feature is specifically to enable http connector pool support
Enables monoio
- hyper-tls hyper-native-tls? = hyper, time, tokio-rustls
-
This feature is specifically to enable tls support for hyper connectors
Enables async-cancel, bytes, legacy, macros, tokio-compat and utils of monoio
- hyper-native-tls = hyper-tls, tokio-native-tls
-
by default hyper connector will use rustls
Enables native-tls
Affects
tls_connector::TlsServerName
,tls_connector::ServerName
…
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-transports crate-hyper? crate-native-tls? default-crate
- monoio-compat hyper?
- monoio-rustls logging? pool? rustls-unsafe-io?
- monoio-http pool?
- monoio-native-tls native-tls?
- tokio-native-tls hyper-native-tls?
-
Enables tokio-native-tls
Available only on hyper feature only. Used for hyper tls connections
- tokio-rustls hyper-tls?
- tracing logging?