Document feature flags
This commit is contained in:
parent
e29f10f6b3
commit
938d273d42
1 changed files with 18 additions and 2 deletions
|
@ -4,6 +4,22 @@ title: Feature Flags
|
||||||
nav_order: 5
|
nav_order: 5
|
||||||
---
|
---
|
||||||
|
|
||||||
# Feature Flags
|
# Feature Flags and Optional Dependencies
|
||||||
|
|
||||||
Feature flags that can be enabled..
|
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">
|
||||||
|
|
||||||
|
### derive_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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue