Bump MSRV to 1.37

This commit is contained in:
Graham Esau 2021-03-21 13:25:55 +00:00
parent 94d75378f6
commit 1c9ecafd32
4 changed files with 7 additions and 4 deletions

View file

@ -8,12 +8,12 @@ jobs:
strategy: strategy:
matrix: matrix:
rust: rust:
- 1.36.0 - 1.37.0
- stable - stable
- beta - beta
- nightly - nightly
include: include:
- rust: 1.36.0 - rust: 1.37.0
test_features: "--all-features" test_features: "--all-features"
allow_failure: false allow_failure: false
- rust: stable - rust: stable

View file

@ -4,6 +4,9 @@
### Added: ### Added:
- `SchemaGenerator::definitions_mut()` which returns a mutable reference to the generator's schema definitions - `SchemaGenerator::definitions_mut()` which returns a mutable reference to the generator's schema definitions
### Changed:
- Minimum supported rust version is now 1.37.0
### Changed: ### Changed:
- Deriving JsonSchema on enums now sets `additionalProperties` to false on generated schemas wherever serde doesn't accept unknown properties. This includes non-unit variants of externally tagged enums, and struct-style variants of all enums that have the `deny_unknown_fields` attribute. - Deriving JsonSchema on enums now sets `additionalProperties` to false on generated schemas wherever serde doesn't accept unknown properties. This includes non-unit variants of externally tagged enums, and struct-style variants of all enums that have the `deny_unknown_fields` attribute.

View file

@ -3,7 +3,7 @@
[![CI Build](https://img.shields.io/github/workflow/status/GREsau/schemars/CI?logo=GitHub)](https://github.com/GREsau/schemars/actions) [![CI Build](https://img.shields.io/github/workflow/status/GREsau/schemars/CI?logo=GitHub)](https://github.com/GREsau/schemars/actions)
[![Crates.io](https://img.shields.io/crates/v/schemars)](https://crates.io/crates/schemars) [![Crates.io](https://img.shields.io/crates/v/schemars)](https://crates.io/crates/schemars)
[![Docs](https://docs.rs/schemars/badge.svg)](https://docs.rs/schemars) [![Docs](https://docs.rs/schemars/badge.svg)](https://docs.rs/schemars)
[![rustc 1.36+](https://img.shields.io/badge/schemars-rustc_1.36+-lightgray.svg)](https://blog.rust-lang.org/2019/07/04/Rust-1.36.0.html) [![rustc 1.37+](https://img.shields.io/badge/schemars-rustc_1.37+-lightgray.svg)](https://blog.rust-lang.org/2019/08/15/Rust-1.37.0.html)
Generate JSON Schema documents from Rust code Generate JSON Schema documents from Rust code

View file

@ -1 +1 @@
msrv = "1.36.0" msrv = "1.37.0"