Cargo Features

Roa-body has no features set by default.

[dependencies]
roa-body = { version = "0.5.0-rc", features = ["full", "json", "urlencoded", "file", "template"] }
full = file, json, template, urlencoded
json full? = serde, serde_json

Affects roa-body::PowerBody.read_json, roa-body::PowerBody.write_json

urlencoded full? = serde, serde_urlencoded

Affects roa-body::PowerBody.read_form

file full? = async-std, mime_guess, percent-encoding

Affects roa-body::PowerBody.write_file

template full? = askama

Affects roa-body::PowerBody.render

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-std file?
serde json? urlencoded?
askama template?

Enables askama ^0.9

serde_json json?
serde_urlencoded urlencoded?

Enables serde_urlencoded ^0.6

mime_guess file?
percent-encoding file?