Cargo Features

[dependencies]
volga = { version = "0.3.2", default-features = false, features = ["full", "mini", "mini2", "http1", "http2", "sync", "async", "middleware"] }
default = async, http1, middleware

Default HTTP/1 only server with async endpoints mapping

full = async, http1, http2, middleware, sync

HTTP/1 and HTTP/2 server with sync and async endpoints mappings

mini = async, http1

Mimimal HTTP/1

mini2 = async, http2

Mimimal HTTP/2

http1 default full? mini?

Enables http1 of hyper and hyper-util

hyper:

HTTP versions

http2 full? mini2?

Enables http2 of hyper and hyper-util

sync full?

Affects mapping::synchronous, mapping::synchronous, file::SyncFile, payload::SyncPayload

async default full? mini? mini2?

Affects mapping::asynchronous, mapping::asynchronous, file::File, payload::Payload

middleware default full?

Affects app::middlewares, app::http_context