Make schemars_derive optional

This commit is contained in:
Graham Esau 2020-05-17 10:16:30 +01:00
parent 5a28cef598
commit 985280c388
4 changed files with 10 additions and 2 deletions

View file

@ -203,6 +203,7 @@ fn main() {
`#[serde(...)]` attributes can be overriden using `#[schemars(...)]` attributes, which behave identically (e.g. `#[schemars(rename_all = "camelCase")]`). You may find this useful if you want to change the generated schema without affecting Serde's behaviour, or if you're just not using Serde.
## Feature Flags
- `derive` (enabled by default) - provides `#[derive(JsonSchema)]` macro
- `impl_json_schema` - implements `JsonSchema` for Schemars types themselves
## Optional Dependencies