Cargo Features
[dependencies]
monoio-http-client = { version = "0.3.3", default-features = false, features = ["time", "rustls-unsafe-io", "native-tls", "logging"] }
- default = time
-
The
time
feature is set by default whenevermonoio-http-client
is added without
somewhere in the dependency tree.default-features = false - time default
-
Enable this feature to make connection pool periodically checking works.
You must enable time driver to use it. - rustls-unsafe-io
-
Note: rustls and native-tls cannot be enabled at the same time
Enables unsafe_io of monoio-rustls ^0.3.0
- native-tls = monoio-native-tls
-
Enables native-tls
Affects
connector::TlsStream
,key::ServerName
… - logging = tracing
-
Enables logging of monoio-rustls ^0.3.0
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.