Cargo Features

templar = { version = "0.5.0", default-features = false, features = ["toml-extension", "xml-extension", "json-extension", "yaml-extension", "shared-context", "base64-extension", "serde-extensions", "full", "common-extensions", "bin", "experimental"] }
default = base64-extension, json-extension, shared-context, yaml-extension

These default features are set whenever templar is added without default-features = false somewhere in the dependency tree.

toml-extension serde-extensions? = serde, toml

ser/deser extensions

xml-extension serde-extensions? = serde, serde-xml-rs
json-extension default serde-extensions? = serde, serde_json

Affects common::json, common::json

yaml-extension default serde-extensions? = serde, serde_yaml

Affects common::yaml, common::yaml

shared-context default full? = parking_lot


base64-extension default common-extensions? full? = base64

Affects common::base64, common::b64encode, common::b64decode

serde-extensions common-extensions? full? = json-extension, toml-extension, xml-extension, yaml-extension


full = base64-extension, serde-extensions, shared-context
common-extensions bin? = base64-extension, serde-extensions
bin = clap, common-extensions, structopt


Required by the binary


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.

serde json-extension toml-extension? xml-extension? yaml-extension

Enables serde

Optional serde deps

serde_yaml yaml-extension

Enables serde_yaml ^0.8

serde_json json-extension
toml toml-extension?

Enables toml ^0.5

serde-xml-rs xml-extension?

Enables serde-xml-rs ^0.4

parking_lot shared-context

Enables parking_lot ^0.11

Misc optionals

base64 base64-extension

Enables base64 ^0.13

clap bin?

Enables clap ^2.33

Binary deps

structopt bin?