Cargo Features
[dependencies]
mendes = { version = "0.9.4", default-features = false, features = ["application", "brotli", "chrono", "compression", "cookies", "zlib", "deflate", "forms", "gzip", "hyper", "key", "json", "uploads", "body", "body-util", "static", "tracing"] }
- default = application
-
The
application
feature is set by default whenevermendes
is added without
somewhere in the dependency tree.default-features = false - application default hyper? static? = http
-
Enables async-trait, bytes, http-body, mendes-macros, percent-encoding, pin-project, serde, and serde_urlencoded
Affects
key::AppWithAeadKey
,mendes::application
,mendes::body
… - brotli = compression
-
Enables brotli of optional async-compression
Affects
body::EncodeResponse
… - chrono
-
Enables chrono
- compression brotli? gzip? zlib?
-
Enables async-compression, tokio, and tokio-util
-
Enables chrono, data-encoding, mendes-macros, and postcard, derive of optional serde
Affects
mendes::cookies
… - zlib deflate? = compression
-
Enables zlib of optional async-compression
Affects
body::EncodeResponse
… - deflate = zlib
- forms
-
Enables mendes-macros, serde_urlencoded and derive of optional serde
serde:
Provide derive(Serialize, Deserialize) macros.
Affects
mendes::forms
… - gzip = compression
-
Enables gzip of optional async-compression
Affects
body::EncodeResponse
… - hyper = application, http, tracing
-
Enables async-trait and bytes, hyper and hyper-util, std of futures-util, macros of tokio
Affects
mendes::hyper
… - key cookies?
-
Enables data-encoding and ring
Affects
mendes::key
… - json
-
Enables serde_json
- uploads = http
- body
-
Enables http-body
- body-util
-
Enables bytes, http-body, and http-body-util
Affects
application::Application.from_body
,application::Application.body_bytes
… - static = application, http
-
Enables mime_guess, fs of tokio
- tracing hyper?
-
Enables 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.