Closed CjS77 closed 5 years ago
After playing around, it's something that changed between nightly-2019-07-31
and nightly-2019-07-08
. Updating the toolchain resolves the issue.
Yup! Sorry for the breakage, in fact this is why the 1.0.4 version exists: versions 1.0.2 and below work on nightlies with the old doc(include)
path format, but are broken on new nightlies, while 1.0.4 and above work on new nightlies but are broken on old nightlies. (1.0.3 effectively doesn't exist, it was supposed to be 1.0.4 but I made a mistake while tagging and publishing it, so it's immediately yanked).
Hi I got this one too, and I understand from what you suggested that I need to update my nightly version, but I have two questions regarding this matter:
Unfortunately, as far as I'm aware, doc(include)
annotations add attributes to source items unconditionally, regardless of whether rustc
is building docs or not, so adding the annotations makes rustc
look for the markdown files regardless of what type of compilation it does.
The relative doc paths are broken when compiling 1.0.4 as a dependency. This was on a Mac with Rust 1.38.0-nightly (4b65a86eb 2019-07-15), but I assume is a global issue. To reproduce:
cargo new --bin test-bp
Edit
Cargo.toml
: