Rename output of -ebpf crate

This makes it possible to run `cargo doc --workspace` and get both the
eBPF and normal crate and their dependencies in the output docs.

Fixes: https://github.com/aya-rs/aya/issues/1260
pull/146/head
miniduikboot 4 months ago
parent 0158e1b8e0
commit 59d0627d72

@ -13,5 +13,5 @@ aya-log-ebpf = { workspace = true }
which = { workspace = true }
[[bin]]
name = "{{ project-name }}"
name = "{{ project-name }}_ebpf"
path = "src/main.rs"

@ -94,7 +94,7 @@ async fn main() -> anyhow::Result<()> {
// reach for `Bpf::load_file` instead.
let mut ebpf = aya::Ebpf::load(aya::include_bytes_aligned!(concat!(
env!("OUT_DIR"),
"/{{project-name}}"
"/{{project-name}}_ebpf"
)))?;
match aya_log::EbpfLogger::init(&mut ebpf) {
Err(e) => {

Loading…
Cancel
Save