From 4b7e9ace0129b157c33cf50e42746300a2ed854a Mon Sep 17 00:00:00 2001 From: Graham Esau Date: Sat, 17 Aug 2024 19:50:04 +0100 Subject: [PATCH] 1.0.0-alpha.5 --- CHANGELOG.md | 2 +- Cargo.lock | 4 ++-- README.md | 3 ++- docs/4-features.md | 2 +- schemars/Cargo.toml | 4 ++-- schemars_derive/Cargo.toml | 2 +- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 998deaa..5b4ac99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [1.0.0-alpha.5] - _in-dev_ +## [1.0.0-alpha.5] - 2024-08-17 ### Added diff --git a/Cargo.lock b/Cargo.lock index 39e20b3..a970f53 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -309,7 +309,7 @@ checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" [[package]] name = "schemars" -version = "1.0.0-alpha.4" +version = "1.0.0-alpha.5" dependencies = [ "arrayvec", "bigdecimal", @@ -335,7 +335,7 @@ dependencies = [ [[package]] name = "schemars_derive" -version = "1.0.0-alpha.4" +version = "1.0.0-alpha.5" dependencies = [ "pretty_assertions", "proc-macro2", diff --git a/README.md b/README.md index e5c2a21..a1c48bc 100644 --- a/README.md +++ b/README.md @@ -256,6 +256,7 @@ println!("{}", serde_json::to_string_pretty(&schema).unwrap()); ## Feature Flags +- `std` (enabled by default) - implements `JsonSchema` for types in the rust standard library (`JsonSchema` is still implemented on types in `core` and `alloc`, even when this feature is disabled). Disable this feature to use schemars in `no_std` environments. - `derive` (enabled by default) - provides `#[derive(JsonSchema)]` macro - `preserve_order` - keep the order of struct fields in `Schema` properties - `raw_value` - implements `JsonSchema` for `serde_json::value::RawValue` (enables the serde_json `raw_value` feature) @@ -280,5 +281,5 @@ For example, to implement `JsonSchema` on types from `chrono`, enable it as a fe ```toml [dependencies] -schemars = { version = "1.0.0-alpha.4", features = ["chrono04"] } +schemars = { version = "1.0.0-alpha.5", features = ["chrono04"] } ``` diff --git a/docs/4-features.md b/docs/4-features.md index af3cc21..09948ab 100644 --- a/docs/4-features.md +++ b/docs/4-features.md @@ -30,5 +30,5 @@ For example, to implement `JsonSchema` on types from `chrono`, enable it as a fe ```toml [dependencies] -schemars = { version = "1.0.0-alpha.4", features = ["chrono04"] } +schemars = { version = "1.0.0-alpha.5", features = ["chrono04"] } ``` diff --git a/schemars/Cargo.toml b/schemars/Cargo.toml index 0c384a5..73ba27c 100644 --- a/schemars/Cargo.toml +++ b/schemars/Cargo.toml @@ -3,7 +3,7 @@ name = "schemars" description = "Generate JSON Schemas from Rust code" homepage = "https://graham.cool/schemars/" repository = "https://github.com/GREsau/schemars" -version = "1.0.0-alpha.4" +version = "1.0.0-alpha.5" authors = ["Graham Esau "] edition = "2021" license = "MIT" @@ -13,7 +13,7 @@ categories = ["encoding"] rust-version = "1.60" [dependencies] -schemars_derive = { version = "=1.0.0-alpha.4", optional = true, path = "../schemars_derive" } +schemars_derive = { version = "=1.0.0-alpha.5", optional = true, path = "../schemars_derive" } serde = { version = "1.0", default-features = false, features = ["alloc"]} serde_json = { version = "1.0.122", default-features = false, features = ["alloc"] } dyn-clone = "1.0" diff --git a/schemars_derive/Cargo.toml b/schemars_derive/Cargo.toml index 418c258..3fa2194 100644 --- a/schemars_derive/Cargo.toml +++ b/schemars_derive/Cargo.toml @@ -3,7 +3,7 @@ name = "schemars_derive" description = "Macros for #[derive(JsonSchema)], for use with schemars" homepage = "https://graham.cool/schemars/" repository = "https://github.com/GREsau/schemars" -version = "1.0.0-alpha.4" +version = "1.0.0-alpha.5" authors = ["Graham Esau "] edition = "2021" license = "MIT"