Cargo Features

[dependencies]
viz-middleware = { version = "0.1.2", default-features = false, features = ["full", "logger", "recover", "timeout", "request-nanoid", "request-uuid", "auth", "auth-bearer", "cookies", "cors", "compression", "compression-gzip", "compression-brotli", "compression-deflate", "jwt", "jwt-header", "jwt-cookie", "sessions-memory", "sessions-redis"] }
default = jwt, logger, recover, request-nanoid, timeout

These default features are set whenever viz-middleware is added without default-features = false somewhere in the dependency tree.

full = auth, compression, compression-brotli, cookies, cors, jwt, jwt-header, logger, recover, request-nanoid, timeout
logger default full?
recover default full? = pin-project-lite
timeout default full?

Enables tokio

request-nanoid default full? = nano-id
request-uuid

Enables uuid ^0.8

auth full?

Affects viz-middleware::auth

auth-basic auth-bearer
cookies full?
cors full?

Affects viz-middleware::cors

compression full? = bytes, pin-project-lite

Enables async-compression ^0.3 and tokio-util ^0.6

Affects viz-middleware::compression

compression-gzip

Enables gzip of async-compression ^0.3

compression

Affects compression::gzip

compression-brotli full?

Enables brotli of async-compression ^0.3

Affects compression::brotli

compression-deflate

Enables deflate of async-compression ^0.3

Affects compression::deflate

jwt default full? = jsonwebtoken

Affects viz-middleware::jwt

jwt-header full?
sessions-memory

Enables memory of sessions ^0.2.3

sessions-redis

Enables redis of sessions ^0.2.3

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.

nano-id request-nanoid

Enables nano-id ^0.2

request-id

uuid request-uuid?

Enables uuid ^0.8

sessions sessions-memory? sessions-redis?

Enables sessions ^0.2.3

Affects viz-middleware::sessions

tokio timeout
tokio-util compression?

Enables tokio-util ^0.6

async-compression compression? compression-brotli? compression-deflate? compression-gzip?

Enables async-compression ^0.3

bytes compression?
pin-project-lite compression? recover
jsonwebtoken jwt

Enables jsonwebtoken ^7.2

jwt