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

Use docsrs to detect being built on docs.rs #82

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

waywardmonkeys
Copy link
Contributor

As described on https://docs.rs/about/builds, the correct way now to check for a build happening at docs.rs is to check for the docsrs cfg.

This also prevents Rust 1.80 and later from warning about the unexpected_cfg for docs.

As described on <https://docs.rs/about/builds>, the correct way
now to check for a build happening at docs.rs is to check for the
`docsrs` cfg.

This also prevents Rust 1.80 and later from warning about the
`unexpected_cfg` for `docs`.
Copy link
Owner

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@teoxoy teoxoy merged commit b440063 into teoxoy:main Sep 13, 2024
7 checks passed
@waywardmonkeys waywardmonkeys deleted the use-docsrs-feature branch September 13, 2024 13:49
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.

2 participants