Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Skip Doctests When Running cargo test

I don't use doctests when I'm working on small, one-off Rust apps. The default functionality of `cargo test`` it so run them. The result is an empty report that shows up last. It's no big deal but it throws me off seeing `0 passed`` in the report.

I use this in my `cargo.toml`` file to turn off the tests and the subsequent report:

Code

[lib]
doctest = false

It's a nice little quality of live improvement.