Skip to content
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

Enable the cfg_doc feature on docs.rs #4064

Merged
merged 3 commits into from
Jul 10, 2023
Merged

Enable the cfg_doc feature on docs.rs #4064

merged 3 commits into from
Jul 10, 2023

Conversation

Michael-F-Bryan
Copy link
Contributor

@Michael-F-Bryan Michael-F-Bryan commented Jul 10, 2023

Description

This PR makes sure docs.rs enables the doc_cfg and auto_doc_cfg features (see rust-lang/rust#43781) when generating documentation.

I was checking this locally using the following command:

$ RUSTFLAGS="--cfg=docsrs" RUSTDOCFLAGS="--cfg=docsrs" cargo +nightly d --package=wasmer-wasix --open

It doesn't 100% work for the wasmer crate because the way we use #[cfg] to switch between backing implementations screws things up, but the other crates with simpler conditional compilation stories are documented as expected. I'm not too concerned though, because #4033 will fix things properly.

Fixes #4039.

@Michael-F-Bryan Michael-F-Bryan marked this pull request as ready for review July 10, 2023 05:13
@Michael-F-Bryan Michael-F-Bryan changed the title Enable the cfg_doc feature on docs.rs/ Enable the cfg_doc feature on docs.rs Jul 10, 2023
lib/cli/Cargo.toml Show resolved Hide resolved
lib/api/Cargo.toml Show resolved Hide resolved
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.

Enable the cfg_doc feature on docs.rs
2 participants