Open mintlu8 opened 2 weeks ago
I'm currently trying out:
PS C:\Users\BenjaminBrienen\source\bevy> set RUSTDOCFLAGS="--cfg docsrs" ; cargo +nightly doc --workspace --all-features --no-deps --document-private-items --keep-going
It's kind of stuck on the last step doc.txt
Ok, it finally finished successfully. I can't reproduce the issue.
Documenting bevy v0.15.0-dev (C:\Users\BenjaminBrienen\source\bevy)
Documenting errors v0.0.0 (C:\Users\BenjaminBrienen\source\bevy\errors)
Documenting bevy_mobile_example v0.0.0 (C:\Users\BenjaminBrienen\source\bevy\examples\mobile)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 6m 21s
Generated C:\Users\BenjaminBrienen\source\bevy\target\doc\bevy\index.html and 57 other files
Ok, it finally finished successfully. I can't reproduce the issue.
Documenting bevy v0.15.0-dev (C:\Users\BenjaminBrienen\source\bevy) Documenting errors v0.0.0 (C:\Users\BenjaminBrienen\source\bevy\errors) Documenting bevy_mobile_example v0.0.0 (C:\Users\BenjaminBrienen\source\bevy\examples\mobile) Finished `dev` profile [unoptimized + debuginfo] target(s) in 6m 21s Generated C:\Users\BenjaminBrienen\source\bevy\target\doc\bevy\index.html and 57 other files
The problem goes away with --no-deps.
The tag didn't actually work if I look at the output
I think I was missing RUSTFLAGS='--cfg docsrs_dep'
@MrGVSV I get this when building the docs. Do you have any insight as to why the the marker isn't working?
set RUSTDOCFLAGS="--cfg docsrs" ; set RUSTFLAGS='--cfg docsrs_dep' ; cargo +nightly doc --workspace --all-features --no-deps --document-private-items --keep-going
Bevy version
0.15.0-rc.3
What you did
Build rustdoc of a third party crate with command
What went wrong