We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The basic example code is currently repeated in three places:
Moreover the src/lib.rs docstring repeats a lot of material in the README.md.
src/lib.rs
README.md
This is rather annoying to maintain. Are there some clever tricks possible so we can reuse the code?
Moreover, the README.md code is never type-checked (the rest is), and the example code is never actually executed.
The text was updated successfully, but these errors were encountered:
Regarding the type-check and tests on README.md, it looks rustdoc offers a feature to run tests based on the code in README.md.
rustdoc
This will include your README as documentation on the hidden struct ReadmeDoctests, which will then be tested alongside the rest of your doctests. https://doc.rust-lang.org/rustdoc/write-documentation/documentation-tests.html#include-items-only-when-collecting-doctests
Sorry, something went wrong.
No branches or pull requests
The basic example code is currently repeated in three places:
Moreover the
src/lib.rs
docstring repeats a lot of material in theREADME.md
.This is rather annoying to maintain. Are there some clever tricks possible so we can reuse the code?
Moreover, the
README.md
code is never type-checked (the rest is), and the example code is never actually executed.The text was updated successfully, but these errors were encountered: