From 7bc4e21e9daf661fc1c0fdc12255d477f634ab77 Mon Sep 17 00:00:00 2001 From: KodrAus Date: Thu, 21 Sep 2023 09:52:09 +1000 Subject: [PATCH 1/2] fix up dev dep on sval_derive --- buffer/Cargo.toml | 4 ++-- buffer/benches/value.rs | 7 +++++-- buffer/src/value.rs | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/buffer/Cargo.toml b/buffer/Cargo.toml index 03202b23..7cc2542e 100644 --- a/buffer/Cargo.toml +++ b/buffer/Cargo.toml @@ -28,9 +28,9 @@ path = "../" version = "2.7.0" path = "../ref" -[dev-dependencies.sval_derive] +[dev-dependencies.sval_derive_macros] version = "2.7.0" -path = "../derive" +path = "../derive_macros" [dev-dependencies.sval_test] version = "2.7.0" diff --git a/buffer/benches/value.rs b/buffer/benches/value.rs index 7bc78832..5ae14ae3 100644 --- a/buffer/benches/value.rs +++ b/buffer/benches/value.rs @@ -2,8 +2,11 @@ extern crate test; +#[macro_use] +extern crate sval_derive_macros; + #[cfg(feature = "alloc")] -#[derive(sval_derive::Value)] +#[derive(Value)] struct OwnedData { id: i32, title: String, @@ -20,7 +23,7 @@ fn owned_data() -> OwnedData { } #[cfg(feature = "alloc")] -#[derive(sval_derive::Value)] +#[derive(Value)] struct BorrowedData<'a> { id: i32, title: &'a str, diff --git a/buffer/src/value.rs b/buffer/src/value.rs index d5264fbe..d8b03dba 100644 --- a/buffer/src/value.rs +++ b/buffer/src/value.rs @@ -1660,7 +1660,7 @@ mod alloc_support { use crate::std::{string::String, vec}; use sval::Stream as _; - use sval_derive::*; + use sval_derive_macros::*; #[test] fn is_send_sync() { From 5f59257a3fe40a1ee984c3ce550170bdd82473fe Mon Sep 17 00:00:00 2001 From: KodrAus Date: Thu, 21 Sep 2023 09:52:41 +1000 Subject: [PATCH 2/2] bump to 2.7.1 --- Cargo.toml | 4 ++-- buffer/Cargo.toml | 10 +++++----- derive/Cargo.toml | 6 +++--- derive_macros/Cargo.toml | 2 +- dynamic/Cargo.toml | 4 ++-- flatten/Cargo.toml | 6 +++--- fmt/Cargo.toml | 4 ++-- json/Cargo.toml | 4 ++-- ref/Cargo.toml | 6 +++--- serde/Cargo.toml | 8 ++++---- src/lib.rs | 4 ++-- test/Cargo.toml | 8 ++++---- 12 files changed, 33 insertions(+), 33 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8b9187c2..716a851b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sval" -version = "2.7.0" +version = "2.7.1" authors = ["Ashley Mannix "] edition = "2021" license = "Apache-2.0 OR MIT" @@ -41,7 +41,7 @@ alloc = [] derive = ["dep:sval_derive_macros"] [dependencies.sval_derive_macros] -version = "2.7.0" +version = "2.7.1" path = "derive_macros" optional = true diff --git a/buffer/Cargo.toml b/buffer/Cargo.toml index 7cc2542e..418644ce 100644 --- a/buffer/Cargo.toml +++ b/buffer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sval_buffer" -version = "2.7.0" +version = "2.7.1" authors = ["Ashley Mannix "] edition = "2021" license = "Apache-2.0 OR MIT" @@ -21,17 +21,17 @@ alloc = ["sval/alloc"] no_debug_assertions = [] [dependencies.sval] -version = "2.7.0" +version = "2.7.1" path = "../" [dependencies.sval_ref] -version = "2.7.0" +version = "2.7.1" path = "../ref" [dev-dependencies.sval_derive_macros] -version = "2.7.0" +version = "2.7.1" path = "../derive_macros" [dev-dependencies.sval_test] -version = "2.7.0" +version = "2.7.1" path = "../test" diff --git a/derive/Cargo.toml b/derive/Cargo.toml index b7f7a59c..6e05b201 100644 --- a/derive/Cargo.toml +++ b/derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sval_derive" -version = "2.7.0" +version = "2.7.1" authors = ["Ashley Mannix "] edition = "2021" license = "Apache-2.0 OR MIT" @@ -17,10 +17,10 @@ std = ["sval_flatten?/std"] flatten = ["dep:sval_flatten", "sval_derive_macros/flatten"] [dependencies.sval_derive_macros] -version = "2.7.0" +version = "2.7.1" path = "../derive_macros" [dependencies.sval_flatten] -version = "2.7.0" +version = "2.7.1" path = "../flatten" optional = true diff --git a/derive_macros/Cargo.toml b/derive_macros/Cargo.toml index b3b3473c..3ca6e27b 100644 --- a/derive_macros/Cargo.toml +++ b/derive_macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sval_derive_macros" -version = "2.7.0" +version = "2.7.1" authors = ["Ashley Mannix "] edition = "2021" license = "Apache-2.0 OR MIT" diff --git a/dynamic/Cargo.toml b/dynamic/Cargo.toml index bd0ef3c8..3c1fdd38 100644 --- a/dynamic/Cargo.toml +++ b/dynamic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sval_dynamic" -version = "2.7.0" +version = "2.7.1" authors = ["Ashley Mannix "] edition = "2021" license = "Apache-2.0 OR MIT" @@ -12,5 +12,5 @@ keywords = ["serialization", "no_std"] categories = ["encoding", "no-std"] [dependencies.sval] -version = "2.7.0" +version = "2.7.1" path = "../" diff --git a/flatten/Cargo.toml b/flatten/Cargo.toml index b326dc47..41bf7786 100644 --- a/flatten/Cargo.toml +++ b/flatten/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sval_flatten" -version = "2.7.0" +version = "2.7.1" authors = ["Ashley Mannix "] edition = "2021" license = "Apache-2.0 OR MIT" @@ -16,12 +16,12 @@ alloc = ["sval/alloc", "sval_buffer/alloc"] std = ["alloc", "sval/std", "sval_buffer/std"] [dependencies.sval] -version = "2.7.0" +version = "2.7.1" path = "../" default-features = false [dependencies.sval_buffer] -version = "2.7.0" +version = "2.7.1" path = "../buffer" default-features = false diff --git a/fmt/Cargo.toml b/fmt/Cargo.toml index c3969f82..8fd657de 100644 --- a/fmt/Cargo.toml +++ b/fmt/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sval_fmt" -version = "2.7.0" +version = "2.7.1" authors = ["Ashley Mannix "] edition = "2021" license = "Apache-2.0 OR MIT" @@ -19,7 +19,7 @@ std = ["alloc", "sval/std"] alloc = ["sval/alloc"] [dependencies.sval] -version = "2.7.0" +version = "2.7.1" path = "../" [dependencies.ryu] diff --git a/json/Cargo.toml b/json/Cargo.toml index df4f4dda..2c222521 100644 --- a/json/Cargo.toml +++ b/json/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sval_json" -version = "2.7.0" +version = "2.7.1" authors = ["Ashley Mannix "] edition = "2021" license = "Apache-2.0 OR MIT" @@ -19,7 +19,7 @@ std = ["alloc", "sval/std"] alloc = ["sval/alloc"] [dependencies.sval] -version = "2.7.0" +version = "2.7.1" path = "../" [dependencies.ryu] diff --git a/ref/Cargo.toml b/ref/Cargo.toml index 828d1b27..cd51ef09 100644 --- a/ref/Cargo.toml +++ b/ref/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sval_ref" -version = "2.7.0" +version = "2.7.1" authors = ["Ashley Mannix "] edition = "2021" license = "Apache-2.0 OR MIT" @@ -16,9 +16,9 @@ std = ["alloc", "sval/std"] alloc = ["sval/alloc"] [dependencies.sval] -version = "2.7.0" +version = "2.7.1" path = "../" [dev-dependencies.sval_test] -version = "2.7.0" +version = "2.7.1" path = "../test" diff --git a/serde/Cargo.toml b/serde/Cargo.toml index 8f61d18c..65b2488a 100644 --- a/serde/Cargo.toml +++ b/serde/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sval_serde" -version = "2.7.0" +version = "2.7.1" authors = ["Ashley Mannix "] edition = "2021" license = "Apache-2.0 OR MIT" @@ -19,16 +19,16 @@ std = ["alloc", "serde/std", "sval/std", "sval_buffer/std"] alloc = ["serde/alloc", "sval/alloc", "sval_buffer/alloc"] [dependencies.sval] -version = "2.7.0" +version = "2.7.1" path = "../" [dependencies.sval_buffer] -version = "2.7.0" +version = "2.7.1" path = "../buffer" default-features = false [dependencies.sval_fmt] -version = "2.7.0" +version = "2.7.1" path = "../fmt" [dependencies.serde] diff --git a/src/lib.rs b/src/lib.rs index 1332770b..4499d7a1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,7 +16,7 @@ Add `sval` to your `Cargo.toml`: ```toml [dependencies.sval] -version = "2.7.0" +version = "2.7.1" ``` By default, `sval` doesn't depend on Rust's standard library or integrate @@ -24,7 +24,7 @@ with its collection types. To include them, add the `alloc` or `std` features: ```toml [dependencies.sval] -version = "2.7.0" +version = "2.7.1" features = ["std"] ``` diff --git a/test/Cargo.toml b/test/Cargo.toml index bfa06607..e65ca215 100644 --- a/test/Cargo.toml +++ b/test/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sval_test" -version = "2.7.0" +version = "2.7.1" authors = ["Ashley Mannix "] edition = "2021" license = "Apache-2.0 OR MIT" @@ -12,15 +12,15 @@ keywords = ["serialization", "no_std"] categories = ["encoding", "no-std"] [dependencies.sval] -version = "2.7.0" +version = "2.7.1" path = "../" features = ["std"] [dependencies.sval_fmt] -version = "2.7.0" +version = "2.7.1" path = "../fmt" features = ["std"] [dev-dependencies.sval_dynamic] -version = "2.7.0" +version = "2.7.1" path = "../dynamic"