We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53f60cc commit 9f30a3cCopy full SHA for 9f30a3c
rspack/crates/binding/Cargo.toml
@@ -35,3 +35,12 @@ rspack_binding_builder = { version = "=0.5.4", features = ["plugin"] }
35
[build-dependencies]
36
rspack_binding_build = { version = "=0.5.4" }
37
38
+# Workaround for `cross` builds to resolve parent workspace dependencies.
39
+# When cross-compiling, the build runs in an isolated container and can't find
40
+# the root workspace (`../../../`), causing a "failed to find a workspace root"
41
+# error for path dependencies like `next-taskless`.
42
+# This mounts the parent directory into the container, making the root `Cargo.toml` visible.
43
+# See: https://github.com/cross-rs/cross/issues/1181
44
+[package.metadata.cross.build.env]
45
+volumes = ["__LIB12_DEP=../../.."]
46
+
0 commit comments