Turns out a simple cargo test doesn't run doctests for binaries. It does run them for libraries though.
The solution is to separate the test command into two cargo test --all-targets (which, unintuitively, doesn't invoke doc tests https://github.com/rust-lang/cargo/issues/6669), and then run cargo test --doc.
Turns out a simple
cargo test
doesn't run doctests for binaries. It does run them for libraries though.The solution is to separate the test command into two
cargo test --all-targets
(which, unintuitively, doesn't invoke doc tests https://github.com/rust-lang/cargo/issues/6669), and then runcargo test --doc
.This doesn't solve https://github.com/rust-marker/marker/issues/303 though.