Skip to content

Commit

Permalink
Codegen: add #[codec(dumb_trait_bound)] (#1630)
Browse files Browse the repository at this point in the history
closes #1603
  • Loading branch information
pkhry authored Jun 5, 2024
1 parent 6e51b68 commit 6196d26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6196d26

Please sign in to comment.