Skip to content

Commit

Permalink
aya/programs: export some missing modules
Browse files Browse the repository at this point in the history
Previously we were only re-exporting the program types from these, so
links and other pub types were not exported.
  • Loading branch information
alessandrod committed Feb 6, 2024
1 parent 0f6a734 commit d570450
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
20 changes: 12 additions & 8 deletions aya/src/programs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
//! [`Bpf::program`]: crate::Bpf::program
//! [`Bpf::program_mut`]: crate::Bpf::program_mut
//! [`maps`]: crate::maps

// modules we don't export
mod probe;
mod utils;

// modules we explicitly export so their pub items (Links etc) get exported too
pub mod cgroup_device;
pub mod cgroup_skb;
pub mod cgroup_sock;
Expand All @@ -50,18 +56,16 @@ pub mod lirc_mode2;
pub mod lsm;
pub mod perf_attach;
pub mod perf_event;
mod probe;
mod raw_trace_point;
mod sk_lookup;
mod sk_msg;
mod sk_skb;
mod sock_ops;
mod socket_filter;
pub mod raw_trace_point;
pub mod sk_lookup;
pub mod sk_msg;
pub mod sk_skb;
pub mod sock_ops;
pub mod socket_filter;
pub mod tc;
pub mod tp_btf;
pub mod trace_point;
pub mod uprobe;
mod utils;
pub mod xdp;

use std::{
Expand Down
1 change: 1 addition & 0 deletions aya/src/programs/sk_lookup.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Programmable socket lookup.
use std::os::fd::AsFd;

use super::links::FdLink;
Expand Down

0 comments on commit d570450

Please sign in to comment.