Skip to content

Commit 3873fee

Browse files
authored
chore(core): update inputs for rust tasks (#31184)
- Adds `native` inputs to rust tasks - Adds `rustc --version` runtime input to `native` named input
1 parent 4d3fea7 commit 3873fee

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

nx.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
{
2525
"runtime": "node -p '`${process.platform}_${process.arch}`'"
2626
},
27+
{
28+
"runtime": "rustc --version"
29+
},
2730
{
2831
"externalDependencies": ["npm:@monodon/rust", "npm:@napi-rs/cli"]
2932
}

packages/nx/project.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
"format-native": {
144144
"command": "cargo fmt",
145145
"cache": true,
146+
"inputs": ["native"],
146147
"options": {
147148
"cwd": "{projectRoot}/src/native",
148149
"args": ["--all", "--check"]
@@ -156,6 +157,7 @@
156157
"lint-native": {
157158
"command": "cargo clippy",
158159
"cache": true,
160+
"inputs": ["native"],
159161
"options": {
160162
"cwd": "{projectRoot}/src/native",
161163
"args": ["--frozen"]

0 commit comments

Comments
 (0)