Merge pull request #517 from dmitris/derive-debug

aya-tool: remove outdated workaround
pull/523/head
vadorovsky 2 years ago committed by GitHub
commit bb1b39535c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,7 +5,7 @@ authors = ["Alessandro Decina <alessandro.d@gmail.com>"]
edition = "2021"
[dependencies]
bindgen = "0.63"
bindgen = "0.64"
clap = { version = "4", features = ["derive"] }
anyhow = "1"
thiserror = "1"

@ -20,11 +20,4 @@ pub fn bpf_builder() -> Builder {
.clang_arg("-Wno-unknown-attributes")
.default_enum_style(EnumVariation::ModuleConsts)
.prepend_enum_name(false)
// NOTE(vadorovsky): It's a workaround for the upstream bindgen issue:
// https://github.com/rust-lang/rust-bindgen/issues/2083
// tl;dr: Rust nightly complains about #[repr(packed)] structs deriving
// Debug without Copy.
// It needs to be fixed properly upstream, but for now we have to
// disable Debug derive here.
.derive_debug(false)
}

Loading…
Cancel
Save