Skip to content

Replace "cfg(test)" with "cfg(doctest)" for readme testing#420

Open
GuillaumeGomez wants to merge 2 commits intohyperium:masterfrom
GuillaumeGomez:patch-1
Open

Replace "cfg(test)" with "cfg(doctest)" for readme testing#420
GuillaumeGomez wants to merge 2 commits intohyperium:masterfrom
GuillaumeGomez:patch-1

Conversation

@GuillaumeGomez
Copy link
Copy Markdown
Contributor

Rustdoc now passes "doctest" when running in test mode.

Comment thread .github/workflows/ci.yml
- stable
- beta
- nightly
- 1.39.0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is the MSRV.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I can add a version detection for test builds and if too low, I will use "disable-doctest" feature (or another feature name) so you won't have build failures on versions lower than 1.40. What do you think?

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