From 189afc1cc171f345fbae7074178045ce643c81a5 Mon Sep 17 00:00:00 2001 From: Johannes Becker Date: Tue, 20 Sep 2022 15:06:50 +0000 Subject: [PATCH] renaming aya-gen to aya-tool --- xtask/Cargo.toml | 2 +- xtask/src/codegen.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index 36d1af6..0b9b848 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -6,6 +6,6 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -aya-gen = { git = "https://github.com/aya-rs/aya", branch = "main" } +aya-tool = { git = "https://github.com/aya-rs/aya", branch = "main" } structopt = { version = "0.3.26", default-features = false } anyhow = "1.0.58" diff --git a/xtask/src/codegen.rs b/xtask/src/codegen.rs index 097b5e7..b39596b 100644 --- a/xtask/src/codegen.rs +++ b/xtask/src/codegen.rs @@ -1,10 +1,10 @@ -use aya_gen::generate::InputFile; +use aya_tool::generate::InputFile; use std::{fs::File, io::Write, path::PathBuf}; pub fn generate() -> Result<(), anyhow::Error> { let dir = PathBuf::from("tcbpftest-ebpf/src"); let names: Vec<&str> = vec!["ethhdr", "iphdr", "tcphdr", "udphdr"]; - let bindings = aya_gen::generate( + let bindings = aya_tool::generate( InputFile::Btf(PathBuf::from("/sys/kernel/btf/vmlinux")), &names, &[],