mirror of https://github.com/aya-rs/aya
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
349 B
Rust
14 lines
349 B
Rust
4 years ago
|
use bindgen::{self, Builder, EnumVariation};
|
||
|
|
||
|
pub fn builder() -> Builder {
|
||
|
let bindgen = bindgen::builder()
|
||
|
.use_core()
|
||
|
.ctypes_prefix("::aya_bpf_cty")
|
||
|
.layout_tests(false)
|
||
|
.clang_arg("-Wno-unknown-attributes")
|
||
|
.default_enum_style(EnumVariation::Consts)
|
||
|
.prepend_enum_name(false);
|
||
|
|
||
|
bindgen
|
||
|
}
|