@convesoft/nx-rust 0.0.0 → 1.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. package/LICENSE-APACHE +201 -0
  2. package/LICENSE-MIT +21 -0
  3. package/PLUGIN.md +106 -0
  4. package/README.md +51 -1
  5. package/docs/artifacts.mara.md +374 -0
  6. package/docs/caching.mara.md +999 -0
  7. package/docs/ci.mara.md +308 -0
  8. package/docs/configuration.mara.md +508 -0
  9. package/docs/decisions.mara.md +3267 -0
  10. package/docs/execution.mara.md +533 -0
  11. package/docs/index.mara.md +51 -0
  12. package/docs/product.mara.md +366 -0
  13. package/docs/release.mara.md +493 -0
  14. package/docs/setup.mara.md +486 -0
  15. package/docs/targets.mara.md +704 -0
  16. package/docs/testing.mara.md +431 -0
  17. package/docs/verification.mara.md +465 -0
  18. package/docs/workspaces.mara.md +445 -0
  19. package/executors.json +35 -0
  20. package/generators.json +19 -0
  21. package/package.json +17 -4
  22. package/src/cargo/build-settings.d.ts +61 -0
  23. package/src/cargo/build-settings.js +103 -0
  24. package/src/cargo/build-settings.js.map +1 -0
  25. package/src/cargo/configured-runner.d.ts +36 -0
  26. package/src/cargo/configured-runner.js +99 -0
  27. package/src/cargo/configured-runner.js.map +1 -0
  28. package/src/cargo/configured-tools.d.ts +35 -0
  29. package/src/cargo/configured-tools.js +46 -0
  30. package/src/cargo/configured-tools.js.map +1 -0
  31. package/src/cargo/dep-info-basedir.d.ts +18 -0
  32. package/src/cargo/dep-info-basedir.js +38 -0
  33. package/src/cargo/dep-info-basedir.js.map +1 -0
  34. package/src/cargo/directories.d.ts +40 -0
  35. package/src/cargo/directories.js +89 -0
  36. package/src/cargo/directories.js.map +1 -0
  37. package/src/cargo/host-triple.d.ts +7 -0
  38. package/src/cargo/host-triple.js +21 -0
  39. package/src/cargo/host-triple.js.map +1 -0
  40. package/src/cargo/lockfile.d.ts +63 -0
  41. package/src/cargo/lockfile.js +157 -0
  42. package/src/cargo/lockfile.js.map +1 -0
  43. package/src/cargo/metadata.d.ts +114 -0
  44. package/src/cargo/metadata.js +37 -0
  45. package/src/cargo/metadata.js.map +1 -0
  46. package/src/cargo/package-specs.d.ts +54 -0
  47. package/src/cargo/package-specs.js +109 -0
  48. package/src/cargo/package-specs.js.map +1 -0
  49. package/src/cargo/paths-crates.d.ts +27 -0
  50. package/src/cargo/paths-crates.js +69 -0
  51. package/src/cargo/paths-crates.js.map +1 -0
  52. package/src/cargo/print-artifact-folders.d.ts +1 -0
  53. package/src/cargo/print-artifact-folders.js +58 -0
  54. package/src/cargo/print-artifact-folders.js.map +1 -0
  55. package/src/cargo/redirections.d.ts +90 -0
  56. package/src/cargo/redirections.js +200 -0
  57. package/src/cargo/redirections.js.map +1 -0
  58. package/src/cargo/run-cargo.d.ts +31 -0
  59. package/src/cargo/run-cargo.js +75 -0
  60. package/src/cargo/run-cargo.js.map +1 -0
  61. package/src/cargo/target-triples.d.ts +98 -0
  62. package/src/cargo/target-triples.js +265 -0
  63. package/src/cargo/target-triples.js.map +1 -0
  64. package/src/cargo/version-req.d.ts +12 -0
  65. package/src/cargo/version-req.js +122 -0
  66. package/src/cargo/version-req.js.map +1 -0
  67. package/src/cargo/warnings-setting.d.ts +24 -0
  68. package/src/cargo/warnings-setting.js +81 -0
  69. package/src/cargo/warnings-setting.js.map +1 -0
  70. package/src/compatibility/cargo-version.d.ts +43 -0
  71. package/src/compatibility/cargo-version.js +83 -0
  72. package/src/compatibility/cargo-version.js.map +1 -0
  73. package/src/compatibility/nx-bridge.d.ts +312 -0
  74. package/src/compatibility/nx-bridge.js +407 -0
  75. package/src/compatibility/nx-bridge.js.map +1 -0
  76. package/src/compatibility/nx-version.d.ts +104 -0
  77. package/src/compatibility/nx-version.js +272 -0
  78. package/src/compatibility/nx-version.js.map +1 -0
  79. package/src/executors/affected-inputs.d.ts +29 -0
  80. package/src/executors/affected-inputs.js +259 -0
  81. package/src/executors/affected-inputs.js.map +1 -0
  82. package/src/executors/affected-run.d.ts +54 -0
  83. package/src/executors/affected-run.js +394 -0
  84. package/src/executors/affected-run.js.map +1 -0
  85. package/src/executors/affected.d.ts +239 -0
  86. package/src/executors/affected.js +589 -0
  87. package/src/executors/affected.js.map +1 -0
  88. package/src/executors/baseline-context.d.ts +85 -0
  89. package/src/executors/baseline-context.js +227 -0
  90. package/src/executors/baseline-context.js.map +1 -0
  91. package/src/executors/baseline.d.ts +123 -0
  92. package/src/executors/baseline.js +356 -0
  93. package/src/executors/baseline.js.map +1 -0
  94. package/src/executors/batch.d.ts +75 -0
  95. package/src/executors/batch.js +434 -0
  96. package/src/executors/batch.js.map +1 -0
  97. package/src/executors/build-records.d.ts +110 -0
  98. package/src/executors/build-records.js +267 -0
  99. package/src/executors/build-records.js.map +1 -0
  100. package/src/executors/cargo/executor.d.ts +28 -0
  101. package/src/executors/cargo/executor.js +58 -0
  102. package/src/executors/cargo/executor.js.map +1 -0
  103. package/src/executors/cargo/schema.json +58 -0
  104. package/src/executors/cargo-invocation.d.ts +81 -0
  105. package/src/executors/cargo-invocation.js +109 -0
  106. package/src/executors/cargo-invocation.js.map +1 -0
  107. package/src/executors/cargo-output.d.ts +218 -0
  108. package/src/executors/cargo-output.js +660 -0
  109. package/src/executors/cargo-output.js.map +1 -0
  110. package/src/executors/command.d.ts +331 -0
  111. package/src/executors/command.js +547 -0
  112. package/src/executors/command.js.map +1 -0
  113. package/src/executors/coverage-baseline.d.ts +23 -0
  114. package/src/executors/coverage-baseline.js +284 -0
  115. package/src/executors/coverage-baseline.js.map +1 -0
  116. package/src/executors/declared-options.d.ts +21 -0
  117. package/src/executors/declared-options.js +58 -0
  118. package/src/executors/declared-options.js.map +1 -0
  119. package/src/executors/denied-warnings.d.ts +99 -0
  120. package/src/executors/denied-warnings.js +188 -0
  121. package/src/executors/denied-warnings.js.map +1 -0
  122. package/src/executors/digests.d.ts +94 -0
  123. package/src/executors/digests.js +190 -0
  124. package/src/executors/digests.js.map +1 -0
  125. package/src/executors/dotenv-check.d.ts +79 -0
  126. package/src/executors/dotenv-check.js +553 -0
  127. package/src/executors/dotenv-check.js.map +1 -0
  128. package/src/executors/group-invocations.d.ts +80 -0
  129. package/src/executors/group-invocations.js +253 -0
  130. package/src/executors/group-invocations.js.map +1 -0
  131. package/src/executors/group-run.d.ts +114 -0
  132. package/src/executors/group-run.js +601 -0
  133. package/src/executors/group-run.js.map +1 -0
  134. package/src/executors/groups.d.ts +118 -0
  135. package/src/executors/groups.js +304 -0
  136. package/src/executors/groups.js.map +1 -0
  137. package/src/executors/input-check.d.ts +52 -0
  138. package/src/executors/input-check.js +271 -0
  139. package/src/executors/input-check.js.map +1 -0
  140. package/src/executors/kept-files.d.ts +98 -0
  141. package/src/executors/kept-files.js +341 -0
  142. package/src/executors/kept-files.js.map +1 -0
  143. package/src/executors/lockfile/executor.d.ts +16 -0
  144. package/src/executors/lockfile/executor.js +37 -0
  145. package/src/executors/lockfile/executor.js.map +1 -0
  146. package/src/executors/lockfile/schema.json +50 -0
  147. package/src/executors/napi-build.d.ts +73 -0
  148. package/src/executors/napi-build.js +420 -0
  149. package/src/executors/napi-build.js.map +1 -0
  150. package/src/executors/nextest.d.ts +189 -0
  151. package/src/executors/nextest.js +504 -0
  152. package/src/executors/nextest.js.map +1 -0
  153. package/src/executors/nx-command.d.ts +95 -0
  154. package/src/executors/nx-command.js +205 -0
  155. package/src/executors/nx-command.js.map +1 -0
  156. package/src/executors/nx-task-files.d.ts +82 -0
  157. package/src/executors/nx-task-files.js +156 -0
  158. package/src/executors/nx-task-files.js.map +1 -0
  159. package/src/executors/print-test-mode.d.ts +1 -0
  160. package/src/executors/print-test-mode.js +25 -0
  161. package/src/executors/print-test-mode.js.map +1 -0
  162. package/src/executors/release-publish/executor.d.ts +24 -0
  163. package/src/executors/release-publish/executor.js +165 -0
  164. package/src/executors/release-publish/executor.js.map +1 -0
  165. package/src/executors/release-publish/schema.json +30 -0
  166. package/src/executors/run/executor.d.ts +12 -0
  167. package/src/executors/run/executor.js +27 -0
  168. package/src/executors/run/executor.js.map +1 -0
  169. package/src/executors/run/schema.json +45 -0
  170. package/src/executors/runner-script.d.ts +12 -0
  171. package/src/executors/runner-script.js +22 -0
  172. package/src/executors/runner-script.js.map +1 -0
  173. package/src/executors/runtime-input-check.d.ts +24 -0
  174. package/src/executors/runtime-input-check.js +87 -0
  175. package/src/executors/runtime-input-check.js.map +1 -0
  176. package/src/executors/shared-artifacts.d.ts +44 -0
  177. package/src/executors/shared-artifacts.js +132 -0
  178. package/src/executors/shared-artifacts.js.map +1 -0
  179. package/src/executors/split-words.d.ts +24 -0
  180. package/src/executors/split-words.js +111 -0
  181. package/src/executors/split-words.js.map +1 -0
  182. package/src/executors/stage.d.ts +163 -0
  183. package/src/executors/stage.js +526 -0
  184. package/src/executors/stage.js.map +1 -0
  185. package/src/executors/staged-run.d.ts +24 -0
  186. package/src/executors/staged-run.js +110 -0
  187. package/src/executors/staged-run.js.map +1 -0
  188. package/src/executors/task-env.d.ts +271 -0
  189. package/src/executors/task-env.js +494 -0
  190. package/src/executors/task-env.js.map +1 -0
  191. package/src/executors/task-execution.d.ts +61 -0
  192. package/src/executors/task-execution.js +122 -0
  193. package/src/executors/task-execution.js.map +1 -0
  194. package/src/executors/task-guards.d.ts +112 -0
  195. package/src/executors/task-guards.js +435 -0
  196. package/src/executors/task-guards.js.map +1 -0
  197. package/src/executors/task-options.d.ts +114 -0
  198. package/src/executors/task-options.js +258 -0
  199. package/src/executors/task-options.js.map +1 -0
  200. package/src/executors/task.d.ts +166 -0
  201. package/src/executors/task.js +527 -0
  202. package/src/executors/task.js.map +1 -0
  203. package/src/executors/test-mode.d.ts +185 -0
  204. package/src/executors/test-mode.js +397 -0
  205. package/src/executors/test-mode.js.map +1 -0
  206. package/src/executors/test-runner.d.ts +44 -0
  207. package/src/executors/test-runner.js +159 -0
  208. package/src/executors/test-runner.js.map +1 -0
  209. package/src/executors/test-steps.d.ts +121 -0
  210. package/src/executors/test-steps.js +566 -0
  211. package/src/executors/test-steps.js.map +1 -0
  212. package/src/executors/wasm-build.d.ts +56 -0
  213. package/src/executors/wasm-build.js +216 -0
  214. package/src/executors/wasm-build.js.map +1 -0
  215. package/src/generators/crate/binary.schema.json +28 -0
  216. package/src/generators/crate/crate.d.ts +24 -0
  217. package/src/generators/crate/crate.js +108 -0
  218. package/src/generators/crate/crate.js.map +1 -0
  219. package/src/generators/crate/enclosing-workspace.d.ts +25 -0
  220. package/src/generators/crate/enclosing-workspace.js +58 -0
  221. package/src/generators/crate/enclosing-workspace.js.map +1 -0
  222. package/src/generators/crate/library.schema.json +28 -0
  223. package/src/generators/init/graph-check.d.ts +81 -0
  224. package/src/generators/init/graph-check.js +299 -0
  225. package/src/generators/init/graph-check.js.map +1 -0
  226. package/src/generators/init/init.d.ts +23 -0
  227. package/src/generators/init/init.js +113 -0
  228. package/src/generators/init/init.js.map +1 -0
  229. package/src/generators/init/report.d.ts +19 -0
  230. package/src/generators/init/report.js +93 -0
  231. package/src/generators/init/report.js.map +1 -0
  232. package/src/generators/init/schema.json +9 -0
  233. package/src/graph/artifact-kinds.d.ts +29 -0
  234. package/src/graph/artifact-kinds.js +50 -0
  235. package/src/graph/artifact-kinds.js.map +1 -0
  236. package/src/graph/artifact-names.d.ts +97 -0
  237. package/src/graph/artifact-names.js +276 -0
  238. package/src/graph/artifact-names.js.map +1 -0
  239. package/src/graph/build-records.d.ts +74 -0
  240. package/src/graph/build-records.js +104 -0
  241. package/src/graph/build-records.js.map +1 -0
  242. package/src/graph/caching.d.ts +148 -0
  243. package/src/graph/caching.js +681 -0
  244. package/src/graph/caching.js.map +1 -0
  245. package/src/graph/clippy-input.d.ts +53 -0
  246. package/src/graph/clippy-input.js +107 -0
  247. package/src/graph/clippy-input.js.map +1 -0
  248. package/src/graph/collisions.d.ts +113 -0
  249. package/src/graph/collisions.js +156 -0
  250. package/src/graph/collisions.js.map +1 -0
  251. package/src/graph/computation-reports.d.ts +89 -0
  252. package/src/graph/computation-reports.js +216 -0
  253. package/src/graph/computation-reports.js.map +1 -0
  254. package/src/graph/declared-files.d.ts +190 -0
  255. package/src/graph/declared-files.js +600 -0
  256. package/src/graph/declared-files.js.map +1 -0
  257. package/src/graph/discovery.d.ts +190 -0
  258. package/src/graph/discovery.js +661 -0
  259. package/src/graph/discovery.js.map +1 -0
  260. package/src/graph/edges.d.ts +25 -0
  261. package/src/graph/edges.js +94 -0
  262. package/src/graph/edges.js.map +1 -0
  263. package/src/graph/entries.d.ts +83 -0
  264. package/src/graph/entries.js +259 -0
  265. package/src/graph/entries.js.map +1 -0
  266. package/src/graph/inputs.d.ts +422 -0
  267. package/src/graph/inputs.js +756 -0
  268. package/src/graph/inputs.js.map +1 -0
  269. package/src/graph/lockfile-task.d.ts +74 -0
  270. package/src/graph/lockfile-task.js +105 -0
  271. package/src/graph/lockfile-task.js.map +1 -0
  272. package/src/graph/names.d.ts +41 -0
  273. package/src/graph/names.js +34 -0
  274. package/src/graph/names.js.map +1 -0
  275. package/src/graph/napi.d.ts +107 -0
  276. package/src/graph/napi.js +206 -0
  277. package/src/graph/napi.js.map +1 -0
  278. package/src/graph/nx-glob.d.ts +36 -0
  279. package/src/graph/nx-glob.js +152 -0
  280. package/src/graph/nx-glob.js.map +1 -0
  281. package/src/graph/nx-internals.d.ts +57 -0
  282. package/src/graph/nx-internals.js +128 -0
  283. package/src/graph/nx-internals.js.map +1 -0
  284. package/src/graph/options.d.ts +32 -0
  285. package/src/graph/options.js +80 -0
  286. package/src/graph/options.js.map +1 -0
  287. package/src/graph/outputs.d.ts +75 -0
  288. package/src/graph/outputs.js +140 -0
  289. package/src/graph/outputs.js.map +1 -0
  290. package/src/graph/path-dependencies.d.ts +122 -0
  291. package/src/graph/path-dependencies.js +459 -0
  292. package/src/graph/path-dependencies.js.map +1 -0
  293. package/src/graph/plugin-package.d.ts +36 -0
  294. package/src/graph/plugin-package.js +132 -0
  295. package/src/graph/plugin-package.js.map +1 -0
  296. package/src/graph/plugin-version.d.ts +20 -0
  297. package/src/graph/plugin-version.js +153 -0
  298. package/src/graph/plugin-version.js.map +1 -0
  299. package/src/graph/projects.d.ts +141 -0
  300. package/src/graph/projects.js +193 -0
  301. package/src/graph/projects.js.map +1 -0
  302. package/src/graph/reached-projects.d.ts +46 -0
  303. package/src/graph/reached-projects.js +102 -0
  304. package/src/graph/reached-projects.js.map +1 -0
  305. package/src/graph/real-path.d.ts +47 -0
  306. package/src/graph/real-path.js +113 -0
  307. package/src/graph/real-path.js.map +1 -0
  308. package/src/graph/redirected-uses.d.ts +98 -0
  309. package/src/graph/redirected-uses.js +434 -0
  310. package/src/graph/redirected-uses.js.map +1 -0
  311. package/src/graph/registration.d.ts +121 -0
  312. package/src/graph/registration.js +233 -0
  313. package/src/graph/registration.js.map +1 -0
  314. package/src/graph/rustfmt-config.d.ts +42 -0
  315. package/src/graph/rustfmt-config.js +173 -0
  316. package/src/graph/rustfmt-config.js.map +1 -0
  317. package/src/graph/script-input.d.ts +46 -0
  318. package/src/graph/script-input.js +65 -0
  319. package/src/graph/script-input.js.map +1 -0
  320. package/src/graph/settings.d.ts +178 -0
  321. package/src/graph/settings.js +479 -0
  322. package/src/graph/settings.js.map +1 -0
  323. package/src/graph/target-defaults-causes.d.ts +33 -0
  324. package/src/graph/target-defaults-causes.js +202 -0
  325. package/src/graph/target-defaults-causes.js.map +1 -0
  326. package/src/graph/target-defaults-layers.d.ts +186 -0
  327. package/src/graph/target-defaults-layers.js +420 -0
  328. package/src/graph/target-defaults-layers.js.map +1 -0
  329. package/src/graph/target-defaults-meaning.d.ts +95 -0
  330. package/src/graph/target-defaults-meaning.js +292 -0
  331. package/src/graph/target-defaults-meaning.js.map +1 -0
  332. package/src/graph/target-defaults-report.d.ts +77 -0
  333. package/src/graph/target-defaults-report.js +242 -0
  334. package/src/graph/target-defaults-report.js.map +1 -0
  335. package/src/graph/target-defaults.d.ts +79 -0
  336. package/src/graph/target-defaults.js +425 -0
  337. package/src/graph/target-defaults.js.map +1 -0
  338. package/src/graph/target-fields.d.ts +16 -0
  339. package/src/graph/target-fields.js +134 -0
  340. package/src/graph/target-fields.js.map +1 -0
  341. package/src/graph/target-tables.d.ts +45 -0
  342. package/src/graph/target-tables.js +299 -0
  343. package/src/graph/target-tables.js.map +1 -0
  344. package/src/graph/targets.d.ts +371 -0
  345. package/src/graph/targets.js +408 -0
  346. package/src/graph/targets.js.map +1 -0
  347. package/src/graph/unification.d.ts +141 -0
  348. package/src/graph/unification.js +459 -0
  349. package/src/graph/unification.js.map +1 -0
  350. package/src/graph/unignored-directories.d.ts +25 -0
  351. package/src/graph/unignored-directories.js +89 -0
  352. package/src/graph/unignored-directories.js.map +1 -0
  353. package/src/graph/visibility.d.ts +17 -0
  354. package/src/graph/visibility.js +67 -0
  355. package/src/graph/visibility.js.map +1 -0
  356. package/src/graph/warnings.d.ts +38 -0
  357. package/src/graph/warnings.js +77 -0
  358. package/src/graph/warnings.js.map +1 -0
  359. package/src/graph/wasm.d.ts +56 -0
  360. package/src/graph/wasm.js +77 -0
  361. package/src/graph/wasm.js.map +1 -0
  362. package/src/index.d.ts +68 -0
  363. package/src/index.js +109 -0
  364. package/src/index.js.map +1 -0
  365. package/src/release/manifests.d.ts +95 -0
  366. package/src/release/manifests.js +164 -0
  367. package/src/release/manifests.js.map +1 -0
  368. package/src/release/places.d.ts +127 -0
  369. package/src/release/places.js +368 -0
  370. package/src/release/places.js.map +1 -0
  371. package/src/release/publish-cargo.d.ts +177 -0
  372. package/src/release/publish-cargo.js +351 -0
  373. package/src/release/publish-cargo.js.map +1 -0
  374. package/src/release/publish-crates.d.ts +124 -0
  375. package/src/release/publish-crates.js +242 -0
  376. package/src/release/publish-crates.js.map +1 -0
  377. package/src/release/publish-environments.d.ts +50 -0
  378. package/src/release/publish-environments.js +284 -0
  379. package/src/release/publish-environments.js.map +1 -0
  380. package/src/release/publish-messages.d.ts +66 -0
  381. package/src/release/publish-messages.js +273 -0
  382. package/src/release/publish-messages.js.map +1 -0
  383. package/src/release/publish-registry.d.ts +27 -0
  384. package/src/release/publish-registry.js +135 -0
  385. package/src/release/publish-registry.js.map +1 -0
  386. package/src/release/publish-settings.d.ts +26 -0
  387. package/src/release/publish-settings.js +56 -0
  388. package/src/release/publish-settings.js.map +1 -0
  389. package/src/release/publish.d.ts +59 -0
  390. package/src/release/publish.js +620 -0
  391. package/src/release/publish.js.map +1 -0
  392. package/src/release/repository.d.ts +73 -0
  393. package/src/release/repository.js +219 -0
  394. package/src/release/repository.js.map +1 -0
  395. package/src/release/requirements.d.ts +34 -0
  396. package/src/release/requirements.js +30 -0
  397. package/src/release/requirements.js.map +1 -0
  398. package/src/release/toml-edit.d.ts +67 -0
  399. package/src/release/toml-edit.js +453 -0
  400. package/src/release/toml-edit.js.map +1 -0
  401. package/src/release/version-actions.d.ts +133 -0
  402. package/src/release/version-actions.js +474 -0
  403. package/src/release/version-actions.js.map +1 -0
  404. package/src/release/version-checks.d.ts +21 -0
  405. package/src/release/version-checks.js +151 -0
  406. package/src/release/version-checks.js.map +1 -0
  407. package/src/release/version-lockfiles.d.ts +61 -0
  408. package/src/release/version-lockfiles.js +222 -0
  409. package/src/release/version-lockfiles.js.map +1 -0
  410. package/src/tools/napi-cli.d.ts +70 -0
  411. package/src/tools/napi-cli.js +63 -0
  412. package/src/tools/napi-cli.js.map +1 -0
  413. package/src/tools/optional-tools.d.ts +121 -0
  414. package/src/tools/optional-tools.js +303 -0
  415. package/src/tools/optional-tools.js.map +1 -0
  416. package/src/tools/print-napi-cli.d.ts +1 -0
  417. package/src/tools/print-napi-cli.js +24 -0
  418. package/src/tools/print-napi-cli.js.map +1 -0
