schemars/docs/4-features.md
2019-12-27 22:41:28 +00:00

956 B

layout title nav_order permalink
default Feature Flags 5 /features/

Feature Flags and Optional Dependencies

Some functionality can be selectively enabled/disabled via Cargo features. These can be enabled when you add Schemars to your crate's cargo.toml, e.g.

[dependencies]
schemars = { version = "0.6", features = ["chrono"] }

impl_json_schema

Implements JsonSchema on Schemars types themselves.

chrono

Implements JsonSchema on all Chrono types which are serializable by Serde.

indexmap

Implements JsonSchema on IndexMap and IndexSet from indexmap.

either

Implements JsonSchema on Either.

uuid

Implements JsonSchema on Uuid.