From de80ac124326deb5728b435650fdc78e52697018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Przytu=C5=82a?= <59482568+wprzytula@users.noreply.github.com> Date: Sun, 8 Dec 2024 11:20:40 +0000 Subject: [PATCH] Merge pull request #1145 from wprzytula/add-automatically-derived macros: generate automatically_derived attribute (cherry picked from commit 7710af03ef7e7367627375043959b39924d7c5a4) --- scylla-macros/src/deserialize/mod.rs | 1 + scylla-macros/src/serialize/row.rs | 1 + scylla-macros/src/serialize/value.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/scylla-macros/src/deserialize/mod.rs b/scylla-macros/src/deserialize/mod.rs index 2eb1819e46..074f37d8b1 100644 --- a/scylla-macros/src/deserialize/mod.rs +++ b/scylla-macros/src/deserialize/mod.rs @@ -115,6 +115,7 @@ where let items = items.into_iter(); parse_quote! { + #[automatically_derived] impl<#frame_lifetime, #metadata_lifetime, #impl_generics> #trait_<#frame_lifetime, #metadata_lifetime> for #struct_name #ty_generics where #(#predicates),* diff --git a/scylla-macros/src/serialize/row.rs b/scylla-macros/src/serialize/row.rs index ffa2c7a2b4..a1695fa57c 100644 --- a/scylla-macros/src/serialize/row.rs +++ b/scylla-macros/src/serialize/row.rs @@ -102,6 +102,7 @@ pub(crate) fn derive_serialize_row(tokens_input: TokenStream) -> Result