You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run cargo doc --open, the documentation fails to generate. The command results in a few different errors, which I'll paste in full below. The expectation is that the documentation is generated. Also, I'm not using this crate directly as a dependency, but I guess another crate that I am using is. I'm currently using the nightly toolchain but I've also attempted this with the stable build. I've run cargo clean and rebuilt everything and I've also completely wiped the cache in the .cargo directory to force a download of all the crates. If this isn't related to typenum specifically, I apologize. Any help would be greatly appreciated.
Error
error: "C:\Users\Andrew.leverette\Documents\Workspace\antage\antage-modules\antage-data-pipeline\target\doc\src\typenum\Users\Andrew.leverette\Documents\Workspace\antage\antage-modults\Workspace\antage\antage-modules\antage-data-pipeline\target\debug\build\typenum-28f98d028fa98396\out\consts.rs.html": The system cannot find the path specified. (os error 3)
error: couldn't generate documentation: I/O error
error: Could not document `typenum`.
Caused by:
process didn't exit successfully: `rustdoc --crate-type lib --crate-name typenum 'C:\Users\Andrew.leverette\.cargo\registry\src\github.com-1ecc6299don=diagnostic-rendered-ansi -L 'b9ec823\typenum-1.12.0\src\lib.rs' --cap-lints allow -o 'C:\Users\Andrew.leverette\Documents\Workspace\antage\antage-modules\antage-data-pipeline\targode: 1)et\doc' --error-format=json --json=diagnostic-rendered-ansi -L 'dependency=C:\Users\Andrew.leverette\Documents\Workspace\antage\antage-modules\antage-data-pipeline\target\debug\deps' --crate-version 1.12.0` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: build failed
This looks like an issue with the generated code and windows paths. I don't have a windows machine with Rust to test, but it might be worth trying with the feature force_unix_path_separator. I don't expect that to be better, but it's worth a try (and I think it should generally work on windows so long as you're not cross-compiling).
Description
When I run
cargo doc --open
, the documentation fails to generate. The command results in a few different errors, which I'll paste in full below. The expectation is that the documentation is generated. Also, I'm not using this crate directly as a dependency, but I guess another crate that I am using is. I'm currently using the nightly toolchain but I've also attempted this with the stable build. I've runcargo clean
and rebuilt everything and I've also completely wiped the cache in the.cargo
directory to force a download of all the crates. If this isn't related to typenum specifically, I apologize. Any help would be greatly appreciated.Error
Current Toolchain
The text was updated successfully, but these errors were encountered: