Cargo Features

Servlin has no features set by default.

[dependencies]
servlin = { version = "0.4.3", features = ["json", "urlencoded", "include_dir"] }
json = serde, serde_json
urlencoded = serde, serde_urlencoded

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.

include_dir implicit feature

Enables include_dir

include_dir:

Embed the contents of a directory in your binary

serde json? urlencoded?
serde_json json?

Enables serde_json

TODO: Prevent these deps from appearing as features.

serde_urlencoded urlencoded?