From 78b66d77634f8915f5e7db0ec801ab4c811483af Mon Sep 17 00:00:00 2001 From: Bo Lin Date: Wed, 22 Apr 2026 15:51:23 +0000 Subject: [PATCH] Bump version 0.9.5 --- Cargo.toml | 4 ++-- dbt-yaml/Cargo.toml | 2 +- dbt-yaml/src/value/de/borrowed.rs | 4 +++- dbt-yaml/src/value/de/owned.rs | 5 +++-- dbt-yaml/tests/test_error.rs | 3 ++- dbt-yaml/tests/test_spanned.rs | 3 ++- dbt-yaml_derive/Cargo.toml | 2 +- dbt-yaml_schemars_derive/Cargo.toml | 2 +- 8 files changed, 15 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2956e8b..b724559 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,5 +8,5 @@ resolver = "2" [workspace.dependencies] "dbt-yaml" = { path = "dbt-yaml" } -"dbt-yaml_derive" = { version = "0.9.4", path = "dbt-yaml_derive" } -"dbt-yaml_schemars_derive" = { version = "0.9.4", path = "dbt-yaml_schemars_derive" } +"dbt-yaml_derive" = { version = "0.9.5", path = "dbt-yaml_derive" } +"dbt-yaml_schemars_derive" = { version = "0.9.5", path = "dbt-yaml_schemars_derive" } diff --git a/dbt-yaml/Cargo.toml b/dbt-yaml/Cargo.toml index e313a9f..023a7a4 100644 --- a/dbt-yaml/Cargo.toml +++ b/dbt-yaml/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dbt-yaml" -version = "0.9.4" +version = "0.9.5" authors = ["Bo Lin ", "David Tolnay "] categories = ["encoding", "parser-implementations"] description = "YAML data format for Serde" diff --git a/dbt-yaml/src/value/de/borrowed.rs b/dbt-yaml/src/value/de/borrowed.rs index 4056378..3c7a845 100644 --- a/dbt-yaml/src/value/de/borrowed.rs +++ b/dbt-yaml/src/value/de/borrowed.rs @@ -940,7 +940,9 @@ impl<'de, 'u, 'f> Deserializer<'de> for ValueRefDeserializer<'de, '_, 'u, 'f> { self.value.broadcast_end_mark(); maybe_why_not!( self.value, - visitor.visit_unit().map_err(|e| error::set_span(e, span, path)) + visitor + .visit_unit() + .map_err(|e| error::set_span(e, span, path)) ) } } diff --git a/dbt-yaml/src/value/de/owned.rs b/dbt-yaml/src/value/de/owned.rs index 7237817..b88b57d 100644 --- a/dbt-yaml/src/value/de/owned.rs +++ b/dbt-yaml/src/value/de/owned.rs @@ -899,7 +899,9 @@ impl<'de, 'u, 'f> Deserializer<'de> for ValueDeserializer<'_, 'u, 'f> { let path = self.path; self.value.broadcast_end_mark(); drop(self); - visitor.visit_unit().map_err(|e| error::set_span(e, span, path)) + visitor + .visit_unit() + .map_err(|e| error::set_span(e, span, path)) } } @@ -1603,4 +1605,3 @@ impl<'de, 'r, 'f> Deserializer<'de> for FlattenDeserializer<'_, 'r, 'f> { map enum identifier } } - diff --git a/dbt-yaml/tests/test_error.rs b/dbt-yaml/tests/test_error.rs index d8be32b..29d9987 100644 --- a/dbt-yaml/tests/test_error.rs +++ b/dbt-yaml/tests/test_error.rs @@ -115,7 +115,8 @@ fn test_duplicate_scalar_anchor() { second: &dup scalar_b result: *dup "}; - let expected = "found duplicate anchor (first occurrence at line 1 column 8) at line 2 column 9"; + let expected = + "found duplicate anchor (first occurrence at line 1 column 8) at line 2 column 9"; test_error::(yaml, expected); } diff --git a/dbt-yaml/tests/test_spanned.rs b/dbt-yaml/tests/test_spanned.rs index 882b23d..b5e4f43 100644 --- a/dbt-yaml/tests/test_spanned.rs +++ b/dbt-yaml/tests/test_spanned.rs @@ -366,7 +366,8 @@ fn test_transform_spanned() { #[cfg(feature = "filename")] { let spanned_point: Spanned = dbt_yaml::from_str(yaml).unwrap(); - let transformed = spanned_point.map_span(|span| span.with_filename(std::path::PathBuf::from("newfile.yml"))); + let transformed = spanned_point + .map_span(|span| span.with_filename(std::path::PathBuf::from("newfile.yml"))); assert_eq!(*transformed, Point { x: 1.0, y: 2.0 }); assert_eq!( transformed.span().filename.as_deref(), diff --git a/dbt-yaml_derive/Cargo.toml b/dbt-yaml_derive/Cargo.toml index d178dbb..dcbaa9e 100644 --- a/dbt-yaml_derive/Cargo.toml +++ b/dbt-yaml_derive/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2024" name = "dbt-yaml_derive" -version = "0.9.4" +version = "0.9.5" description = "Derive macros for dbt-yaml" authors = ["Bo Lin "] license = "MIT OR Apache-2.0" diff --git a/dbt-yaml_schemars_derive/Cargo.toml b/dbt-yaml_schemars_derive/Cargo.toml index 084127c..828906c 100644 --- a/dbt-yaml_schemars_derive/Cargo.toml +++ b/dbt-yaml_schemars_derive/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "dbt-yaml_schemars_derive" repository = "https://github.com/sdf-labs/dbt-yaml" rust-version = "1.88" -version = "0.9.4" +version = "0.9.5" [lib] proc-macro = true