Skip to content

Generating cargo doc for both userland and eBPF program #1260

@ErrorTeaPot

Description

@ErrorTeaPot

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 and Cargo.toml files. When running cargo doc -r --open --no-deps I have at the end all the documentation of the foo and foo-common part, but foo-ebpf only returns the content of foo-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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions