26 lines
675 B
Markdown
26 lines
675 B
Markdown
---
|
|
layout: default
|
|
title: Feature Flags
|
|
nav_order: 5
|
|
permalink: /features/
|
|
---
|
|
|
|
# Feature Flags and Optional Dependencies
|
|
|
|
Some functionality can be selectively enabled/disabled via [Cargo features](https://doc.rust-lang.org/cargo/reference/manifest.html#the-features-section). These can be enabled when you add Schemars to your crate's cargo.toml, e.g.
|
|
```toml
|
|
[dependencies]
|
|
schemars = { version = "0.6", features = ["chrono"] }
|
|
```
|
|
|
|
<div class="indented">
|
|
|
|
### impl_json_schema
|
|
|
|
Implements `JsonSchema` on Schemars types themselves.
|
|
|
|
### chrono
|
|
|
|
Implements `JsonSchema` on all [Chrono](https://github.com/chronotope/chrono) types which are serializable by Serde.
|
|
|
|
</div>
|