chore(core): update inputs for rust tasks (#31184)

- Adds `native` inputs to rust tasks
- Adds `rustc --version` runtime input to `native` named input
This commit is contained in:
Isaac Mann 2025-05-15 13:55:15 -04:00 committed by GitHub
parent 4d3fea7f9d
commit 3873fee587
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,9 @@
{ {
"runtime": "node -p '`${process.platform}_${process.arch}`'" "runtime": "node -p '`${process.platform}_${process.arch}`'"
}, },
{
"runtime": "rustc --version"
},
{ {
"externalDependencies": ["npm:@monodon/rust", "npm:@napi-rs/cli"] "externalDependencies": ["npm:@monodon/rust", "npm:@napi-rs/cli"]
} }

View File

@ -143,6 +143,7 @@
"format-native": { "format-native": {
"command": "cargo fmt", "command": "cargo fmt",
"cache": true, "cache": true,
"inputs": ["native"],
"options": { "options": {
"cwd": "{projectRoot}/src/native", "cwd": "{projectRoot}/src/native",
"args": ["--all", "--check"] "args": ["--all", "--check"]
@ -156,6 +157,7 @@
"lint-native": { "lint-native": {
"command": "cargo clippy", "command": "cargo clippy",
"cache": true, "cache": true,
"inputs": ["native"],
"options": { "options": {
"cwd": "{projectRoot}/src/native", "cwd": "{projectRoot}/src/native",
"args": ["--frozen"] "args": ["--frozen"]