Преглед на файлове

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 <vadorovsky@gmail.com>
Michal Rostecki преди 2 години
родител
ревизия
3262f85925
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      bpf/aya-bpf/src/helpers.rs

+ 1 - 0
bpf/aya-bpf/src/helpers.rs

@@ -10,6 +10,7 @@
 use core::mem::{self, MaybeUninit};
 use core::mem::{self, MaybeUninit};
 
 
 pub use aya_bpf_bindings::helpers as gen;
 pub use aya_bpf_bindings::helpers as gen;
+#[doc(hidden)]
 pub use gen::*;
 pub use gen::*;
 
 
 use crate::cty::{c_char, c_long, c_void};
 use crate::cty::{c_char, c_long, c_void};