Cargo Features
[dependencies]
attohttp = { version = "0.26.2", default-features = false, features = ["basic-auth", "charsets", "compress", "compress-zlib", "compress-zlib-ng", "form", "json", "multipart-form", "tls-native", "tls-rustls-webpki-roots", "tls-rustls-native-roots", "tls-native-vendored", "tls", "tls-rustls", "tls-vendored"] }
- basic-auth = base64
- charsets = encoding_rs, encoding_rs_io
-
Affects
attohttp::charsets
,parsing::text_reader
,settings::BaseSettings.default_charset
… - compress default
-
The following three compress features are mutually exclusive.
Enables flate2
- default = compress, tls-native
-
These default features are set whenever
attohttp
is added without
somewhere in the dependency tree.default-features = false - compress-zlib
- compress-zlib-ng
- form = serde, serde_urlencoded
- json = serde, serde_json
- multipart-form = mime, multipart
- tls-native default tls? = native-tls
-
The following TLS features are mutually exclusive
- tls-rustls-webpki-roots rustls? tls-rustls? = rustls-opt-dep, webpki-roots
- tls-rustls-native-roots = rustls-native-certs, rustls-opt-dep
- tls-native-vendored tls-vendored?
-
This feature depends on tls-native
Enables vendored of native-tls
- tls = tls-native
-
These features are provided for backwards compatibility
- rustls tls-rustls = tls-rustls-webpki-roots
- tls-vendored = tls-native-vendored
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.
- base64 basic-auth?
-
Enables base64 ^0.21.2
- encoding_rs charsets?
- encoding_rs_io charsets?
- flate2 compress compress-zlib? compress-zlib-ng?
-
Affects
settings::BaseSettings.allow_compression
… - mime multipart-form?
- multipart multipart-form?
- native-tls tls-native tls-native-vendored?
- rustls-native-certs tls-rustls-native-roots?
-
Enables rustls-native-certs ^0.6
- rustls-opt-dep tls-rustls-native-roots? tls-rustls-webpki-roots?
-
Enables rustls ^0.21.0
- serde form? json?
- serde_json json?
- serde_urlencoded form?
- webpki-roots tls-rustls-webpki-roots?
-
Enables webpki-roots ^0.25.1