aya-rs / book

The Aya Book is an introductory book about using the Rust Programming Language and Aya library to build extended Berkley Packet Filter (eBPF) programs.
https://aya-rs.dev/book/
Apache License 2.0
81 stars 60 forks source link

Example myapp-03 codegen requires libclang, please add to documentation #78

Open FallingSnow opened 2 years ago

FallingSnow commented 2 years ago

I spent some time trying to track down the cargo xtask codegen error I was running into while trying to run example myapp-03. The error is somewhat misleading with the message No such file or directory..

I was able to debug this by using the bindgen-cli to try to complete the same task which resulted in a libclang missing error. After installing clang the example codegen completed successfully.

I suggest adding libclang as a dependency in the readme.