Cargo Features
[dependencies]
under = { version = "0.3.8", default-features = false, features = ["sse", "from_form", "json", "cbor", "msgpack", "cookie"] }
- default = cookie, from_form, json, sse
-
These default features are set whenever
under
is added without
somewhere in the dependency tree.default-features = false - sse default = async-sse, tokio-util
-
Affects
under::sse
… - from_form default = form_urlencoded, phf, under_derive, unicase
-
Affects
under::from_form
,entity::HttpEntity.as_sniff_form
… - json default = serde, serde_json
-
Affects
entity::HttpEntity.set_json
,entity::HttpEntity.with_json
… - cbor = ciborium, serde
-
Affects
entity::HttpEntity.set_cbor
,entity::HttpEntity.with_cbor
… - msgpack = rmp-serde, serde
-
Affects
entity::HttpEntity.set_msgpack
,entity::HttpEntity.with_msgpack
…
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-sse sse
- ciborium cbor?
-
Enables cookie ^0.16.2
- form_urlencoded from_form
- phf from_form
- rmp-serde msgpack?
- serde_json json
- tokio-util sse
- under_derive from_form
- unicase from_form
- serde cbor? json msgpack?
-
Affects
entity::HttpEntity.as_sniff
,entity::HttpEntity.as_sniff_form
…