mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Previously, it only used the rust files as the cache key via `rust-fingerprint`. So changing fixtures didn't invalidate the turborepo run.
96 lines
2.9 KiB
JSON
96 lines
2.9 KiB
JSON
{
|
|
"$schema": "https://turborepo.org/schema.json",
|
|
"extends": ["//"],
|
|
"tasks": {
|
|
// Fingerprint all Rust inputs into a single stamp file so other tasks
|
|
// only need inputs: [stamp file] instead of repeating the full glob list.
|
|
"rust-fingerprint": {
|
|
"inputs": [
|
|
"../../.cargo/**",
|
|
"../../crates/**",
|
|
"../../turbopack/crates/**",
|
|
"!../../crates/*/tests/**",
|
|
"!../../turbopack/crates/*/tests/**",
|
|
"../../**/Cargo.toml",
|
|
"../../Cargo.lock",
|
|
"../../rust-toolchain.toml",
|
|
],
|
|
"outputs": ["../../target/.rust-fingerprint"],
|
|
"cache": false,
|
|
},
|
|
"build-native-auto": {
|
|
"dependsOn": ["rust-fingerprint"],
|
|
"inputs": ["../../target/.rust-fingerprint"],
|
|
"outputs": [
|
|
"native/*.node",
|
|
"native/index.d.ts",
|
|
"../../packages/next/src/build/swc/generated-native.d.ts",
|
|
],
|
|
},
|
|
"build-native": {
|
|
"dependsOn": ["rust-fingerprint"],
|
|
"inputs": ["../../target/.rust-fingerprint"],
|
|
"outputs": ["native/*.node", "native/index.d.ts"],
|
|
},
|
|
"build-native-release": {
|
|
"dependsOn": ["rust-fingerprint"],
|
|
"inputs": ["../../target/.rust-fingerprint"],
|
|
"outputs": ["native/*.node", "native/index.d.ts"],
|
|
},
|
|
"build-native-release-with-assertions": {
|
|
"dependsOn": ["rust-fingerprint"],
|
|
"inputs": ["../../target/.rust-fingerprint"],
|
|
"outputs": ["native/*.node", "native/index.d.ts"],
|
|
},
|
|
"build-wasm": {
|
|
"dependsOn": ["rust-fingerprint"],
|
|
"inputs": ["../../target/.rust-fingerprint"],
|
|
"outputs": ["../../crates/wasm/pkg/*"],
|
|
},
|
|
"build-native-wasi": {
|
|
"dependsOn": ["rust-fingerprint"],
|
|
"inputs": ["../../target/.rust-fingerprint"],
|
|
"outputs": ["native/*"],
|
|
},
|
|
"cache-build-native": {
|
|
"dependsOn": ["rust-fingerprint"],
|
|
"inputs": ["../../target/.rust-fingerprint"],
|
|
"outputs": ["native/*.node", "native/index.d.ts"],
|
|
},
|
|
"rust-check": {
|
|
"dependsOn": [
|
|
"rust-check-clippy",
|
|
"rust-check-doc",
|
|
"rust-check-fmt",
|
|
"rust-check-napi",
|
|
],
|
|
},
|
|
"rust-check-clippy": {
|
|
"dependsOn": ["rust-fingerprint"],
|
|
"inputs": ["../../target/.rust-fingerprint"],
|
|
},
|
|
"rust-check-doc": {
|
|
"dependsOn": ["rust-fingerprint"],
|
|
"inputs": ["../../target/.rust-fingerprint"],
|
|
},
|
|
"rust-check-fmt": {
|
|
"dependsOn": ["rust-fingerprint"],
|
|
"inputs": ["../../target/.rust-fingerprint"],
|
|
"cache": false,
|
|
},
|
|
"rust-check-napi": {
|
|
"dependsOn": ["rust-fingerprint"],
|
|
"inputs": ["../../target/.rust-fingerprint"],
|
|
},
|
|
"test-cargo-unit": {
|
|
"dependsOn": ["rust-fingerprint"],
|
|
"inputs": [
|
|
"../../target/.rust-fingerprint",
|
|
"../../crates/*/tests/**",
|
|
"../../turbopack/crates/*/tests/**",
|
|
"!../../turbopack/crates/turbopack-tests/tests/execution/**/output/*",
|
|
],
|
|
},
|
|
},
|
|
}
|