From b9c7635db5ebcf4db3e6efd03b5401f1cdb5694b Mon Sep 17 00:00:00 2001 From: owjs3901 Date: Wed, 28 Jan 2026 01:27:49 +0900 Subject: [PATCH 1/2] Fix deploy issue --- .changepacks/changepack_log_PuelXaL-yjqfXQx8crqM_.json | 1 + .github/workflows/CI.yml | 2 ++ Cargo.lock | 6 +++--- crates/vespera_macro/src/schema_macro.rs | 8 +++++--- 4 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 .changepacks/changepack_log_PuelXaL-yjqfXQx8crqM_.json diff --git a/.changepacks/changepack_log_PuelXaL-yjqfXQx8crqM_.json b/.changepacks/changepack_log_PuelXaL-yjqfXQx8crqM_.json new file mode 100644 index 0000000..10cf10d --- /dev/null +++ b/.changepacks/changepack_log_PuelXaL-yjqfXQx8crqM_.json @@ -0,0 +1 @@ +{"changes":{"crates/vespera_core/Cargo.toml":"Patch","crates/vespera/Cargo.toml":"Patch","crates/vespera_macro/Cargo.toml":"Patch"},"note":"Fix deploy issue","date":"2026-01-27T16:26:51.362187700Z"} \ No newline at end of file diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 345d762..7a2f225 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -50,6 +50,8 @@ jobs: echo 'use_small_heuristics = "Default"' >> .rustfmt.toml cargo fmt cargo tarpaulin --out Lcov Stdout --engine llvm + - name: Test Deploy + run: cargo publish --dry-run - name: Upload to codecov.io uses: codecov/codecov-action@v5 with: diff --git a/Cargo.lock b/Cargo.lock index e18da50..f6380c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3073,7 +3073,7 @@ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "vespera" -version = "0.1.24" +version = "0.1.25" dependencies = [ "axum", "axum-extra", @@ -3086,7 +3086,7 @@ dependencies = [ [[package]] name = "vespera_core" -version = "0.1.24" +version = "0.1.25" dependencies = [ "rstest", "serde", @@ -3095,7 +3095,7 @@ dependencies = [ [[package]] name = "vespera_macro" -version = "0.1.24" +version = "0.1.25" dependencies = [ "anyhow", "insta", diff --git a/crates/vespera_macro/src/schema_macro.rs b/crates/vespera_macro/src/schema_macro.rs index d969c9b..4608bfe 100644 --- a/crates/vespera_macro/src/schema_macro.rs +++ b/crates/vespera_macro/src/schema_macro.rs @@ -454,7 +454,6 @@ fn find_struct_from_path(ty: &Type) -> Option { /// Or: `schema_type!(NewTypeName from SourceType, omit = ["field1", "field2"])` /// Or: `schema_type!(NewTypeName from SourceType, rename = [("old", "new")])` /// Or: `schema_type!(NewTypeName from SourceType, add = [("field": Type)])` -#[derive(Debug)] pub struct SchemaTypeInput { /// The new type name to generate pub new_type: Ident, @@ -994,8 +993,11 @@ mod tests { let tokens = quote::quote!(UserDTO from User, unknown = ["a"]); let result: syn::Result = syn::parse2(tokens); assert!(result.is_err()); - let err = result.unwrap_err().to_string(); - assert!(err.contains("unknown parameter")); + // Note: Can't use unwrap_err() because SchemaTypeInput doesn't impl Debug (contains syn::Type) + match result { + Err(e) => assert!(e.to_string().contains("unknown parameter")), + Ok(_) => panic!("Expected error"), + } } // Tests for `add` parameter From 96fe6cf17d58c783fedc388a408bbe38da206d4f Mon Sep 17 00:00:00 2001 From: owjs3901 Date: Wed, 28 Jan 2026 01:34:27 +0900 Subject: [PATCH 2/2] Fix action --- .github/workflows/CI.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 7a2f225..97b9987 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -37,6 +37,8 @@ jobs: run: cargo check - name: Lint run: cargo clippy --all-targets --all-features -- -D warnings + - name: Test Deploy + run: cargo publish --dry-run - name: Test run: | # rust coverage issue @@ -50,8 +52,6 @@ jobs: echo 'use_small_heuristics = "Default"' >> .rustfmt.toml cargo fmt cargo tarpaulin --out Lcov Stdout --engine llvm - - name: Test Deploy - run: cargo publish --dry-run - name: Upload to codecov.io uses: codecov/codecov-action@v5 with: