Cargo Features

[dependencies]
toad = { version = "1.0.0-beta.9", default-features = false, features = ["std", "alloc", "std_serde", "std_serde_json", "serde", "unstable_serde_json", "test"] }
default = std, std_serde_json

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

std default = alloc, openssl

Enables std of toad-array, toad-len, toad-map, toad-stem, toad-string, and toad-writable

Affects toad::std, step::runtime.std

alloc std

Enables alloc of toad-array, toad-len, toad-map, toad-stem, toad-string, and toad-writable

Affects platform::Alloc, path::param.string, todo::hkt.Vec

std_serde std_serde_json

Enables std of serde

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

std_serde_json default = std_serde

Enables std of serde_json

Affects respond::json.SerializeError, respond::json

serde std_serde? unstable_serde_json?

Enables serde

unstable_serde_json = serde

Enables serde-json-core ^0.5.0

Affects respond::json.SerializeError, respond::json

docs test

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.

openssl std
serde_json std_serde_json