@@ -0,0 +1,600 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.declaredFiles = declaredFiles;
4
+ exports.knownCargoDirectories = knownCargoDirectories;
5
+ exports.namesFolders = namesFolders;
6
+ exports.pluginProjectRoots = pluginProjectRoots;
7
+ exports.failOnUncoveredProjectFolders = failOnUncoveredProjectFolders;
8
+ exports.patternsBelow = patternsBelow;
9
+ const node_fs_1 = require("node:fs");
10
+ const node_path_1 = require("node:path");
11
+ const discovery_1 = require("./discovery");
12
+ const nx_glob_1 = require("./nx-glob");
13
+ const real_path_1 = require("./real-path");
14
+ /** The characters that make a path segment a glob for Nx, and a backslash that may escape one. */
15
+ const globCharacters = /[*?[\]{}()\\]/;
16
+ /**
17
+ * A `..` segment in a glob, also one that an alternative of braces gives,
18
+ * such as `{a,..}/x`.
19
+ */
20
+ const parentAfterGlob = /(^|[/{,])\.\.($|[/},])/;
21
+ /**
22
+ * Turns the `fileInputs` patterns of a crate's tables into the filesets of
23
+ * `DES-INPUTS` ("Declared files"): each pattern resolved against the folder
24
+ * of the manifest that holds it, as `{workspaceRoot}/<path>` with
25
+ * `includeIgnored`, so that Nx hashes a declared file that Git ignores.
26
+ *
27
+ * Nx fails the hash of every task whose `includeIgnored` fileset has a `.`
28
+ * or `..` segment, so the pattern's fixed part, its segments before the
29
+ * first one with a glob character, is resolved here as the system resolves
30
+ * it, the symbolic links in it included. Nx keeps the hash of a link to a
31
+ * file until the link itself changes, and matches changed files by their
32
+ * own paths (`EVD-NX-24-FILE-INPUTS`). The pattern therefore gives a
33
+ * fileset for each link that its fixed part passes, at the path where the
34
+ * link itself lies, so that a change to the link is seen, and one for the
35
+ * real path with the rest of the pattern, so that a change to what the
36
+ * links lead to is seen. A link that only the glob part reaches stays as it
37
+ * is.
38
+ *
39
+ * Each alternative of the pattern's braces counts as a pattern of its own
40
+ * from here on, as Nx reads a fileset whose braces hold names, also for the
41
+ * braces that Nx leaves to its glob: each gets its own fixed part, links and
42
+ * filesets (`DES-INPUTS`, "Patterns over project folders"). A pattern that
43
+ * names folders counts everything below them ({@link namesFolders}): Nx does
44
+ * so for a path without a glob, and for a glob the pattern also gives the
45
+ * fileset with `/**` after it.
46
+ *
47
+ * Nx matches an `includeIgnored` fileset only against the files of the
48
+ * deepest project whose folder holds the folder it is read from, and not
49
+ * against those of a project in a folder below it; one that no project's
50
+ * folder holds, other than the repository root's, against every file
51
+ * (`EVD-NX-24-FILESET-SCOPE`). For each folder of a project of `scope` below
52
+ * that folder, the pattern therefore also gives a fileset that starts in
53
+ * that folder and names the files below it that the pattern names, matched
54
+ * as Nx matches them ({@link patternsBelow}), so that Nx counts them for the
55
+ * project that holds them. Projects of other plugins and entries are checked
56
+ * in `createDependencies` ({@link failOnUncoveredProjectFolders}). None of
57
+ * this depends on which files exist.
58
+ *
59
+ * Each of these is a problem that names the manifest and the pattern
60
+ * (`REQ-FILE-INPUTS-HASHABLE`): a `..` after a glob character, which could
61
+ * lead anywhere and fails Nx's hash; a real path outside the repository, or
62
+ * a link outside it that the fixed part passes; and a real path in the
63
+ * build or artifact directory of the crate's workspace. Nx hashes no file
64
+ * that a fileset names by a path that leaves the repository, and
65
+ * `nx affected` sees no change to a file outside it, so the message for
66
+ * such a pattern points to `runtimeInputs`.
67
+ *
68
+ * @param fileInputs The patterns of both tables, each with its manifest relative to the repository root.
69
+ * @param workspace The crate's workspace, whose Cargo directories no pattern may point into.
70
+ * @param repositoryRoot The absolute path of the repository root.
71
+ * @param scope The crate and the folders of the projects of the plugin's entry.
72
+ */
73
+ // @mara implements DES-INPUTS
74
+ // @mara implements REQ-BUILD-SCRIPT-INPUTS
75
+ // @mara implements REQ-FILE-INPUTS-HASHABLE
76
+ // @mara implements DES-DIAGNOSTICS
77
+ function declaredFiles(fileInputs, workspace, repositoryRoot, scope) {
78
+ var _a, _b, _c;
79
+ const filesets = new Map();
80
+ const problems = [];
81
+ const patterns = [];
82
+ const crateFilesets = [];
83
+ const realRoot = (0, real_path_1.physicalPath)(repositoryRoot);
84
+ const directories = cargoDirectories(workspace);
85
+ const declare = (path) => {
86
+ const fileset = path === "" ? "{workspaceRoot}/**/*" : `{workspaceRoot}/${path}`;
87
+ filesets.set(fileset, { fileset, includeIgnored: true });
88
+ };
89
+ const matches = (_a = scope.matches) !== null && _a !== void 0 ? _a : (0, nx_glob_1.nxSegmentMatcher)(repositoryRoot);
90
+ for (const input of fileInputs) {
91
+ if (parentAfterGlob.test(splitPattern(input, repositoryRoot).glob)) {
92
+ problems.push(parentAfterGlobProblem(input));
93
+ continue;
94
+ }
95
+ const alternatives = braceAlternatives(input.pattern);
96
+ for (const alternative of alternatives !== null && alternatives !== void 0 ? alternatives : [input.pattern]) {
97
+ const shown = Object.assign(Object.assign({}, input), { alternative });
98
+ const { start, fixed, glob } = splitPattern(Object.assign(Object.assign({}, input), { pattern: alternative }), repositoryRoot);
99
+ const { real, links } = resolveFixed(start, fixed);
100
+ const path = within(realRoot, real);
101
+ if (path === undefined) {
102
+ const resolved = [real, glob].filter((part) => part !== "").join("/");
103
+ problems.push(outsideProblem(shown, `resolves to ${resolved}`));
104
+ continue;
105
+ }
106
+ const outsideLink = links.find((link) => within(realRoot, link) === undefined);
107
+ if (outsideLink !== undefined) {
108
+ problems.push(outsideProblem(shown, `runs through the symbolic link ${outsideLink}`));
109
+ continue;
110
+ }
111
+ const directory = directories.find((directory) => within(directory.realPath, real) !== undefined);
112
+ if (directory !== undefined) {
113
+ problems.push(cargoDirectoryProblem(shown, directory, workspace, repositoryRoot));
114
+ continue;
115
+ }
116
+ const folders = namesFolders(alternative);
117
+ // The fileset for `<base>/<rest>`, and for everything below what it
118
+ // names where it names folders with a glob, which Nx does not count.
119
+ const declareNaming = (base, rest) => {
120
+ const named = [base, rest].filter((part) => part !== "").join("/");
121
+ declare(named);
122
+ const hasGlob = rest.split("/").some((segment) => (0, nx_glob_1.literalSegment)(segment) === undefined);
123
+ if (folders && rest !== "" && hasGlob && lastSegment(rest) !== "**") {
124
+ declare(`${named}/**`);
125
+ }
126
+ };
127
+ for (const link of links) {
128
+ declare(escapeGlob((_b = within(realRoot, link)) !== null && _b !== void 0 ? _b : ""));
129
+ }
130
+ declareNaming(escapeGlob(path), glob);
131
+ const { folder, rest } = walkRoot(toPosix(path), glob);
132
+ const unread = alternatives === undefined;
133
+ for (const root of folder === "" ? [] : scope.projectRoots) {
134
+ if (isBelow(folder, root)) {
135
+ const names = root.slice(folder.length + 1).split("/");
136
+ const below = unread ? ["**"] : patternsBelow(rest, names, { folders, matches });
137
+ for (const pattern of below) {
138
+ declareNaming(escapeGlob(root), pattern);
139
+ }
140
+ }
141
+ }
142
+ const manifestFolder = (0, real_path_1.physicalPath)((0, node_path_1.join)(repositoryRoot, node_path_1.posix.dirname(input.manifest)));
143
+ patterns.push({
144
+ input,
145
+ alternative,
146
+ crate: scope.crate,
147
+ manifestFolder: toPosix((0, node_path_1.relative)(realRoot, manifestFolder)),
148
+ folder,
149
+ glob: rest,
150
+ namesFolders: folders,
151
+ unread,
152
+ crateFilesets,
153
+ });
154
+ }
155
+ }
156
+ // Cargo's outputs stay out of the key (`ADR-RESULTS-ONLY-CACHE`): Nx reads
157
+ // a fileset with `includeIgnored` from the disk, the build directory that
158
+ // Git ignores included, so a pattern whose folder holds one would change
159
+ // the key with every build. A directory that a pattern of the crate points
160
+ // into stays, as the repository declared it.
161
+ const outputs = (_c = scope.cargoDirectories) !== null && _c !== void 0 ? _c : directories.flatMap(({ realPath }) => { var _a; return (_a = within(realRoot, realPath)) !== null && _a !== void 0 ? _a : []; }).map(toPosix);
162
+ for (const directory of [...new Set(outputs)].sort()) {
163
+ const held = patterns.some(({ folder }) => folder === "" || isBelow(folder, directory));
164
+ const declared = patterns.some(({ folder }) => folder === directory || isBelow(directory, folder));
165
+ if (directory !== "" && held && !declared) {
166
+ const fileset = `!{workspaceRoot}/${escapeGlob(directory)}`;
167
+ filesets.set(fileset, { fileset, includeIgnored: true });
168
+ }
169
+ }
170
+ crateFilesets.push(...filesets.keys());
171
+ return { filesets: [...filesets.values()], problems, patterns };
172
+ }
173
+ /**
174
+ * The build and artifact directories of every workspace that `discovery`
175
+ * reports, those of the crates without a project included, that lie inside
176
+ * the repository, as real paths relative to its root.
177
+ */
178
+ function knownCargoDirectories(discovery) {
179
+ const realRoot = (0, real_path_1.physicalPath)(discovery.workspaceRoot);
180
+ const reports = [
181
+ ...discovery.workspaces.map((workspace) => workspace.report),
182
+ ...discovery.pathDependencyReports.map((entry) => entry.report),
183
+ ];
184
+ const directories = new Set();
185
+ for (const report of reports) {
186
+ for (const directory of [report.target_directory, report.build_directory]) {
187
+ const inside = directory === undefined ? undefined : within(realRoot, (0, real_path_1.physicalPath)(directory));
188
+ if (inside !== undefined && inside !== "") {
189
+ directories.add(toPosix(inside));
190
+ }
191
+ }
192
+ }
193
+ return [...directories].sort();
194
+ }
195
+ /**
196
+ * Whether a pattern names folders, so that it counts everything below them:
197
+ * where it ends in `/`, or its last segment is a name, which may be a
198
+ * folder's as well as a file's. A pattern whose last segment is a glob, such
199
+ * as `*` or `*.proto`, names files only, as Nx reads it.
200
+ */
201
+ function namesFolders(pattern) {
202
+ return /\/\.?$/.test(pattern) || (0, nx_glob_1.literalSegment)(lastSegment(pattern)) !== undefined;
203
+ }
204
+ /** The last segment of a path or pattern that is neither empty nor `.`. */
205
+ function lastSegment(path) {
206
+ var _a;
207
+ return ((_a = path
208
+ .split("/")
209
+ .filter((segment) => segment !== "" && segment !== ".")
210
+ .pop()) !== null && _a !== void 0 ? _a : "");
211
+ }
212
+ /**
213
+ * The folder that Nx reads a fileset `<path>/<glob>` from, and the rest:
214
+ * `path` with the segments at the start of `glob` that Nx reads as names,
215
+ * their escapes resolved (`literalSegment` in `nx-glob.ts`).
216
+ */
217
+ function walkRoot(path, glob) {
218
+ const folder = path === "" ? [] : [path];
219
+ const segments = glob.split("/").filter((segment) => segment !== "");
220
+ let index = 0;
221
+ for (; index < segments.length; index++) {
222
+ const name = (0, nx_glob_1.literalSegment)(segments[index]);
223
+ if (name === undefined) {
224
+ break;
225
+ }
226
+ folder.push(name);
227
+ }
228
+ return { folder: folder.join("/"), rest: segments.slice(index).join("/") };
229
+ }
230
+ /** The fileset for the files below the project folder `root` that `pattern` names. */
231
+ function folderFileset(root, pattern) {
232
+ return `{workspaceRoot}/${escapeGlob(root)}/${pattern}`;
233
+ }
234
+ /**
235
+ * The folders of the projects that the plugin's entry creates for the
236
+ * workspaces of `discovery`, relative to the repository root, without the
237
+ * root itself: each member's folder, and the folder of each root manifest
238
+ * that Nx hands to the plugin (`inferProjects` in `projects.ts`).
239
+ */
240
+ function pluginProjectRoots(discovery) {
241
+ const roots = new Set(discovery.workspaces.flatMap((workspace) => [
242
+ ...workspace.members.map((pkg) => toPosix((0, node_path_1.relative)(discovery.workspaceRoot, (0, node_path_1.dirname)(pkg.manifest_path)))),
243
+ ...(workspace.rootManifestHanded ? [toPosix(workspace.root)] : []),
244
+ ]));
245
+ roots.delete("");
246
+ roots.delete(".");
247
+ return [...roots].sort();
248
+ }
249
+ /**
250
+ * Fails when a `fileInputs` pattern names files in the folder of a project
251
+ * that none of its crate's filesets covers, once Nx has merged the projects
252
+ * of every plugin and entry.
253
+ *
254
+ * Nx matches an `includeIgnored` fileset only against the files of the
255
+ * deepest project whose folder holds the folder that the fileset is read
256
+ * from, and leaves out the projects in folders below it
257
+ * (`EVD-NX-24-FILESET-SCOPE`). `declaredFiles` adds a fileset for each folder
258
+ * of the entry's own projects there, but projects that other plugins or
259
+ * entries create are known only here. For each project in a folder below
260
+ * the fixed part of a pattern that a project's folder holds, the files that
261
+ * the pattern names there count only where the crate's filesets hold the
262
+ * fileset that `declaredFiles` would give that folder, or one for the whole
263
+ * folder, as a pattern that the repository adds does. Otherwise the message
264
+ * gives that fileset as a pattern relative to the manifest. Each alternative
265
+ * of a pattern's braces is checked on its own, and its segments are matched
266
+ * against the folders' names as Nx matches them, so that a folder that the
267
+ * pattern does not reach fails nothing.
268
+ *
269
+ * @param patterns The patterns of the entry's projects and of the crates
270
+ * whose folders their inputs name ({@link DeclaredFiles.patterns}).
271
+ * @param projects The merged projects that `createDependencies` receives.
272
+ * @param matches How a segment is matched against a folder's name ({@link nxSegmentMatcher}).
273
+ * @throws {Error} Naming the manifest, the pattern, its crates and the
274
+ * project for each folder, with the patterns that would cover it.
275
+ */
276
+ // @mara implements DES-INPUTS
277
+ // @mara implements REQ-FILE-INPUTS-HASHABLE
278
+ // @mara implements DES-DIAGNOSTICS
279
+ function failOnUncoveredProjectFolders(patterns, projects, matches) {
280
+ var _a, _b;
281
+ const names = new Map();
282
+ for (const [name, project] of Object.entries(projects)) {
283
+ const root = toPosix(node_path_1.posix.normalize((_a = project.root) !== null && _a !== void 0 ? _a : "")).replace(/\/$/, "");
284
+ if (root !== "" && root !== "." && !names.has(root)) {
285
+ names.set(root, name);
286
+ }
287
+ }
288
+ const roots = [...names.keys()].sort();
289
+ // The crates of each message, which a workspace's table gives to every member.
290
+ const problems = new Map();
291
+ for (const pattern of patterns) {
292
+ const owner = pattern.folder === "" ? undefined : deepestHolder(roots, pattern.folder);
293
+ if (owner === undefined) {
294
+ continue;
295
+ }
296
+ for (const root of roots) {
297
+ if (!isBelow(pattern.folder, root)) {
298
+ continue;
299
+ }
300
+ // What `declaredFiles` gives a project folder of its own entry, or a
301
+ // pattern for the whole folder.
302
+ const covered = (glob) => pattern.crateFilesets.includes(`{workspaceRoot}/${escapeGlob(root)}`) ||
303
+ [glob, "**", "**/*"].some((whole) => pattern.crateFilesets.includes(folderFileset(root, whole)));
304
+ const between = root.slice(pattern.folder.length + 1).split("/");
305
+ const below = (pattern.unread
306
+ ? ["**"]
307
+ : patternsBelow(pattern.glob, between, { folders: pattern.namesFolders, matches })).filter((glob) => !covered(glob));
308
+ if (below.length === 0) {
309
+ continue;
310
+ }
311
+ const lines = below.map((glob) => {
312
+ const path = node_path_1.posix.relative(pattern.manifestFolder, root) || ".";
313
+ return `${escapeGlob(path)}/${glob}`;
314
+ });
315
+ const message = [
316
+ `${pattern.input.manifest}: the fileInputs pattern ${quoted(Object.assign(Object.assign({}, pattern.input), { alternative: pattern.alternative }))} of {crates} names files in ${root}, the folder of the project "${names.get(root)}", which Nx would leave out of the cache keys.`,
317
+ `The pattern starts in ${pattern.folder}, inside the folder of the project "${names.get(owner)}", and Nx matches such a pattern only against that project's own files, not against those of a project in a folder below it.`,
318
+ `nx-rust adds a pattern for the folder of each project that it creates, but "${names.get(root)}" comes from another plugin or entry.`,
319
+ `Add ${list(lines.map((line) => JSON.stringify(line)))} beside it in the fileInputs of ${pattern.input.manifest}, or narrow the pattern so that it does not reach ${root}.`,
320
+ ].join(" ");
321
+ problems.set(message, ((_b = problems.get(message)) !== null && _b !== void 0 ? _b : new Set()).add(pattern.crate));
322
+ }
323
+ }
324
+ if (problems.size > 0) {
325
+ throw new Error([...problems]
326
+ .map(([message, crates]) => {
327
+ const sorted = [...crates].sort();
328
+ return message.replace("{crates}", `${sorted.length === 1 ? "the crate" : "the crates"} ${list(sorted)}`);
329
+ })
330
+ .join("\n"));
331
+ }
332
+ }
333
+ /**
334
+ * The patterns, relative to a folder below the one that a pattern starts in,
335
+ * for the files below that folder that the rest of the pattern names: `**`
336
+ * where the pattern names everything below it, as a pattern without a glob,
337
+ * or one that names folders and names that folder or one above it, does;
338
+ * none where it names nothing there.
339
+ *
340
+ * The rest has no braces left ({@link braceAlternatives}). Its segments are
341
+ * matched against the names of the folders in between with `matches`, a
342
+ * `**` standing for any number of them.
343
+ *
344
+ * @param glob The rest of the pattern after the folder it starts in, `""` for none.
345
+ * @param names The names of the folders from that folder down to the folder below it.
346
+ * @param options Whether the pattern names folders ({@link namesFolders}), and how a segment is matched.
347
+ */
348
+ function patternsBelow(glob, names, options) {
349
+ const segments = glob.split("/").filter((segment) => segment !== "" && segment !== ".");
350
+ if (segments.length === 0) {
351
+ return ["**"];
352
+ }
353
+ // The positions in `segments` that the names read so far can lead to,
354
+ // with each `**` also standing for no folder at all.
355
+ const close = (states) => {
356
+ // A state added here is visited as well, which only adds what it adds already.
357
+ for (const state of states) {
358
+ for (let next = state; segments[next] === "**"; next++) {
359
+ states.add(next + 1);
360
+ }
361
+ }
362
+ return states;
363
+ };
364
+ let states = close(new Set([0]));
365
+ for (const name of names) {
366
+ const next = new Set();
367
+ for (const state of states) {
368
+ if (state >= segments.length) {
369
+ continue;
370
+ }
371
+ if (segments[state] === "**") {
372
+ next.add(state);
373
+ }
374
+ else if (options.matches(segments[state], name)) {
375
+ next.add(state + 1);
376
+ }
377
+ }
378
+ states = close(next);
379
+ // The pattern names a folder that holds the folder below.
380
+ if (options.folders && states.has(segments.length)) {
381
+ return ["**"];
382
+ }
383
+ }
384
+ // A pattern that names files only names none at the folder itself.
385
+ const found = new Set([...states]
386
+ .filter((state) => state < segments.length)
387
+ .map((state) => segments.slice(state).join("/")));
388
+ if (found.has("**") || found.has("**/*")) {
389
+ return ["**"];
390
+ }
391
+ return [...found].filter((pattern) => !found.has(`**/${pattern}`)).sort();
392
+ }
393
+ /** The most alternatives that a pattern's braces are expanded to. */
394
+ const maximumAlternatives = 256;
395
+ /**
396
+ * The pattern with each group of braces replaced by its alternatives, once
397
+ * for each combination, nested groups included; `undefined` beyond
398
+ * {@link maximumAlternatives}, where the plugin takes the pattern to name
399
+ * everything below the folder it starts in. A brace without its partner, or
400
+ * escaped, stays as it is.
401
+ */
402
+ function braceAlternatives(pattern) {
403
+ let open = -1;
404
+ for (let index = 0; index < pattern.length; index++) {
405
+ if (pattern[index] === "\\") {
406
+ index++;
407
+ }
408
+ else if (pattern[index] === "{") {
409
+ open = index;
410
+ break;
411
+ }
412
+ }
413
+ if (open === -1) {
414
+ return [pattern];
415
+ }
416
+ const commas = [];
417
+ let depth = 0;
418
+ let close = -1;
419
+ for (let index = open + 1; index < pattern.length && close === -1; index++) {
420
+ const character = pattern[index];
421
+ if (character === "\\") {
422
+ index++;
423
+ }
424
+ else if (character === "{") {
425
+ depth++;
426
+ }
427
+ else if (character === "}") {
428
+ if (depth === 0) {
429
+ close = index;
430
+ }
431
+ else {
432
+ depth--;
433
+ }
434
+ }
435
+ else if (character === "," && depth === 0) {
436
+ commas.push(index);
437
+ }
438
+ }
439
+ if (close === -1) {
440
+ return [pattern];
441
+ }
442
+ const bounds = [open, ...commas, close];
443
+ const results = [];
444
+ for (let index = 0; index < bounds.length - 1; index++) {
445
+ const alternative = pattern.slice(bounds[index] + 1, bounds[index + 1]);
446
+ const expanded = braceAlternatives(`${pattern.slice(0, open)}${alternative}${pattern.slice(close + 1)}`);
447
+ if (expanded === undefined || results.length + expanded.length > maximumAlternatives) {
448
+ return undefined;
449
+ }
450
+ results.push(...expanded);
451
+ }
452
+ return results;
453
+ }
454
+ /** A path with the characters that make a pattern a glob escaped by a backslash. */
455
+ function escapeGlob(path) {
456
+ return path.replace(/[*?[\]{}()\\]/g, (character) => `\\${character}`);
457
+ }
458
+ /** Whether `path` lies strictly below `folder`, both relative to the repository root. */
459
+ function isBelow(folder, path) {
460
+ return path.startsWith(`${folder}/`);
461
+ }
462
+ /** The deepest of `roots` that is `folder` or holds it. */
463
+ function deepestHolder(roots, folder) {
464
+ var _a;
465
+ let holder;
466
+ for (const root of roots) {
467
+ if ((folder === root || isBelow(root, folder)) && root.length > ((_a = holder === null || holder === void 0 ? void 0 : holder.length) !== null && _a !== void 0 ? _a : -1)) {
468
+ holder = root;
469
+ }
470
+ }
471
+ return holder;
472
+ }
473
+ function toPosix(path) {
474
+ return path.split(node_path_1.sep).join(node_path_1.posix.sep);
475
+ }
476
+ // `a`, `a and b`, `a, b and c`
477
+ function list(items) {
478
+ return items.length <= 1
479
+ ? items.join("")
480
+ : `${items.slice(0, -1).join(", ")} and ${items[items.length - 1]}`;
481
+ }
482
+ /**
483
+ * The pattern against its manifest's folder: where it starts, as a real
484
+ * path, the segments before the first one with a glob character, as
485
+ * written, and the rest of the pattern, without `.` segments and empty
486
+ * ones. A relative pattern starts at its manifest's folder. An absolute one
487
+ * starts at the repository root where it begins with the root's path, so
488
+ * that the links in the spelling of the root itself, such as `/tmp` on
489
+ * macOS, are not counted as links that the pattern passes; elsewhere at the
490
+ * file system's root.
491
+ */
492
+ function splitPattern(input, repositoryRoot) {
493
+ let pattern = input.pattern;
494
+ let start = (0, real_path_1.physicalPath)((0, node_path_1.join)(repositoryRoot, node_path_1.posix.dirname(input.manifest)));
495
+ if (node_path_1.posix.isAbsolute(pattern)) {
496
+ const root = repositoryRoot.endsWith(node_path_1.sep) ? repositoryRoot : `${repositoryRoot}${node_path_1.sep}`;
497
+ start = pattern.startsWith(root) ? (0, real_path_1.physicalPath)(repositoryRoot) : node_path_1.sep;
498
+ pattern = pattern.startsWith(root) ? pattern.slice(root.length) : pattern;
499
+ }
500
+ const fixed = [];
501
+ const glob = [];
502
+ for (const segment of pattern.split("/")) {
503
+ if (segment === "" || segment === ".") {
504
+ continue;
505
+ }
506
+ (glob.length > 0 || globCharacters.test(segment) ? glob : fixed).push(segment);
507
+ }
508
+ return { start, fixed, glob: glob.join("/") };
509
+ }
510
+ /** Linux's MAXSYMLINKS. */
511
+ const maximumLinks = 40;
512
+ /**
513
+ * The real path that `segments` reach from the real folder `start`, as the
514
+ * system resolves it: a `..` leaves the folder that a link before it leads
515
+ * to, a link whose target does not exist yet is followed too, and segments
516
+ * that do not exist are added as written. With it, the absolute path of
517
+ * every link passed on the way, its folder resolved and itself not, in the
518
+ * order they are passed, also those that a link's target passes.
519
+ */
520
+ function resolveFixed(start, segments) {
521
+ const links = [];
522
+ const visit = (folder, parts) => {
523
+ let current = folder;
524
+ for (const part of parts) {
525
+ if (part === "" || part === ".") {
526
+ continue;
527
+ }
528
+ if (part === "..") {
529
+ current = (0, node_path_1.dirname)(current);
530
+ continue;
531
+ }
532
+ const next = (0, node_path_1.join)(current, part);
533
+ const target = links.length < maximumLinks ? linkTarget(next) : undefined;
534
+ if (target === undefined) {
535
+ current = next;
536
+ continue;
537
+ }
538
+ links.push(next);
539
+ current = visit((0, node_path_1.isAbsolute)(target) ? node_path_1.sep : current, target.split(node_path_1.sep));
540
+ }
541
+ return current;
542
+ };
543
+ return { real: visit(start, segments), links };
544
+ }
545
+ /** What the symbolic link at `path` points to, or `undefined` where no link lies there. */
546
+ function linkTarget(path) {
547
+ try {
548
+ return (0, node_fs_1.lstatSync)(path).isSymbolicLink() ? (0, node_fs_1.readlinkSync)(path) : undefined;
549
+ }
550
+ catch (_a) {
551
+ // Missing, or below a file.
552
+ return undefined;
553
+ }
554
+ }
555
+ /** `path` relative to `folder` where it lies in it, `""` for the folder itself; else `undefined`. */
556
+ function within(folder, path) {
557
+ const inside = (0, node_path_1.relative)(folder, path);
558
+ return inside === ".." || inside.startsWith("../") || (0, node_path_1.isAbsolute)(inside) ? undefined : inside;
559
+ }
560
+ /** The workspace's build and artifact directories, once each, also before Cargo creates them. */
561
+ function cargoDirectories(workspace) {
562
+ const { build_directory: build, target_directory: artifact } = workspace.report;
563
+ const directory = (role, path) => ({
564
+ role,
565
+ path: (0, node_path_1.resolve)(path),
566
+ realPath: (0, real_path_1.physicalPath)(path),
567
+ });
568
+ if (build === undefined || (0, real_path_1.physicalPath)(build) === (0, real_path_1.physicalPath)(artifact)) {
569
+ const role = build === undefined ? "artifact directory" : "build and artifact directory";
570
+ return [directory(role, artifact)];
571
+ }
572
+ return [directory("build directory", build), directory("artifact directory", artifact)];
573
+ }
574
+ /** The pattern in quotes, with its alternative where that is another. */
575
+ function quoted({ pattern, alternative }) {
576
+ return alternative === undefined || alternative === pattern
577
+ ? JSON.stringify(pattern)
578
+ : `${JSON.stringify(pattern)} (its alternative ${JSON.stringify(alternative)})`;
579
+ }
580
+ function parentAfterGlobProblem(input) {
581
+ return [
582
+ `${input.manifest}: the fileInputs pattern ${JSON.stringify(input.pattern)} has a ".." segment after a glob character, so that nx-rust cannot tell which folder it reaches, and Nx cannot hash it.`,
583
+ 'Put every ".." before the first glob character, such as "*", "?" or "{".',
584
+ ].join(" ");
585
+ }
586
+ /** @param where Where the pattern leaves the repository, such as `resolves to /x`. */
587
+ function outsideProblem(input, where) {
588
+ return [
589
+ `${input.manifest}: the fileInputs pattern ${quoted(input)} ${where}, outside the repository, whose files Nx does not track.`,
590
+ "To key the crate's tasks on such files, add a command to runtimeInputs that prints them or a hash of them; nx affected does not see a change to its output.",
591
+ ].join(" ");
592
+ }
593
+ function cargoDirectoryProblem(input, directory, workspace, repositoryRoot) {
594
+ const shown = within(repositoryRoot, directory.path) || directory.path;
595
+ return [
596
+ `${input.manifest}: the fileInputs pattern ${quoted(input)} resolves into ${shown}, Cargo's ${directory.role} of ${(0, discovery_1.describeWorkspaces)([workspace.root])}.`,
597
+ "Cargo writes the files there; declare the files that they are made from instead.",
598
+ ].join(" ");
599
+ }
600
+ //# sourceMappingURL=declared-files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"declared-files.js","sourceRoot":"","sources":["../../../../nx-rust/src/graph/declared-files.ts"],"names":[],"mappings":";;AA8IA,sCA4GC;AAOD,sDAmBC;AAQD,oCAEC;AA0CD,gDAcC;AAgCD,sEAkEC;AAiBD,sCAiDC;AAzfD,qCAAkD;AAClD,yCAAqF;AACrF,2CAAiF;AAEjF,uCAA6E;AAC7E,2CAA2C;AAuE3C,kGAAkG;AAClG,MAAM,cAAc,GAAG,eAAe,CAAC;AAEvC;;;GAGG;AACH,MAAM,eAAe,GAAG,wBAAwB,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,8BAA8B;AAC9B,2CAA2C;AAC3C,4CAA4C;AAC5C,mCAAmC;AACnC,SAAgB,aAAa,CAC3B,UAAgC,EAChC,SAAkD,EAClD,cAAsB,EACtB,KAAoB;;IAEpB,MAAM,QAAQ,GAAG,IAAI,GAAG,EAA2B,CAAC;IACpD,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,MAAM,QAAQ,GAAsB,EAAE,CAAC;IACvC,MAAM,aAAa,GAAa,EAAE,CAAC;IACnC,MAAM,QAAQ,GAAG,IAAA,wBAAY,EAAC,cAAc,CAAC,CAAC;IAC9C,MAAM,WAAW,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAChD,MAAM,OAAO,GAAG,CAAC,IAAY,EAAE,EAAE;QAC/B,MAAM,OAAO,GAAG,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,mBAAmB,I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