Cargo Features

[dependencies]
mendes = { version = "0.8.0", default-features = false, features = ["application", "brotli", "compression", "cookies", "deflate", "forms", "gzip", "key", "json", "uploads", "with-http-body", "with-hyper", "static", "serde-derive", "tracing"] }
default = application

The application feature is set by default whenever mendes is added without default-features = false somewhere in the dependency tree.

application default static? with-hyper? = async-trait, http, mendes-macros, percent-encoding, serde, serde_urlencoded

Affects key::AppWithAeadKey, mendes::application

brotli = compression

Enables brotli of async-compression

compression brotli? deflate? gzip? = async-compression, futures-util, tokio-util
cookies = chrono, data-encoding, http, key, mendes-macros, postcard, serde-derive

Affects mendes::cookies

deflate = compression

Enables deflate of async-compression

async-compression:

algorithms

forms = mendes-macros, serde-derive, serde_urlencoded

Affects mendes::forms

gzip = compression

Enables gzip of async-compression

key cookies? = data-encoding, ring

Affects mendes::key

json = serde_json
uploads = http, httparse, memchr
with-http-body = bytes, http-body, pin-utils

Affects application::Application.from_body, application::Application.body_bytes

with-hyper = application, async-trait, bytes, futures-util, http, hyper

Enables std of futures-util

static = application, http, mime_guess

Enables fs of tokio

serde-derive cookies? forms?

Enables derive of serde

serde:

Provide derive(Serialize, Deserialize) macros.

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.

async-compression brotli? compression? deflate? gzip?
async-trait application with-hyper?
bytes with-http-body? with-hyper?
chrono cookies?
data-encoding cookies? key?
futures-util compression? with-hyper?
http application cookies? static? uploads? with-hyper?

Enables http ^0.2

http-body with-http-body?

Enables http-body ^0.4

httparse uploads?
hyper with-hyper?

Enables hyper ^0.14.1

Affects application::Application.into_service, mendes::hyper

memchr uploads?
mendes-macros application cookies? forms?
mime_guess static?
percent-encoding application
pin-utils with-http-body?
postcard cookies?
ring key?
serde application serde-derive?
serde_json json?
serde_urlencoded application forms?
tokio static?
tokio-util compression?
tracing implicit feature

Enables tracing

tracing:

Application-level tracing for Rust