Skip to content

Commit

Permalink
renaming aya-gen to aya-tool (#10)
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Becker <[email protected]>
  • Loading branch information
jkbecker and Johannes Becker authored Sep 20, 2022
1 parent ed3b022 commit fc1ae32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions xtask/src/codegen.rs
Original file line number Diff line number Diff line change
@@ -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,
&[],
Expand Down

0 comments on commit fc1ae32

Please sign in to comment.