Fix a compile error that can occur when deriving `JsonSchema` from a project that doesn't reference serde_json
This commit is contained in:
Graham Esau 2019-12-09 21:25:37 +00:00
parent 351ff1572a
commit e151d21d6d
5 changed files with 60 additions and 52 deletions

View file

@ -2,7 +2,7 @@
name = "schemars"
description = "Generate JSON Schemas from Rust code"
repository = "https://github.com/GREsau/schemars"
version = "0.6.0"
version = "0.6.1"
authors = ["Graham Esau <gesau@hotmail.co.uk>"]
edition = "2018"
license = "MIT"
@ -12,7 +12,7 @@ categories = ["encoding"]
build = "build.rs"
[dependencies]
schemars_derive = { version = "0.6.0", path = "../schemars_derive" }
schemars_derive = { version = "=0.6.1", path = "../schemars_derive" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
chrono = { version = "0.4", default-features = false, optional = true }