Codegen: add #[codec(dumb_trait_bound)] (#1630)

closes #1603
This commit is contained in:
Pavlo Khrystenko
2024-06-05 17:45:09 +02:00
committed by GitHub
parent 6e51b68397
commit 6196d26ced
+2 -1
View File
@@ -342,10 +342,11 @@ fn default_derives(crate_path: &syn::Path) -> DerivesRegistry {
parse_quote!(Debug),
];
let attributes: [syn::Attribute; 3] = [
let attributes: [syn::Attribute; 4] = [
parse_quote!(#[encode_as_type(crate_path = #encode_crate_path)]),
parse_quote!(#[decode_as_type(crate_path = #decode_crate_path)]),
parse_quote!(#[codec(crate = #crate_path::ext::codec)]),
parse_quote!(#[codec(dumb_trait_bound)]),
];
let mut derives_registry = DerivesRegistry::new();