Cargo Features

Argan has no features set by default.

argan = { version = "0.0.2", features = ["full", "cookies", "private-cookies", "signed-cookies", "query-params", "json", "form", "multipart-form", "sse", "file-stream", "websockets"] }
full = file-stream, form, json, multipart-form, private-cookies, query-params, regex, signed-cookies, sse, websockets
cookies private-cookies? signed-cookies?

Enables cookie

Affects data::cookies

private-cookies full? = cookies

Enables key-expansion and private of cookie

Affects cookies::PrivateCookieJar, handler::context._cookie_key

signed-cookies full? = cookies

Enables key-expansion and signed of cookie

Affects cookies::SignedCookieJar, handler::context._cookie_key

query-params full?

Enables serde_urlencoded

Affects request::QueryParamsError

json full?

Enables serde_json, json of multer

Affects data::json, event_stream::EventError

form full?

Enables serde_urlencoded

Affects data::form

multipart-form full?

Enables multer

Affects data::multipart_form

sse full?

Enables tokio

Affects response::event_stream

file-stream full?

Enables flate2, mime_guess, rand, and tokio

Affects response::file_stream

websockets full?

Enables base64, fastwebsockets, sha1, and tokio

Affects request::websocket

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.

regex full?

Enables regex