Docs.rs fails to build on latest version
Closed this issue · 5 comments
JohnTheCoolingFan commented
Currently latest version availableon docs.rs is 0.1.2. All other versions fail to build with an error that is caused by some required features not being enabled.
Also duplicating the full text here:
# rustc version
rustc 1.68.0-nightly (0b90256ad 2023-01-13)
# docs.rs version
docsrs 0.6.0 (19c77a92 2023-01-08)
# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/bevy_mod_scripting-0.2.2/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/bevy_mod_scripting-0.2.2/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "3221225472" "--cpus" "3" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:9042d5c95763f71f7b0904716b98ccadf9fc47b0f382ee962aaaed2ac70c9b8d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--features" "lua rhai lua_script_api rhai_script_api teal" "-Z" "unstable-options" "--config" "build.rustdocflags=[\"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20230113-1.68.0-nightly-0b90256ad\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--disable-per-crate-search\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j3" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }`
[INFO] [stdout] 174db56665a4e7c628ba6a7b5cf800ee417f0556e9d9af23b34586d031af6fc0
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "174db56665a4e7c628ba6a7b5cf800ee417f0556e9d9af23b34586d031af6fc0", kill_on_drop: false }`
[INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: console_integration_lua, console_integration_rhai, complex_game_loop_lua, game_of_life_lua, game_of_life_rhai, event_recipients_lua, coroutines_lua, documentation_gen_lua, bevy_api_lua, bevy_api_rhai, wrappers
[INFO] [stderr] If you want Rustdoc to scrape these examples, then add `doc-scrape-examples = true`
[INFO] [stderr] to the [[example]] target configuration of at least one example.
[INFO] [stderr] warning: Target filter specified, but no targets matched. This is a no-op
[INFO] [stderr] Checking bevy_ui v0.9.1
[INFO] [stderr] Compiling mlua v0.8.7
[INFO] [stderr] Compiling rustls v0.20.8
[INFO] [stderr] error: You must enable one of the features: lua54, lua53, lua52, lua51, luajit, luajit52, luau
[INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/mlua-0.8.7/build/main.rs:52:5
[INFO] [stderr] |
[INFO] [stderr] 52 | / compile_error!(
[INFO] [stderr] 53 | | "You must enable one of the features: lua54, lua53, lua52, lua51, luajit, luajit52, luau"
[INFO] [stderr] 54 | | );
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] error: could not compile `mlua` due to previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "174db56665a4e7c628ba6a7b5cf800ee417f0556e9d9af23b34586d031af6fc0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "174db56665a4e7c628ba6a7b5cf800ee417f0556e9d9af23b34586d031af6fc0", kill_on_drop: false }`
[INFO] [stdout] 174db56665a4e7c628ba6a7b5cf800ee417f0556e9d9af23b34586d031af6fc0
JohnTheCoolingFan commented
Interestingly, latest git version builds fine with cargo doc
JohnTheCoolingFan commented
I found the reason, PR soon
makspll commented
That's annoying, I will look into having a CI action check this automatically
makspll commented
It appears cargo doc --workspace
does fail indeed locally, given the current features in the Cargo.toml
file
JohnTheCoolingFan commented
@makspll Hey, I've noticed that bevy_mod_scripting
doesn't build for docs.rs
Also weird that I couldn't find the docs.rs page for main crate on google in top search results... Usually it works for other crates. Search engines are weird...