Files
next.js/rspack/crates/binding/Cargo.toml
2025-12-12 03:10:17 +00:00

47 lines
1.8 KiB
TOML

[package]
name = "next-rspack-binding"
publish = false
edition = "2024"
[lib]
crate-type = ["cdylib"]
[dependencies]
rspack_binding_builder = { version = "=0.6.7" }
rspack_binding_builder_macros = { version = "=0.6.7" }
rspack_core = { version = "=0.6.7" }
rspack_error = { version = "=0.6.7" }
rspack_hook = { version = "=0.6.7" }
rspack_plugin_externals = { version = "=0.6.7" }
rspack_sources = { version = "=0.4.17" }
regex = { version = "1.11.1" }
rspack_regex = { version = "=0.6.7" }
rustc-hash = { version = "2.1.1" }
napi = { version = "=3.2.2" }
napi-derive = { version = "=3.2.2" }
anyhow = { version = "1.0.95" }
serde_json = { version = "1.0.134" }
next-taskless = { version = "0.0.1", path = "../../../crates/next-taskless" }
# Enable SWC plugin feature for targets that support it
# Skip: wasm32-wasip1-threads, i686-pc-windows-msvc, aarch64-pc-windows-msvc, armv7-linux-androideabi, armv7-unknown-linux-gnueabihf
[target.'cfg(not(any(target_arch = "wasm32", target_arch = "arm", all(target_os = "windows", target_arch = "x86"), all(target_os = "windows", target_arch = "aarch64"))))'.dependencies]
rspack_binding_builder = { version = "=0.6.7", features = ["plugin"] }
[build-dependencies]
rspack_binding_build = { version = "=0.6.7" }
# Workaround for `cross` builds to resolve parent workspace dependencies.
# When cross-compiling, the build runs in an isolated container and can't find
# the root workspace (`../../../`), causing a "failed to find a workspace root"
# error for path dependencies like `next-taskless`.
# This mounts the parent directory into the container, making the root `Cargo.toml` visible.
# See: https://github.com/cross-rs/cross/issues/1181
[package.metadata.cross.build.env]
volumes = ["NEXT-TASKLESS_DEP=../../.."]