rspack_loader_swc 0.1.0

rspack builtin swc loader
Build #1316277 2024-08-08T12:02:40.438197+00:00
# rustc version
rustc 1.82.0-nightly (e57f3090a 2024-08-05)# docs.rs version
docsrs 0.6.0 (a6435f13 2024-08-07)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/rspack_loader_swc-0.1.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/rspack_loader_swc-0.1.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder/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" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-08-06" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20240805-1.82.0-nightly-e57f3090a\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--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" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }`
[INFO] [stdout] e3fc68bccbbd086df98a27deedb3aa55b7dd8dc6cde2afe1261f6245f7c26209
[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" "e3fc68bccbbd086df98a27deedb3aa55b7dd8dc6cde2afe1261f6245f7c26209", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]     Checking swc_core v0.79.71
[INFO] [stderr]    Compiling rspack_loader_swc v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] error: couldn't read `../../Cargo.toml`: No such file or directory (os error 2)
[INFO] [stderr]  --> build.rs:2:28
[INFO] [stderr]   |
[INFO] [stderr] 2 |   const CARGO_TOML: &str = include_str!("../../Cargo.toml");
[INFO] [stderr]   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] help: there is a file with the same name in a different directory
[INFO] [stderr]   |
[INFO] [stderr] 2 |   const CARGO_TOML: &str = include_str!("Cargo.toml");
[INFO] [stderr]   |                                         ~~~~~~~~~~~~
[INFO] [stderr] 
[INFO] [stderr] error: could not compile `rspack_loader_swc` (build script) due to 1 previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "e3fc68bccbbd086df98a27deedb3aa55b7dd8dc6cde2afe1261f6245f7c26209", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e3fc68bccbbd086df98a27deedb3aa55b7dd8dc6cde2afe1261f6245f7c26209", kill_on_drop: false }`
[INFO] [stdout] e3fc68bccbbd086df98a27deedb3aa55b7dd8dc6cde2afe1261f6245f7c26209