Files

46 lines
1.8 KiB
TOML

[package]
name = "next-rspack-binding"
publish = false
edition = "2024"
[lib]
crate-type = ["cdylib"]
[dependencies]
rspack_binding_builder = { version = "=0.100.4" }
rspack_binding_builder_macros = { version = "=0.100.4" }
rspack_core = { version = "=0.100.4" }
rspack_error = { version = "=0.100.4" }
rspack_hook = { version = "=0.100.4" }
rspack_plugin_externals = { version = "=0.100.4" }
rspack_sources = { version = "=0.4.23" }
regex = { version = "1.11.1" }
rspack_regex = { version = "=0.100.4" }
rustc-hash = { version = "2.1.1" }
napi = { version = "=3.8.6" }
napi-derive = { version = "=3.5.5" }
anyhow = { version = "1.0.102" }
serde_json = { version = "1.0.149" }
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.100.4", features = ["plugin"] }
[build-dependencies]
rspack_binding_build = { version = "=0.100.4" }
# 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=../../.."]