Cargo Features

[dependencies]
twelf = { version = "0.15.0", default-features = false, features = ["clap", "shellexpand", "dhall", "env", "ini", "json", "toml", "yaml", "default_trait", "custom_fn"] }
default = clap, env, shellexpand

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

clap default = clap_rs, envy

Enables clap of config-derive

shellexpand default

Enables shellexpand, shellexpand of config-derive

dhall = serde_dhall

Enables dhall of config-derive

env default = envy

Enables env of config-derive

ini = serde_ini

Enables ini of config-derive

json

Enables json of config-derive

toml = toml_rs

Enables toml of config-derive

yaml = serde_yaml

Enables yaml of config-derive

default_trait

Enables default_trait of config-derive

custom_fn = dyn-clone

Enables custom_fn of config-derive

Affects twelf::custom_fn

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.

clap_rs clap

Enables clap

envy clap env
serde_dhall dhall?

Enables serde_dhall ^0.11

serde_ini ini?
serde_yaml yaml?

Enables serde_yaml ^0.8.23

toml_rs toml?

Enables toml ^0.5.8

dyn-clone custom_fn?