I have a lib crate that also has one bin.
src/doc.rs which contains a single
/*! ... */ comment describing the crate and added
mod doc; to
Then I ran
rustdoc -h. This says
rustdoc [options] <input> and then explains all the options: but does not say what
<input> should be.
Next I ran
rustdoc src/lib.rs and that produced an error:
error: environment variable `CARGO_PKG_VERSION` not defined --> src/plan/mod.rs:28:32 | 28 | env!("CARGO_PKG_VERSION")); | ^^^^^^^^^^^^^^^^^^^^^^^^^
I did look at the manual (which is where I realised I had to pass
src/lib.rs), but didn’t find a solution.