Skip to content

Commit 94c67b8

Browse files
committed
attempt adding attributes via annotations
1 parent 48e7547 commit 94c67b8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bindgen/codegen/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,14 @@ impl CodeGenerator for Type {
10781078
.iter()
10791079
.map(|s| s.parse().unwrap()),
10801080
);
1081+
attributes.extend(
1082+
item.annotations().attributes()
1083+
.iter()
1084+
.map(|s| s.parse().unwrap()),
1085+
);
1086+
1087+
1088+
10811089

10821090
quote! {
10831091
#( #attributes )*

0 commit comments

Comments
 (0)