Cargo Features
[dependencies]
octorust = { version = "0.9.0", default-features = false, features = ["httpcache", "native-tls", "rustls-tls", "middleware"] }
- default = middleware, rustls-tls
-
These default features are set whenever
octorust
is added without
somewhere in the dependency tree.default-features = false - httpcache = dirs
-
enable etag-based http_cache functionality
Affects
octorust::http_cache
… - native-tls = openssl
-
Enables default-tls of reqwest
reqwest:
Note: this doesn't enable the 'native-tls' feature, which adds specific functionality for it.
- rustls-tls default = pem, ring
-
Enables rustls-tls of reqwest
- middleware default = reqwest-conditional-middleware, reqwest-middleware, reqwest-retry, reqwest-tracing
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.