aya-rs/book

examples/myapp-02 build error on aya_gen::btf_types

Closed this issue · 0 comments

After removing Cargo.lock, getting the following build error in examplse/myapp-02:

   Compiling xtask v0.1.0 (/Users/dmitris/dev/hack/gh/aya-rs/book/examples/myapp-02/xtask)
error[E0432]: unresolved import `aya_gen::btf_types`
 --> xtask/src/codegen.rs:1:5
  |
1 | use aya_gen::btf_types;
  |     ^^^^^^^^^^^^^^^^^^ no `btf_types` in the root

For more information about this error, try `rustc --explain E0432`.
error: could not compile `xtask` due to previous error

Apparently an API has changed and the examples need to be updated (myapp-03 has the same issue).
@alessandrod provided the link to aya-rs/aya#297 in Discord.