Skip to content

docs: include modules behind feature flags#492

Open
landreussi wants to merge 3 commits into
cloudflare:masterfrom
landreussi:master
Open

docs: include modules behind feature flags#492
landreussi wants to merge 3 commits into
cloudflare:masterfrom
landreussi:master

Conversation

@landreussi

@landreussi landreussi commented Jul 12, 2026

Copy link
Copy Markdown

This patch improves the way the documentation is generated by docs.rs; it wasn't showing modules included by feature flags.

Before this patch (https://docs.rs/boringtun):
Screenshot 2026-07-11 at 21 41 18

After this patch (by running cargo doc --all-features --no-deps):
Screenshot 2026-07-11 at 21 41 49

Also added a GHA job to check if docs.rs will generate docs successfully to this patch and future patches, and enforced rustdocs warnings as errors, but let me know if you guys don't like this, I think this is a nice-to-have only.

Now `rustdoc` includes modules activated by feature flags in docs.rs.
@landreussi
landreussi marked this pull request as ready for review July 12, 2026 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant