-
Notifications
You must be signed in to change notification settings - Fork 321
Generating cargo doc for both userland and eBPF program #1260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am not sure this is possible, as the userland and ebpf portions build on different targets. |
It's possible, and not actually that difficult. If you run
If you rename the output of your ebpf module, it's possible to generate docs for both platforms. PR to the template incoming :) Unfortunately you do need to pass |
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: aya-rs/aya#1260
Ok, thank you, I have seen this solution, but I was not sure if renaming the module would cause problems. |
I am trying to generate documentation using
cargo doc
in my aya-rs program, but it is only generating the userland part.I am following the aya-rs template for my project with all the defaults regarding
build.rs
files andCargo.toml
files. When runningcargo doc -r --open --no-deps
I have at the end all the documentation of thefoo
andfoo-common
part, butfoo-ebpf
only returns the content offoo-ebpf/src/lib.rs
.How could I generate documentation for all the project at once, with everything at the right place ? (I would like to avoid generating 2 different docs).
The text was updated successfully, but these errors were encountered: