From 3262f85925459bdc636afccadc3ae3fc926dc9ac Mon Sep 17 00:00:00 2001 From: Michal Rostecki Date: Fri, 20 May 2022 15:00:24 +0200 Subject: [PATCH] bpf(doc): Hide docs of bindings Before this change, documentation of helper functions (defined by us, not bindings) were not visible, because `use gen::*` was overriding them with helpers coming from aya-bpf-bindings, which have the same names and no docs. Signed-off-by: Michal Rostecki --- bpf/aya-bpf/src/helpers.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/bpf/aya-bpf/src/helpers.rs b/bpf/aya-bpf/src/helpers.rs index db29b0b7..7fd6f8da 100644 --- a/bpf/aya-bpf/src/helpers.rs +++ b/bpf/aya-bpf/src/helpers.rs @@ -10,6 +10,7 @@ use core::mem::{self, MaybeUninit}; pub use aya_bpf_bindings::helpers as gen; +#[doc(hidden)] pub use gen::*; use crate::cty::{c_char, c_long, c_void};