Cargo Features
[dependencies]
argan = { version = "0.1.2", default-features = false, features = ["full", "cookies", "private-cookies", "signed-cookies", "query-params", "json", "form", "multipart-form", "sse", "file-stream", "websockets", "peer-addr", "tls"] }
- default = form, json, private-cookies, query-params
-
These default features are set whenever
argan
is added without
somewhere in the dependency tree.default-features = false - full = file-stream, form, json, multipart-form, peer-addr, private-cookies, query-params, regex, signed-cookies, sse, tls, websockets
-
Enables cookie
Affects
data::cookies
… -
Enables key-expansion and private of cookie
Affects
cookies::PrivateCookieJar
,cookies::Private
,node_properties::NodeCookieKey
,handler::properties.HandlerCookieKey
… -
Enables key-expansion and signed of cookie
Affects
cookies::SignedCookieJar
,cookies::Signed
,node_properties::NodeCookieKey
,handler::properties.HandlerCookieKey
… - query-params default full?
-
Enables serde_urlencoded
Affects
request::QueryParamsError
… - json default full?
-
Enables serde_json, json of multer
Affects
data::json
,event_stream::EventError
… - form default full?
-
Enables serde_urlencoded
Affects
data::form
… - multipart-form full?
-
Enables multer
Affects
data::multipart_form
… - sse full?
-
Affects
response::event_stream
… - file-stream full?
-
Enables brotli ^6, flate2, mime_guess, and rand
Affects
response::file_stream
… - websockets full?
-
Enables base64, fastwebsockets ^0.7, and sha1
Affects
request::websocket
… - peer-addr full?
- tls full?
-
Enables tokio-rustls
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.