diff --git a/aya-gen/src/bindgen.rs b/aya-gen/src/bindgen.rs index fc38bb3a..0f6ba8ec 100644 --- a/aya-gen/src/bindgen.rs +++ b/aya-gen/src/bindgen.rs @@ -3,6 +3,7 @@ use bindgen::{self, Builder, EnumVariation}; pub fn user_builder() -> Builder { let bindgen = bindgen::builder() .layout_tests(false) + .generate_comments(false) .prepend_enum_name(false) .default_enum_style(EnumVariation::Rust { non_exhaustive: false, @@ -16,6 +17,7 @@ pub fn bpf_builder() -> Builder { .use_core() .ctypes_prefix("::aya_bpf_cty") .layout_tests(false) + .generate_comments(false) .clang_arg("-Wno-unknown-attributes") .default_enum_style(EnumVariation::ModuleConsts) .prepend_enum_name(false);