We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48e7547 commit 94c67b8Copy full SHA for 94c67b8
bindgen/codegen/mod.rs
@@ -1078,6 +1078,14 @@ impl CodeGenerator for Type {
1078
.iter()
1079
.map(|s| s.parse().unwrap()),
1080
);
1081
+ attributes.extend(
1082
+ item.annotations().attributes()
1083
+ .iter()
1084
+ .map(|s| s.parse().unwrap()),
1085
+ );
1086
+
1087
1088
1089
1090
quote! {
1091
#( #attributes )*
0 commit comments