aya-gen: don't generate doc comments

pull/1/head
Alessandro Decina 4 years ago
parent 30d2b25f11
commit 9595bd4571

@ -3,6 +3,7 @@ use bindgen::{self, Builder, EnumVariation};
pub fn user_builder() -> Builder { pub fn user_builder() -> Builder {
let bindgen = bindgen::builder() let bindgen = bindgen::builder()
.layout_tests(false) .layout_tests(false)
.generate_comments(false)
.prepend_enum_name(false) .prepend_enum_name(false)
.default_enum_style(EnumVariation::Rust { .default_enum_style(EnumVariation::Rust {
non_exhaustive: false, non_exhaustive: false,
@ -16,6 +17,7 @@ pub fn bpf_builder() -> Builder {
.use_core() .use_core()
.ctypes_prefix("::aya_bpf_cty") .ctypes_prefix("::aya_bpf_cty")
.layout_tests(false) .layout_tests(false)
.generate_comments(false)
.clang_arg("-Wno-unknown-attributes") .clang_arg("-Wno-unknown-attributes")
.default_enum_style(EnumVariation::ModuleConsts) .default_enum_style(EnumVariation::ModuleConsts)
.prepend_enum_name(false); .prepend_enum_name(false);

Loading…
Cancel
Save