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 …
-
-
If I add `#[cfg(test)]`, the doc comment will only be generated when running `cargo test` (which seems ok, right?). However, what's important is that the doc is generated when *rustdoc* runs, so if I keep this cfg, rustdoc won't see it.
-
Could you use `#[cfg(rustdoc)]` instead? But maybe that won't pick up dev-dependencies..?
- 5 more replies
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.