Always wondered how to keep your README (or other markdown files) code examples up-to-date in your @rustlang project? You might be interested by https://blog.guillaume-gomez.fr/articles/2019-04-13+Keeping+Rust+projects%27+README.md+code+examples+up-to-date …
Yeah mostly I'm just looking for a way to do this without adding a doc-comment dependency that must be inherited by all dependents.
-
-
A solution could be to pass the `test` cfg when rustdoc is running in test mode. Can be done pretty easily. Does that sound ok to you?
-
I think so!
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.