@convesoft/nx-rust 0.0.0-stage → 1.0.0-rc.1

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 (391) hide show
  1. package/LICENSE-APACHE +201 -0
  2. package/LICENSE-MIT +21 -0
  3. package/README.md +48 -2
  4. package/executors.json +35 -0
  5. package/generators.json +19 -0
  6. package/package.json +26 -4
  7. package/src/cargo/build-settings.d.ts +54 -0
  8. package/src/cargo/build-settings.js +93 -0
  9. package/src/cargo/build-settings.js.map +1 -0
  10. package/src/cargo/configured-runner.d.ts +36 -0
  11. package/src/cargo/configured-runner.js +99 -0
  12. package/src/cargo/configured-runner.js.map +1 -0
  13. package/src/cargo/configured-tools.d.ts +35 -0
  14. package/src/cargo/configured-tools.js +46 -0
  15. package/src/cargo/configured-tools.js.map +1 -0
  16. package/src/cargo/dep-info-basedir.d.ts +18 -0
  17. package/src/cargo/dep-info-basedir.js +38 -0
  18. package/src/cargo/dep-info-basedir.js.map +1 -0
  19. package/src/cargo/directories.d.ts +40 -0
  20. package/src/cargo/directories.js +89 -0
  21. package/src/cargo/directories.js.map +1 -0
  22. package/src/cargo/host-triple.d.ts +7 -0
  23. package/src/cargo/host-triple.js +21 -0
  24. package/src/cargo/host-triple.js.map +1 -0
  25. package/src/cargo/lockfile.d.ts +63 -0
  26. package/src/cargo/lockfile.js +157 -0
  27. package/src/cargo/lockfile.js.map +1 -0
  28. package/src/cargo/metadata.d.ts +112 -0
  29. package/src/cargo/metadata.js +37 -0
  30. package/src/cargo/metadata.js.map +1 -0
  31. package/src/cargo/package-specs.d.ts +54 -0
  32. package/src/cargo/package-specs.js +109 -0
  33. package/src/cargo/package-specs.js.map +1 -0
  34. package/src/cargo/paths-crates.d.ts +27 -0
  35. package/src/cargo/paths-crates.js +69 -0
  36. package/src/cargo/paths-crates.js.map +1 -0
  37. package/src/cargo/print-artifact-folders.d.ts +1 -0
  38. package/src/cargo/print-artifact-folders.js +58 -0
  39. package/src/cargo/print-artifact-folders.js.map +1 -0
  40. package/src/cargo/redirections.d.ts +87 -0
  41. package/src/cargo/redirections.js +195 -0
  42. package/src/cargo/redirections.js.map +1 -0
  43. package/src/cargo/run-cargo.d.ts +31 -0
  44. package/src/cargo/run-cargo.js +75 -0
  45. package/src/cargo/run-cargo.js.map +1 -0
  46. package/src/cargo/target-triples.d.ts +98 -0
  47. package/src/cargo/target-triples.js +265 -0
  48. package/src/cargo/target-triples.js.map +1 -0
  49. package/src/cargo/version-req.d.ts +12 -0
  50. package/src/cargo/version-req.js +122 -0
  51. package/src/cargo/version-req.js.map +1 -0
  52. package/src/compatibility/cargo-version.d.ts +43 -0
  53. package/src/compatibility/cargo-version.js +83 -0
  54. package/src/compatibility/cargo-version.js.map +1 -0
  55. package/src/compatibility/nx-bridge.d.ts +312 -0
  56. package/src/compatibility/nx-bridge.js +407 -0
  57. package/src/compatibility/nx-bridge.js.map +1 -0
  58. package/src/compatibility/nx-version.d.ts +104 -0
  59. package/src/compatibility/nx-version.js +272 -0
  60. package/src/compatibility/nx-version.js.map +1 -0
  61. package/src/executors/affected-inputs.d.ts +29 -0
  62. package/src/executors/affected-inputs.js +259 -0
  63. package/src/executors/affected-inputs.js.map +1 -0
  64. package/src/executors/affected-run.d.ts +54 -0
  65. package/src/executors/affected-run.js +394 -0
  66. package/src/executors/affected-run.js.map +1 -0
  67. package/src/executors/affected.d.ts +239 -0
  68. package/src/executors/affected.js +589 -0
  69. package/src/executors/affected.js.map +1 -0
  70. package/src/executors/baseline-context.d.ts +85 -0
  71. package/src/executors/baseline-context.js +227 -0
  72. package/src/executors/baseline-context.js.map +1 -0
  73. package/src/executors/baseline.d.ts +123 -0
  74. package/src/executors/baseline.js +356 -0
  75. package/src/executors/baseline.js.map +1 -0
  76. package/src/executors/batch.d.ts +75 -0
  77. package/src/executors/batch.js +434 -0
  78. package/src/executors/batch.js.map +1 -0
  79. package/src/executors/build-records.d.ts +110 -0
  80. package/src/executors/build-records.js +267 -0
  81. package/src/executors/build-records.js.map +1 -0
  82. package/src/executors/cargo/executor.d.ts +28 -0
  83. package/src/executors/cargo/executor.js +58 -0
  84. package/src/executors/cargo/executor.js.map +1 -0
  85. package/src/executors/cargo/schema.json +54 -0
  86. package/src/executors/cargo-invocation.d.ts +81 -0
  87. package/src/executors/cargo-invocation.js +109 -0
  88. package/src/executors/cargo-invocation.js.map +1 -0
  89. package/src/executors/cargo-output.d.ts +212 -0
  90. package/src/executors/cargo-output.js +646 -0
  91. package/src/executors/cargo-output.js.map +1 -0
  92. package/src/executors/command.d.ts +318 -0
  93. package/src/executors/command.js +517 -0
  94. package/src/executors/command.js.map +1 -0
  95. package/src/executors/coverage-baseline.d.ts +23 -0
  96. package/src/executors/coverage-baseline.js +284 -0
  97. package/src/executors/coverage-baseline.js.map +1 -0
  98. package/src/executors/declared-options.d.ts +21 -0
  99. package/src/executors/declared-options.js +58 -0
  100. package/src/executors/declared-options.js.map +1 -0
  101. package/src/executors/digests.d.ts +94 -0
  102. package/src/executors/digests.js +190 -0
  103. package/src/executors/digests.js.map +1 -0
  104. package/src/executors/dotenv-check.d.ts +79 -0
  105. package/src/executors/dotenv-check.js +553 -0
  106. package/src/executors/dotenv-check.js.map +1 -0
  107. package/src/executors/group-invocations.d.ts +80 -0
  108. package/src/executors/group-invocations.js +253 -0
  109. package/src/executors/group-invocations.js.map +1 -0
  110. package/src/executors/group-run.d.ts +114 -0
  111. package/src/executors/group-run.js +591 -0
  112. package/src/executors/group-run.js.map +1 -0
  113. package/src/executors/groups.d.ts +113 -0
  114. package/src/executors/groups.js +285 -0
  115. package/src/executors/groups.js.map +1 -0
  116. package/src/executors/input-check.d.ts +52 -0
  117. package/src/executors/input-check.js +271 -0
  118. package/src/executors/input-check.js.map +1 -0
  119. package/src/executors/kept-files.d.ts +98 -0
  120. package/src/executors/kept-files.js +341 -0
  121. package/src/executors/kept-files.js.map +1 -0
  122. package/src/executors/lockfile/executor.d.ts +16 -0
  123. package/src/executors/lockfile/executor.js +37 -0
  124. package/src/executors/lockfile/executor.js.map +1 -0
  125. package/src/executors/lockfile/schema.json +50 -0
  126. package/src/executors/napi-build.d.ts +73 -0
  127. package/src/executors/napi-build.js +420 -0
  128. package/src/executors/napi-build.js.map +1 -0
  129. package/src/executors/nextest.d.ts +185 -0
  130. package/src/executors/nextest.js +498 -0
  131. package/src/executors/nextest.js.map +1 -0
  132. package/src/executors/nx-command.d.ts +95 -0
  133. package/src/executors/nx-command.js +205 -0
  134. package/src/executors/nx-command.js.map +1 -0
  135. package/src/executors/nx-task-files.d.ts +82 -0
  136. package/src/executors/nx-task-files.js +156 -0
  137. package/src/executors/nx-task-files.js.map +1 -0
  138. package/src/executors/print-test-mode.d.ts +1 -0
  139. package/src/executors/print-test-mode.js +25 -0
  140. package/src/executors/print-test-mode.js.map +1 -0
  141. package/src/executors/release-publish/executor.d.ts +24 -0
  142. package/src/executors/release-publish/executor.js +165 -0
  143. package/src/executors/release-publish/executor.js.map +1 -0
  144. package/src/executors/release-publish/schema.json +30 -0
  145. package/src/executors/run/executor.d.ts +12 -0
  146. package/src/executors/run/executor.js +27 -0
  147. package/src/executors/run/executor.js.map +1 -0
  148. package/src/executors/run/schema.json +45 -0
  149. package/src/executors/runner-script.d.ts +12 -0
  150. package/src/executors/runner-script.js +22 -0
  151. package/src/executors/runner-script.js.map +1 -0
  152. package/src/executors/runtime-input-check.d.ts +24 -0
  153. package/src/executors/runtime-input-check.js +87 -0
  154. package/src/executors/runtime-input-check.js.map +1 -0
  155. package/src/executors/shared-artifacts.d.ts +44 -0
  156. package/src/executors/shared-artifacts.js +132 -0
  157. package/src/executors/shared-artifacts.js.map +1 -0
  158. package/src/executors/split-words.d.ts +24 -0
  159. package/src/executors/split-words.js +111 -0
  160. package/src/executors/split-words.js.map +1 -0
  161. package/src/executors/stage.d.ts +163 -0
  162. package/src/executors/stage.js +526 -0
  163. package/src/executors/stage.js.map +1 -0
  164. package/src/executors/staged-run.d.ts +24 -0
  165. package/src/executors/staged-run.js +110 -0
  166. package/src/executors/staged-run.js.map +1 -0
  167. package/src/executors/task-env.d.ts +271 -0
  168. package/src/executors/task-env.js +494 -0
  169. package/src/executors/task-env.js.map +1 -0
  170. package/src/executors/task-execution.d.ts +61 -0
  171. package/src/executors/task-execution.js +122 -0
  172. package/src/executors/task-execution.js.map +1 -0
  173. package/src/executors/task-guards.d.ts +112 -0
  174. package/src/executors/task-guards.js +430 -0
  175. package/src/executors/task-guards.js.map +1 -0
  176. package/src/executors/task-options.d.ts +114 -0
  177. package/src/executors/task-options.js +258 -0
  178. package/src/executors/task-options.js.map +1 -0
  179. package/src/executors/task.d.ts +166 -0
  180. package/src/executors/task.js +520 -0
  181. package/src/executors/task.js.map +1 -0
  182. package/src/executors/test-mode.d.ts +182 -0
  183. package/src/executors/test-mode.js +391 -0
  184. package/src/executors/test-mode.js.map +1 -0
  185. package/src/executors/test-runner.d.ts +44 -0
  186. package/src/executors/test-runner.js +159 -0
  187. package/src/executors/test-runner.js.map +1 -0
  188. package/src/executors/test-steps.d.ts +109 -0
  189. package/src/executors/test-steps.js +535 -0
  190. package/src/executors/test-steps.js.map +1 -0
  191. package/src/executors/wasm-build.d.ts +56 -0
  192. package/src/executors/wasm-build.js +216 -0
  193. package/src/executors/wasm-build.js.map +1 -0
  194. package/src/generators/crate/binary.schema.json +28 -0
  195. package/src/generators/crate/crate.d.ts +24 -0
  196. package/src/generators/crate/crate.js +108 -0
  197. package/src/generators/crate/crate.js.map +1 -0
  198. package/src/generators/crate/enclosing-workspace.d.ts +25 -0
  199. package/src/generators/crate/enclosing-workspace.js +58 -0
  200. package/src/generators/crate/enclosing-workspace.js.map +1 -0
  201. package/src/generators/crate/library.schema.json +28 -0
  202. package/src/generators/init/graph-check.d.ts +81 -0
  203. package/src/generators/init/graph-check.js +299 -0
  204. package/src/generators/init/graph-check.js.map +1 -0
  205. package/src/generators/init/init.d.ts +23 -0
  206. package/src/generators/init/init.js +113 -0
  207. package/src/generators/init/init.js.map +1 -0
  208. package/src/generators/init/report.d.ts +19 -0
  209. package/src/generators/init/report.js +93 -0
  210. package/src/generators/init/report.js.map +1 -0
  211. package/src/generators/init/schema.json +9 -0
  212. package/src/graph/artifact-kinds.d.ts +29 -0
  213. package/src/graph/artifact-kinds.js +50 -0
  214. package/src/graph/artifact-kinds.js.map +1 -0
  215. package/src/graph/artifact-names.d.ts +97 -0
  216. package/src/graph/artifact-names.js +276 -0
  217. package/src/graph/artifact-names.js.map +1 -0
  218. package/src/graph/build-records.d.ts +74 -0
  219. package/src/graph/build-records.js +104 -0
  220. package/src/graph/build-records.js.map +1 -0
  221. package/src/graph/caching.d.ts +148 -0
  222. package/src/graph/caching.js +676 -0
  223. package/src/graph/caching.js.map +1 -0
  224. package/src/graph/collisions.d.ts +106 -0
  225. package/src/graph/collisions.js +156 -0
  226. package/src/graph/collisions.js.map +1 -0
  227. package/src/graph/computation-reports.d.ts +89 -0
  228. package/src/graph/computation-reports.js +216 -0
  229. package/src/graph/computation-reports.js.map +1 -0
  230. package/src/graph/declared-files.d.ts +190 -0
  231. package/src/graph/declared-files.js +600 -0
  232. package/src/graph/declared-files.js.map +1 -0
  233. package/src/graph/discovery.d.ts +175 -0
  234. package/src/graph/discovery.js +656 -0
  235. package/src/graph/discovery.js.map +1 -0
  236. package/src/graph/edges.d.ts +25 -0
  237. package/src/graph/edges.js +94 -0
  238. package/src/graph/edges.js.map +1 -0
  239. package/src/graph/entries.d.ts +83 -0
  240. package/src/graph/entries.js +259 -0
  241. package/src/graph/entries.js.map +1 -0
  242. package/src/graph/inputs.d.ts +420 -0
  243. package/src/graph/inputs.js +746 -0
  244. package/src/graph/inputs.js.map +1 -0
  245. package/src/graph/lockfile-task.d.ts +74 -0
  246. package/src/graph/lockfile-task.js +105 -0
  247. package/src/graph/lockfile-task.js.map +1 -0
  248. package/src/graph/names.d.ts +41 -0
  249. package/src/graph/names.js +34 -0
  250. package/src/graph/names.js.map +1 -0
  251. package/src/graph/napi.d.ts +107 -0
  252. package/src/graph/napi.js +206 -0
  253. package/src/graph/napi.js.map +1 -0
  254. package/src/graph/nx-glob.d.ts +36 -0
  255. package/src/graph/nx-glob.js +152 -0
  256. package/src/graph/nx-glob.js.map +1 -0
  257. package/src/graph/nx-internals.d.ts +57 -0
  258. package/src/graph/nx-internals.js +128 -0
  259. package/src/graph/nx-internals.js.map +1 -0
  260. package/src/graph/options.d.ts +32 -0
  261. package/src/graph/options.js +80 -0
  262. package/src/graph/options.js.map +1 -0
  263. package/src/graph/outputs.d.ts +75 -0
  264. package/src/graph/outputs.js +140 -0
  265. package/src/graph/outputs.js.map +1 -0
  266. package/src/graph/path-dependencies.d.ts +122 -0
  267. package/src/graph/path-dependencies.js +459 -0
  268. package/src/graph/path-dependencies.js.map +1 -0
  269. package/src/graph/plugin-package.d.ts +36 -0
  270. package/src/graph/plugin-package.js +132 -0
  271. package/src/graph/plugin-package.js.map +1 -0
  272. package/src/graph/plugin-version.d.ts +20 -0
  273. package/src/graph/plugin-version.js +153 -0
  274. package/src/graph/plugin-version.js.map +1 -0
  275. package/src/graph/projects.d.ts +141 -0
  276. package/src/graph/projects.js +182 -0
  277. package/src/graph/projects.js.map +1 -0
  278. package/src/graph/reached-projects.d.ts +46 -0
  279. package/src/graph/reached-projects.js +102 -0
  280. package/src/graph/reached-projects.js.map +1 -0
  281. package/src/graph/real-path.d.ts +47 -0
  282. package/src/graph/real-path.js +113 -0
  283. package/src/graph/real-path.js.map +1 -0
  284. package/src/graph/redirected-uses.d.ts +98 -0
  285. package/src/graph/redirected-uses.js +434 -0
  286. package/src/graph/redirected-uses.js.map +1 -0
  287. package/src/graph/registration.d.ts +121 -0
  288. package/src/graph/registration.js +233 -0
  289. package/src/graph/registration.js.map +1 -0
  290. package/src/graph/script-input.d.ts +46 -0
  291. package/src/graph/script-input.js +65 -0
  292. package/src/graph/script-input.js.map +1 -0
  293. package/src/graph/settings.d.ts +178 -0
  294. package/src/graph/settings.js +479 -0
  295. package/src/graph/settings.js.map +1 -0
  296. package/src/graph/target-defaults-causes.d.ts +33 -0
  297. package/src/graph/target-defaults-causes.js +202 -0
  298. package/src/graph/target-defaults-causes.js.map +1 -0
  299. package/src/graph/target-defaults-layers.d.ts +186 -0
  300. package/src/graph/target-defaults-layers.js +420 -0
  301. package/src/graph/target-defaults-layers.js.map +1 -0
  302. package/src/graph/target-defaults-meaning.d.ts +95 -0
  303. package/src/graph/target-defaults-meaning.js +292 -0
  304. package/src/graph/target-defaults-meaning.js.map +1 -0
  305. package/src/graph/target-defaults-report.d.ts +77 -0
  306. package/src/graph/target-defaults-report.js +242 -0
  307. package/src/graph/target-defaults-report.js.map +1 -0
  308. package/src/graph/target-defaults.d.ts +79 -0
  309. package/src/graph/target-defaults.js +425 -0
  310. package/src/graph/target-defaults.js.map +1 -0
  311. package/src/graph/target-fields.d.ts +16 -0
  312. package/src/graph/target-fields.js +134 -0
  313. package/src/graph/target-fields.js.map +1 -0
  314. package/src/graph/target-tables.d.ts +45 -0
  315. package/src/graph/target-tables.js +299 -0
  316. package/src/graph/target-tables.js.map +1 -0
  317. package/src/graph/targets.d.ts +367 -0
  318. package/src/graph/targets.js +404 -0
  319. package/src/graph/targets.js.map +1 -0
  320. package/src/graph/unification.d.ts +141 -0
  321. package/src/graph/unification.js +459 -0
  322. package/src/graph/unification.js.map +1 -0
  323. package/src/graph/unignored-directories.d.ts +25 -0
  324. package/src/graph/unignored-directories.js +89 -0
  325. package/src/graph/unignored-directories.js.map +1 -0
  326. package/src/graph/visibility.d.ts +17 -0
  327. package/src/graph/visibility.js +67 -0
  328. package/src/graph/visibility.js.map +1 -0
  329. package/src/graph/warnings.d.ts +38 -0
  330. package/src/graph/warnings.js +77 -0
  331. package/src/graph/warnings.js.map +1 -0
  332. package/src/graph/wasm.d.ts +56 -0
  333. package/src/graph/wasm.js +77 -0
  334. package/src/graph/wasm.js.map +1 -0
  335. package/src/index.d.ts +68 -0
  336. package/src/index.js +109 -0
  337. package/src/index.js.map +1 -0
  338. package/src/release/manifests.d.ts +95 -0
  339. package/src/release/manifests.js +164 -0
  340. package/src/release/manifests.js.map +1 -0
  341. package/src/release/places.d.ts +127 -0
  342. package/src/release/places.js +368 -0
  343. package/src/release/places.js.map +1 -0
  344. package/src/release/publish-cargo.d.ts +177 -0
  345. package/src/release/publish-cargo.js +351 -0
  346. package/src/release/publish-cargo.js.map +1 -0
  347. package/src/release/publish-crates.d.ts +124 -0
  348. package/src/release/publish-crates.js +242 -0
  349. package/src/release/publish-crates.js.map +1 -0
  350. package/src/release/publish-environments.d.ts +50 -0
  351. package/src/release/publish-environments.js +284 -0
  352. package/src/release/publish-environments.js.map +1 -0
  353. package/src/release/publish-messages.d.ts +66 -0
  354. package/src/release/publish-messages.js +273 -0
  355. package/src/release/publish-messages.js.map +1 -0
  356. package/src/release/publish-registry.d.ts +27 -0
  357. package/src/release/publish-registry.js +135 -0
  358. package/src/release/publish-registry.js.map +1 -0
  359. package/src/release/publish-settings.d.ts +26 -0
  360. package/src/release/publish-settings.js +56 -0
  361. package/src/release/publish-settings.js.map +1 -0
  362. package/src/release/publish.d.ts +59 -0
  363. package/src/release/publish.js +620 -0
  364. package/src/release/publish.js.map +1 -0
  365. package/src/release/repository.d.ts +73 -0
  366. package/src/release/repository.js +219 -0
  367. package/src/release/repository.js.map +1 -0
  368. package/src/release/requirements.d.ts +34 -0
  369. package/src/release/requirements.js +30 -0
  370. package/src/release/requirements.js.map +1 -0
  371. package/src/release/toml-edit.d.ts +67 -0
  372. package/src/release/toml-edit.js +453 -0
  373. package/src/release/toml-edit.js.map +1 -0
  374. package/src/release/version-actions.d.ts +133 -0
  375. package/src/release/version-actions.js +474 -0
  376. package/src/release/version-actions.js.map +1 -0
  377. package/src/release/version-checks.d.ts +21 -0
  378. package/src/release/version-checks.js +151 -0
  379. package/src/release/version-checks.js.map +1 -0
  380. package/src/release/version-lockfiles.d.ts +61 -0
  381. package/src/release/version-lockfiles.js +222 -0
  382. package/src/release/version-lockfiles.js.map +1 -0
  383. package/src/tools/napi-cli.d.ts +70 -0
  384. package/src/tools/napi-cli.js +63 -0
  385. package/src/tools/napi-cli.js.map +1 -0
  386. package/src/tools/optional-tools.d.ts +121 -0
  387. package/src/tools/optional-tools.js +303 -0
  388. package/src/tools/optional-tools.js.map +1 -0
  389. package/src/tools/print-napi-cli.d.ts +1 -0
  390. package/src/tools/print-napi-cli.js +24 -0
  391. package/src/tools/print-napi-cli.js.map +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inputs.js","sourceRoot":"","sources":["../../../../nx-rust/src/graph/inputs.ts"],"names":[],"mappings":";;;AAiRA,kCAmCC;AA0CD,0DAeC;AAgCD,oCAqDC;AA4BD,8CAEC;AAYD,4CAMC;AA6DD,0CAYC;AA8CD,4DAeC;AAeD,wCAcC;AASD,8CASC;AAyDD,4CAwBC;AAwGD,wDAKC;AA4BD,0CAEC;AAWD,gDAEC;AA/4BD,yCAAkD;AAClD,gEAA+E;AAG/E,mDAA0E;AAC1E,iCAAuE;AACvE,iDAAuE;AAGvE,iCAAgE;AAEhE;;;;;;;;;;;;GAYG;AACU,QAAA,cAAc,GAAG,SAAS,CAAC;AA2DxC,0DAA0D;AAC7C,QAAA,oBAAoB,GAAkB;IACjD,kBAAkB,EAAE,iBAAiB;IACrC,UAAU,EAAE,OAAO;IACnB,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;CAC5D,CAAC;AA0EF;;;GAGG;AACU,QAAA,oBAAoB,GAAG;IAClC,WAAW;IACX,yBAAyB;IACzB,cAAc;IACd,4BAA4B;IAC5B,OAAO;IACP,eAAe;IACf,yBAAyB;IACzB,SAAS;IACT,iBAAiB;IACjB,oBAAoB;IACpB,uBAAuB;IACvB,0BAA0B;IAC1B,mBAAmB;IACnB,2BAA2B;IAC3B,qCAAqC;IACrC,qBAAqB;IACrB,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,QAAQ;IACR,UAAU;IACV,iBAAiB;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,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,74 @@
1
+ import type { TargetDependencyConfig } from "@nx/devkit";
2
+ /**
3
+ * The folder under the repository root that holds the lockfile tasks'
4
+ * digests, one folder per workspace (`DES-LOCKFILE-HASHING`, "Where the
5
+ * digests live"). Nx hashes a dependency's output only inside the
6
+ * repository, and leaves `.nx/workspace-data` out of its file map
7
+ * (`EVD-NX-24-LOCKFILE-TASK`).
8
+ */
9
+ export declare const digestRoot = ".nx/workspace-data/nx-rust/lockfile";
10
+ /** The variable that marks a run that excludes task dependencies (`DES-LOCKFILE-HASHING`, "Excluded dependencies"). */
11
+ export declare const runIdVariable = "NX_RUST_RUN_ID";
12
+ /**
13
+ * The variable that gives each `nx` command an id of its own, under which
14
+ * its lockfile tasks keep a private copy of the digests they write
15
+ * (`DES-LOCKFILE-HASHING`, "Post-check"). No target names it as an input,
16
+ * so it never reaches a cache key.
17
+ */
18
+ export declare const commandIdVariable = "NX_RUST_COMMAND_ID";
19
+ /** The folder in a workspace's digest folder that holds the private copies of each command. */
20
+ export declare const commandsFolderName = "commands";
21
+ /**
22
+ * The folder of a workspace's digests, relative to the repository root: one
23
+ * path segment under {@link digestRoot} per workspace, so that the folders
24
+ * of nested workspaces, such as one at the repository root and one below it,
25
+ * never contain each other. The segment is the workspace's root folder with
26
+ * every byte other than a letter, a digit, `.`, `_` and `-` written as `%`
27
+ * and two hexadecimal digits, `/` included, and `%2E` for the repository root
28
+ * itself. Glob patterns over it thus hold no character that a glob reads
29
+ * specially.
30
+ *
31
+ * @param workspaceRoot The workspace's root folder relative to the repository root, `.` for the root itself.
32
+ */
33
+ export declare function digestFolder(workspaceRoot: string): string;
34
+ /**
35
+ * One path segment for a workspace's root folder, relative to the
36
+ * repository root, as {@link digestFolder} names it: every byte other than
37
+ * a letter, a digit, `.`, `_` and `-` written as `%` and two hexadecimal
38
+ * digits, `/` included, and `%2E` for the repository root itself.
39
+ */
40
+ export declare function workspaceSegment(workspaceRoot: string): string;
41
+ /**
42
+ * The file that holds a member's digest in its workspace's folder, named
43
+ * after its package name, which is unique among a workspace's members.
44
+ */
45
+ export declare function digestFile(workspaceRoot: string, packageName: string): string;
46
+ /** The name of the file of a member's digest in its workspace's folder. */
47
+ export declare function digestFileName(packageName: string): string;
48
+ /**
49
+ * The folder of the copies of a workspace's digests that the lockfile task
50
+ * of one `nx` command writes for that command alone, relative to the
51
+ * repository root. No glob of a digest input reaches into it: `*.digest`
52
+ * stops at a folder.
53
+ *
54
+ * @param commandId The command's {@link commandIdVariable}.
55
+ */
56
+ export declare function commandDigestFolder(workspaceRoot: string, commandId: string): string;
57
+ /**
58
+ * The `dependsOn` entry on the lockfile task of a workspace: the target of
59
+ * that name of the project whose root is the workspace's root folder. Nx
60
+ * matches `directory:` patterns against project roots when it builds the
61
+ * task graph, so the entry holds when a `package.json` or `project.json`
62
+ * gives the workspace project another name (`DES-PROJECT-GRAPH`). A root
63
+ * that Nx's glob matching would read specially is escaped.
64
+ *
65
+ * @param workspaceRoot The workspace's root folder relative to the repository root, `.` for the root itself.
66
+ * @param target The lockfile task's name, as `targetNames` gives it.
67
+ */
68
+ export declare function lockfileDependency(workspaceRoot: string, target: string): TargetDependencyConfig;
69
+ /**
70
+ * The `directory:` pattern with which a `dependsOn` entry names the project
71
+ * whose root is `root`, relative to the repository root, whatever name a
72
+ * `package.json` or `project.json` gives it ({@link lockfileDependency}).
73
+ */
74
+ export declare function directoryPattern(root: string): string;
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commandsFolderName = exports.commandIdVariable = exports.runIdVariable = exports.digestRoot = void 0;
4
+ exports.digestFolder = digestFolder;
5
+ exports.workspaceSegment = workspaceSegment;
6
+ exports.digestFile = digestFile;
7
+ exports.digestFileName = digestFileName;
8
+ exports.commandDigestFolder = commandDigestFolder;
9
+ exports.lockfileDependency = lockfileDependency;
10
+ exports.directoryPattern = directoryPattern;
11
+ const node_path_1 = require("node:path");
12
+ /**
13
+ * The folder under the repository root that holds the lockfile tasks'
14
+ * digests, one folder per workspace (`DES-LOCKFILE-HASHING`, "Where the
15
+ * digests live"). Nx hashes a dependency's output only inside the
16
+ * repository, and leaves `.nx/workspace-data` out of its file map
17
+ * (`EVD-NX-24-LOCKFILE-TASK`).
18
+ */
19
+ exports.digestRoot = ".nx/workspace-data/nx-rust/lockfile";
20
+ /** The variable that marks a run that excludes task dependencies (`DES-LOCKFILE-HASHING`, "Excluded dependencies"). */
21
+ exports.runIdVariable = "NX_RUST_RUN_ID";
22
+ /**
23
+ * The variable that gives each `nx` command an id of its own, under which
24
+ * its lockfile tasks keep a private copy of the digests they write
25
+ * (`DES-LOCKFILE-HASHING`, "Post-check"). No target names it as an input,
26
+ * so it never reaches a cache key.
27
+ */
28
+ exports.commandIdVariable = "NX_RUST_COMMAND_ID";
29
+ /** The folder in a workspace's digest folder that holds the private copies of each command. */
30
+ exports.commandsFolderName = "commands";
31
+ /**
32
+ * The folder of a workspace's digests, relative to the repository root: one
33
+ * path segment under {@link digestRoot} per workspace, so that the folders
34
+ * of nested workspaces, such as one at the repository root and one below it,
35
+ * never contain each other. The segment is the workspace's root folder with
36
+ * every byte other than a letter, a digit, `.`, `_` and `-` written as `%`
37
+ * and two hexadecimal digits, `/` included, and `%2E` for the repository root
38
+ * itself. Glob patterns over it thus hold no character that a glob reads
39
+ * specially.
40
+ *
41
+ * @param workspaceRoot The workspace's root folder relative to the repository root, `.` for the root itself.
42
+ */
43
+ function digestFolder(workspaceRoot) {
44
+ return node_path_1.posix.join(exports.digestRoot, workspaceSegment(workspaceRoot));
45
+ }
46
+ /**
47
+ * One path segment for a workspace's root folder, relative to the
48
+ * repository root, as {@link digestFolder} names it: every byte other than
49
+ * a letter, a digit, `.`, `_` and `-` written as `%` and two hexadecimal
50
+ * digits, `/` included, and `%2E` for the repository root itself.
51
+ */
52
+ function workspaceSegment(workspaceRoot) {
53
+ return workspaceRoot === "."
54
+ ? "%2E"
55
+ : [...Buffer.from(workspaceRoot, "utf8")]
56
+ .map((byte) => /[A-Za-z0-9._-]/.test(String.fromCharCode(byte))
57
+ ? String.fromCharCode(byte)
58
+ : `%${byte.toString(16).toUpperCase().padStart(2, "0")}`)
59
+ .join("");
60
+ }
61
+ /**
62
+ * The file that holds a member's digest in its workspace's folder, named
63
+ * after its package name, which is unique among a workspace's members.
64
+ */
65
+ function digestFile(workspaceRoot, packageName) {
66
+ return node_path_1.posix.join(digestFolder(workspaceRoot), digestFileName(packageName));
67
+ }
68
+ /** The name of the file of a member's digest in its workspace's folder. */
69
+ function digestFileName(packageName) {
70
+ return `${packageName}.digest`;
71
+ }
72
+ /**
73
+ * The folder of the copies of a workspace's digests that the lockfile task
74
+ * of one `nx` command writes for that command alone, relative to the
75
+ * repository root. No glob of a digest input reaches into it: `*.digest`
76
+ * stops at a folder.
77
+ *
78
+ * @param commandId The command's {@link commandIdVariable}.
79
+ */
80
+ function commandDigestFolder(workspaceRoot, commandId) {
81
+ return node_path_1.posix.join(digestFolder(workspaceRoot), exports.commandsFolderName, commandId);
82
+ }
83
+ /**
84
+ * The `dependsOn` entry on the lockfile task of a workspace: the target of
85
+ * that name of the project whose root is the workspace's root folder. Nx
86
+ * matches `directory:` patterns against project roots when it builds the
87
+ * task graph, so the entry holds when a `package.json` or `project.json`
88
+ * gives the workspace project another name (`DES-PROJECT-GRAPH`). A root
89
+ * that Nx's glob matching would read specially is escaped.
90
+ *
91
+ * @param workspaceRoot The workspace's root folder relative to the repository root, `.` for the root itself.
92
+ * @param target The lockfile task's name, as `targetNames` gives it.
93
+ */
94
+ function lockfileDependency(workspaceRoot, target) {
95
+ return { projects: [directoryPattern(workspaceRoot)], target };
96
+ }
97
+ /**
98
+ * The `directory:` pattern with which a `dependsOn` entry names the project
99
+ * whose root is `root`, relative to the repository root, whatever name a
100
+ * `package.json` or `project.json` gives it ({@link lockfileDependency}).
101
+ */
102
+ function directoryPattern(root) {
103
+ return `directory:${root.replace(/[\\*?[\](){}!+@]/g, "\\$&")}`;
104
+ }
105
+ //# sourceMappingURL=lockfile-task.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lockfile-task.js","sourceRoot":"","sources":["../../../../nx-rust/src/graph/lockfile-task.ts"],"names":[],"mappings":";;;AAsCA,oCAEC;AAQD,4CAUC;AAMD,gCAEC;AAGD,wCAEC;AAUD,kDAEC;AAaD,gDAEC;AAOD,4CAEC;AA1GD,yCAAkC;AAElC;;;;;;GAMG;AACU,QAAA,UAAU,GAAG,qCAAqC,CAAC;AAEhE,uHAAuH;AAC1G,QAAA,aAAa,GAAG,gBAAgB,CAAC;AAE9C;;;;;GAKG;AACU,QAAA,iBAAiB,GAAG,oBAAoB,CAAC;AAEtD,+FAA+F;AAClF,QAAA,kBAAkB,GAAG,UAAU,CAAC;AAE7C;;;;;;;;;;;GAWG;AACH,SAAgB,YAAY,CAAC,aAAqB;IAChD,OAAO,iBAAK,CAAC,IAAI,CAAC,kBAAU,EAAE,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAAC;AACjE,CAAC;AAED;;;;;GAKG;AACH,SAAgB,gBAAgB,CAAC,aAAqB;IACpD,OAAO,aAAa,KAAK,GAAG;QAC1B,CAAC,CAAC,KAAK;QACP,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;aACpC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CACZ,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YAC9C,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC;YAC3B,CAAC,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAC3D;aACA,IAAI,CAAC,EAAE,CAAC,CAAC;AAClB,CAAC;AAED;;;GAGG;AACH,SAAgB,UAAU,CAAC,aAAqB,EAAE,WAAmB;IACnE,OAAO,iBAAK,CAAC,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC;AAC9E,CAAC;AAED,2EAA2E;AAC3E,SAAgB,cAAc,CAAC,WAAmB;IAChD,OAAO,GAAG,WAAW,SAAS,CAAC;AACjC,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,mBAAmB,CAAC,aAAqB,EAAE,SAAiB;IAC1E,OAAO,iBAAK,CAAC,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,0BAAkB,EAAE,SAAS,CAAC,CAAC;AAChF,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,kBAAkB,CAAC,aAAqB,EAAE,MAAc;IACtE,OAAO,EAAE,QAAQ,EAAE,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;AACjE,CAAC;AAED;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,IAAY;IAC3C,OAAO,aAAa,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,MAAM,CAAC,EAAE,CAAC;AAClE,CAAC"}
@@ -0,0 +1,41 @@
1
+ import type { CargoPackage } from "../cargo/metadata";
2
+ import type { CargoWorkspace } from "./discovery";
3
+ /** The name of a workspace project whose workspace lies at the root of the Nx workspace. */
4
+ export declare const rootWorkspaceProjectName = "cargo-workspace";
5
+ /** What a project of the plugin stands for, which decides its name. */
6
+ export type NamedProject =
7
+ /**
8
+ * A crate: a member of `workspace`, with the `name` of its
9
+ * `[package.metadata.nx]` and the `namePrefix` of its workspace, if set.
10
+ */
11
+ {
12
+ kind: "crate";
13
+ pkg: CargoPackage;
14
+ workspace: CargoWorkspace;
15
+ name?: string;
16
+ namePrefix?: string;
17
+ }
18
+ /**
19
+ * The workspace project of a workspace whose root manifest defines no
20
+ * crate, with the `name` of `[workspace.metadata.nx.project]`, if set.
21
+ */
22
+ | {
23
+ kind: "workspace";
24
+ workspace: CargoWorkspace;
25
+ name?: string;
26
+ };
27
+ /**
28
+ * The name the plugin gives a project. Where the project's folder also is a
29
+ * JS project, Nx replaces it with the name from `package.json` or
30
+ * `project.json`, which the plugin cannot prevent.
31
+ *
32
+ * A crate is named by its `name` setting, used as it is, or else after its
33
+ * package, with the workspace's `namePrefix` put in front as it is. A
34
+ * workspace project is named by its `name` setting, or else after the path
35
+ * of the workspace folder from the root of the Nx workspace, with each `/`
36
+ * replaced by `-` and nothing else changed, and
37
+ * {@link rootWorkspaceProjectName} at that root; no prefix applies to it.
38
+ *
39
+ * This is the one place for the name rule. Commands never use this name.
40
+ */
41
+ export declare function projectName(project: NamedProject): string;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.rootWorkspaceProjectName = void 0;
4
+ exports.projectName = projectName;
5
+ /** The name of a workspace project whose workspace lies at the root of the Nx workspace. */
6
+ exports.rootWorkspaceProjectName = "cargo-workspace";
7
+ /**
8
+ * The name the plugin gives a project. Where the project's folder also is a
9
+ * JS project, Nx replaces it with the name from `package.json` or
10
+ * `project.json`, which the plugin cannot prevent.
11
+ *
12
+ * A crate is named by its `name` setting, used as it is, or else after its
13
+ * package, with the workspace's `namePrefix` put in front as it is. A
14
+ * workspace project is named by its `name` setting, or else after the path
15
+ * of the workspace folder from the root of the Nx workspace, with each `/`
16
+ * replaced by `-` and nothing else changed, and
17
+ * {@link rootWorkspaceProjectName} at that root; no prefix applies to it.
18
+ *
19
+ * This is the one place for the name rule. Commands never use this name.
20
+ */
21
+ // @mara implements REQ-PROJECT-NAMES
22
+ // @mara implements DES-PROJECT-GRAPH
23
+ function projectName(project) {
24
+ var _a;
25
+ if (project.name !== undefined) {
26
+ return project.name;
27
+ }
28
+ if (project.kind === "crate") {
29
+ return `${(_a = project.namePrefix) !== null && _a !== void 0 ? _a : ""}${project.pkg.name}`;
30
+ }
31
+ const { root } = project.workspace;
32
+ return root === "." ? exports.rootWorkspaceProjectName : root.split("/").join("-");
33
+ }
34
+ //# sourceMappingURL=names.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"names.js","sourceRoot":"","sources":["../../../../nx-rust/src/graph/names.ts"],"names":[],"mappings":";;;AAyCA,kCASC;AA/CD,4FAA4F;AAC/E,QAAA,wBAAwB,GAAG,iBAAiB,CAAC;AAqB1D;;;;;;;;;;;;;GAaG;AACH,qCAAqC;AACrC,qCAAqC;AACrC,SAAgB,WAAW,CAAC,OAAqB;;IAC/C,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,OAAO,CAAC,IAAI,CAAC;IACtB,CAAC;IACD,IAAI,OAAO,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;QAC7B,OAAO,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IAC1D,CAAC;IACD,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC;IACnC,OAAO,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,gCAAwB,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7E,CAAC"}
@@ -0,0 +1,107 @@
1
+ import { type ArtifactSubject } from "./artifact-kinds";
2
+ import type { CargoWorkspace } from "./discovery";
3
+ /** The npm package of the napi CLI, whose exported functions post-process an addon (`DES-NAPI`). */
4
+ export declare const napiCliPackage = "@napi-rs/cli";
5
+ /** The file that `napi-build` writes the JS loader to, as `napi build --platform` does. */
6
+ export declare const napiLoaderFile = "index.js";
7
+ /** The file that `napi-build` writes the type definitions to, as `napi build --platform` does. */
8
+ export declare const napiTypesFile = "index.d.ts";
9
+ /** What graph creation knows of a crate that produces a Node addon. */
10
+ export interface NapiAddon {
11
+ /**
12
+ * The addon's file, `<binaryName>.<platform>-<arch>[-<abi>].node`, in the
13
+ * crate's folder; absent where rustc names no host triple, so that the
14
+ * plugin cannot name it.
15
+ */
16
+ addon?: string;
17
+ /** The host triple that the addon's file name comes from. */
18
+ host?: string;
19
+ }
20
+ /** What the inference reads of a project to tell whether it produces a Node addon. */
21
+ export type NapiSubject = ArtifactSubject;
22
+ /**
23
+ * Whether a crate produces a Node addon (`DES-ARTIFACT-STEPS`): its library
24
+ * target has the crate type `cdylib` and it depends directly, through a
25
+ * normal dependency, on the package `napi`, also one declared for one
26
+ * platform only. An `artifacts` list in the crate's `[package.metadata.nx]`
27
+ * replaces the inference.
28
+ */
29
+ export declare function producesNodeAddon(subject: NapiSubject): boolean;
30
+ /**
31
+ * The `binaryName` of the crate's napi settings, as `readNapiConfig` of
32
+ * `@napi-rs/cli` 3 reads it from the `package.json` in the crate's folder:
33
+ * `napi.binaryName`, else the deprecated `napi.name`, else `index`, also
34
+ * where the file is missing or no JSON (`DES-NAPI`).
35
+ */
36
+ export declare function napiBinaryName(crateFolder: string): string;
37
+ /**
38
+ * The file that the crate's napi settings name as `napi.dtsHeaderFile` in its
39
+ * `package.json`, which `generateTypeDef` of `@napi-rs/cli` 3 reads from the
40
+ * crate's folder for the header of `index.d.ts`: relative to the repository
41
+ * root where it lies inside it, absolute where it lies outside; `undefined`
42
+ * where the settings name none (`DES-NAPI`).
43
+ */
44
+ export declare function napiHeaderFile(crateFolder: string, repositoryRoot: string): string | undefined;
45
+ /**
46
+ * The `<platform>-<arch>[-<abi>]` part of an addon's file name for a triple,
47
+ * as `parseTriple` of `@napi-rs/cli` 3 gives it, such as `linux-x64-gnu` for
48
+ * `x86_64-unknown-linux-gnu` and `darwin-arm64` for `aarch64-apple-darwin`.
49
+ * The executor compares it with what the installed CLI gives and fails a
50
+ * task where they differ, so that Nx never stores the addon under a name
51
+ * that the outputs do not declare.
52
+ */
53
+ export declare function platformArchAbi(triple: string): string;
54
+ /**
55
+ * What graph creation knows of the crate's Node addon ({@link NapiAddon}):
56
+ * the addon's file name from the crate's napi settings and the host triple
57
+ * that `rustc -vV` names in the workspace root, where the compile runs.
58
+ *
59
+ * @param memo An object that lives as long as one graph computation, such as
60
+ * its cache context, under which the host triple of each workspace is asked
61
+ * once.
62
+ */
63
+ export declare function napiAddon(subject: NapiSubject & {
64
+ workspace: CargoWorkspace;
65
+ }, memo: object): NapiAddon;
66
+ /**
67
+ * The files that `napi-build` writes into the crate's folder, which are its
68
+ * outputs and no input of the crate's targets (`DES-ARTIFACT-STEPS`): the
69
+ * addon, the JS loader and the type definitions.
70
+ */
71
+ export declare function napiOutputFiles(addon: NapiAddon): string[];
72
+ /**
73
+ * The inputs that `napi-build` has beside those of `build` (`DES-INPUTS`,
74
+ * `REQ-ARTIFACT-CACHE`):
75
+ *
76
+ * - a `runtime` input whose command runs the plugin's own script in the
77
+ * repository root with the crate's folder as its argument, which prints the
78
+ * version of the `@napi-rs/cli` that Node resolves from that folder, the one
79
+ * that the task post-processes with. The command names Node, the script and
80
+ * the folder by paths that reach no key, as the artifact folder input of
81
+ * `build` does. Where the script cannot run, as for a plugin that Nx loads
82
+ * from its TypeScript source, it prints a line that says so and a random
83
+ * value, new at each evaluation, so that no stored result is restored
84
+ * ({@link scriptInputCommand});
85
+ * - `npm_new_version`, which the CLI's `napi build` writes into the loader in
86
+ * place of the version in `package.json`, as `napi-build` does;
87
+ * - the file that the crate's napi settings name as `dtsHeaderFile`
88
+ * ({@link napiHeaderFile}), where it lies inside the repository, as a
89
+ * fileset that also covers an ignored file. One outside the repository,
90
+ * which Nx cannot hash, makes the task fail before cargo instead.
91
+ *
92
+ * Every other setting that shapes the three files is in the crate's
93
+ * `package.json`, a crate file.
94
+ *
95
+ * The host triple, which names the addon's file, is in the key through the
96
+ * toolchain input, which prints what `rustc -Vv` writes, `host:` included.
97
+ *
98
+ * @param root The crate's folder, relative to the repository root.
99
+ */
100
+ export declare function napiInputs(root: string, header?: string, script?: string): ({
101
+ runtime: string;
102
+ } | {
103
+ env: string;
104
+ } | {
105
+ fileset: string;
106
+ includeIgnored: true;
107
+ })[];
@@ -0,0 +1,206 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.napiTypesFile = exports.napiLoaderFile = exports.napiCliPackage = void 0;
4
+ exports.producesNodeAddon = producesNodeAddon;
5
+ exports.napiBinaryName = napiBinaryName;
6
+ exports.napiHeaderFile = napiHeaderFile;
7
+ exports.platformArchAbi = platformArchAbi;
8
+ exports.napiAddon = napiAddon;
9
+ exports.napiOutputFiles = napiOutputFiles;
10
+ exports.napiInputs = napiInputs;
11
+ const node_fs_1 = require("node:fs");
12
+ const node_path_1 = require("node:path");
13
+ const host_triple_1 = require("../cargo/host-triple");
14
+ const artifact_kinds_1 = require("./artifact-kinds");
15
+ const script_input_1 = require("./script-input");
16
+ /** The npm package of the napi CLI, whose exported functions post-process an addon (`DES-NAPI`). */
17
+ exports.napiCliPackage = "@napi-rs/cli";
18
+ /** The file that `napi-build` writes the JS loader to, as `napi build --platform` does. */
19
+ exports.napiLoaderFile = "index.js";
20
+ /** The file that `napi-build` writes the type definitions to, as `napi build --platform` does. */
21
+ exports.napiTypesFile = "index.d.ts";
22
+ /**
23
+ * Whether a crate produces a Node addon (`DES-ARTIFACT-STEPS`): its library
24
+ * target has the crate type `cdylib` and it depends directly, through a
25
+ * normal dependency, on the package `napi`, also one declared for one
26
+ * platform only. An `artifacts` list in the crate's `[package.metadata.nx]`
27
+ * replaces the inference.
28
+ */
29
+ function producesNodeAddon(subject) {
30
+ return (0, artifact_kinds_1.producesArtifact)(subject, "napi");
31
+ }
32
+ /**
33
+ * The `binaryName` of the crate's napi settings, as `readNapiConfig` of
34
+ * `@napi-rs/cli` 3 reads it from the `package.json` in the crate's folder:
35
+ * `napi.binaryName`, else the deprecated `napi.name`, else `index`, also
36
+ * where the file is missing or no JSON (`DES-NAPI`).
37
+ */
38
+ function napiBinaryName(crateFolder) {
39
+ try {
40
+ const json = JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(crateFolder, "package.json"), "utf8"));
41
+ const napi = json === null || json === void 0 ? void 0 : json.napi;
42
+ if (typeof (napi === null || napi === void 0 ? void 0 : napi.name) === "string" && napi.name !== "") {
43
+ return napi.name;
44
+ }
45
+ if (typeof (napi === null || napi === void 0 ? void 0 : napi.binaryName) === "string" && napi.binaryName !== "") {
46
+ return napi.binaryName;
47
+ }
48
+ }
49
+ catch (_a) {
50
+ // The task fails with a message where it cannot read the settings.
51
+ }
52
+ return "index";
53
+ }
54
+ /**
55
+ * The file that the crate's napi settings name as `napi.dtsHeaderFile` in its
56
+ * `package.json`, which `generateTypeDef` of `@napi-rs/cli` 3 reads from the
57
+ * crate's folder for the header of `index.d.ts`: relative to the repository
58
+ * root where it lies inside it, absolute where it lies outside; `undefined`
59
+ * where the settings name none (`DES-NAPI`).
60
+ */
61
+ function napiHeaderFile(crateFolder, repositoryRoot) {
62
+ var _a, _b;
63
+ let file;
64
+ try {
65
+ file = (_b = (_a = JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(crateFolder, "package.json"), "utf8"))) === null || _a === void 0 ? void 0 : _a.napi) === null || _b === void 0 ? void 0 : _b.dtsHeaderFile;
66
+ }
67
+ catch (_c) {
68
+ return undefined;
69
+ }
70
+ if (typeof file !== "string" || file === "") {
71
+ return undefined;
72
+ }
73
+ const path = (0, node_path_1.resolve)(crateFolder, file);
74
+ const inside = (0, node_path_1.relative)(repositoryRoot, path);
75
+ return inside === "" || inside === ".." || inside.startsWith(`..${node_path_1.sep}`) || (0, node_path_1.isAbsolute)(inside)
76
+ ? path
77
+ : inside.split(node_path_1.sep).join("/");
78
+ }
79
+ /** The CPU names of `parseTriple` in `@napi-rs/cli` 3, by the first part of a triple. */
80
+ const nodeArchitectures = {
81
+ x86_64: "x64",
82
+ aarch64: "arm64",
83
+ i686: "ia32",
84
+ armv7: "arm",
85
+ loongarch64: "loong64",
86
+ riscv64gc: "riscv64",
87
+ powerpc64le: "ppc64",
88
+ powerpc64: "ppc64",
89
+ };
90
+ /** The platform names of `parseTriple` in `@napi-rs/cli` 3, by a triple's system. */
91
+ const nodePlatforms = {
92
+ linux: "linux",
93
+ freebsd: "freebsd",
94
+ darwin: "darwin",
95
+ windows: "win32",
96
+ ohos: "openharmony",
97
+ };
98
+ /**
99
+ * The `<platform>-<arch>[-<abi>]` part of an addon's file name for a triple,
100
+ * as `parseTriple` of `@napi-rs/cli` 3 gives it, such as `linux-x64-gnu` for
101
+ * `x86_64-unknown-linux-gnu` and `darwin-arm64` for `aarch64-apple-darwin`.
102
+ * The executor compares it with what the installed CLI gives and fails a
103
+ * task where they differ, so that Nx never stores the addon under a name
104
+ * that the outputs do not declare.
105
+ */
106
+ function platformArchAbi(triple) {
107
+ var _a, _b;
108
+ const parts = (triple.endsWith("eabi") ? `${triple.slice(0, -4)}-eabi` : triple).split("-");
109
+ let cpu;
110
+ let sys;
111
+ let abi;
112
+ if (parts.length === 2) {
113
+ [cpu, sys] = parts;
114
+ }
115
+ else {
116
+ [cpu, , sys, abi] = parts;
117
+ }
118
+ if (abi === "android" || abi === "ohos") {
119
+ sys = abi;
120
+ abi = undefined;
121
+ }
122
+ const platform = (_a = nodePlatforms[sys]) !== null && _a !== void 0 ? _a : sys;
123
+ const arch = (_b = nodeArchitectures[cpu]) !== null && _b !== void 0 ? _b : cpu;
124
+ return abi === undefined || abi === "" ? `${platform}-${arch}` : `${platform}-${arch}-${abi}`;
125
+ }
126
+ /** The host triple of each workspace root, asked once per graph computation. */
127
+ const hosts = new WeakMap();
128
+ /**
129
+ * What graph creation knows of the crate's Node addon ({@link NapiAddon}):
130
+ * the addon's file name from the crate's napi settings and the host triple
131
+ * that `rustc -vV` names in the workspace root, where the compile runs.
132
+ *
133
+ * @param memo An object that lives as long as one graph computation, such as
134
+ * its cache context, under which the host triple of each workspace is asked
135
+ * once.
136
+ */
137
+ function napiAddon(subject, memo) {
138
+ const root = subject.workspace.report.workspace_root;
139
+ let known = hosts.get(memo);
140
+ if (known === undefined) {
141
+ known = new Map();
142
+ hosts.set(memo, known);
143
+ }
144
+ if (!known.has(root)) {
145
+ known.set(root, (0, host_triple_1.hostTriple)(root, process.env));
146
+ }
147
+ const host = known.get(root);
148
+ if (host === undefined || subject.pkg === undefined) {
149
+ return {};
150
+ }
151
+ const binaryName = napiBinaryName((0, node_path_1.dirname)(subject.pkg.manifest_path));
152
+ return { addon: `${binaryName}.${platformArchAbi(host)}.node`, host };
153
+ }
154
+ /**
155
+ * The files that `napi-build` writes into the crate's folder, which are its
156
+ * outputs and no input of the crate's targets (`DES-ARTIFACT-STEPS`): the
157
+ * addon, the JS loader and the type definitions.
158
+ */
159
+ function napiOutputFiles(addon) {
160
+ return [...(addon.addon === undefined ? [] : [addon.addon]), exports.napiLoaderFile, exports.napiTypesFile];
161
+ }
162
+ /**
163
+ * The plugin's script that prints the napi CLI of a crate
164
+ * (`print-napi-cli.ts`), compiled beside this module's folder.
165
+ */
166
+ const napiCliScript = (0, node_path_1.join)(__dirname, "..", "tools", "print-napi-cli.js");
167
+ /**
168
+ * The inputs that `napi-build` has beside those of `build` (`DES-INPUTS`,
169
+ * `REQ-ARTIFACT-CACHE`):
170
+ *
171
+ * - a `runtime` input whose command runs the plugin's own script in the
172
+ * repository root with the crate's folder as its argument, which prints the
173
+ * version of the `@napi-rs/cli` that Node resolves from that folder, the one
174
+ * that the task post-processes with. The command names Node, the script and
175
+ * the folder by paths that reach no key, as the artifact folder input of
176
+ * `build` does. Where the script cannot run, as for a plugin that Nx loads
177
+ * from its TypeScript source, it prints a line that says so and a random
178
+ * value, new at each evaluation, so that no stored result is restored
179
+ * ({@link scriptInputCommand});
180
+ * - `npm_new_version`, which the CLI's `napi build` writes into the loader in
181
+ * place of the version in `package.json`, as `napi-build` does;
182
+ * - the file that the crate's napi settings name as `dtsHeaderFile`
183
+ * ({@link napiHeaderFile}), where it lies inside the repository, as a
184
+ * fileset that also covers an ignored file. One outside the repository,
185
+ * which Nx cannot hash, makes the task fail before cargo instead.
186
+ *
187
+ * Every other setting that shapes the three files is in the crate's
188
+ * `package.json`, a crate file.
189
+ *
190
+ * The host triple, which names the addon's file, is in the key through the
191
+ * toolchain input, which prints what `rustc -Vv` writes, `host:` included.
192
+ *
193
+ * @param root The crate's folder, relative to the repository root.
194
+ */
195
+ // @mara implements DES-INPUTS
196
+ // @mara implements REQ-ARTIFACT-CACHE
197
+ function napiInputs(root, header, script = napiCliScript) {
198
+ return [
199
+ { env: "npm_new_version" },
200
+ { runtime: (0, script_input_1.scriptInputCommand)(script, root) },
201
+ ...(header === undefined || (0, node_path_1.isAbsolute)(header)
202
+ ? []
203
+ : [{ fileset: `{workspaceRoot}/${header}`, includeIgnored: true }]),
204
+ ];
205
+ }
206
+ //# sourceMappingURL=napi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"napi.js","sourceRoot":"","sources":["../../../../nx-rust/src/graph/napi.ts"],"names":[],"mappings":";;;AAsCA,8CAEC;AAQD,wCAgBC;AASD,wCAmBC;AA+BD,0CAiBC;AAcD,8BAmBC;AAOD,0CAEC;AAsCD,gCAYC;AAxOD,qCAAuC;AACvC,yCAA8E;AAC9E,sDAAkD;AAClD,qDAA0E;AAE1E,iDAAoD;AAEpD,oGAAoG;AACvF,QAAA,cAAc,GAAG,cAAc,CAAC;AAE7C,2FAA2F;AAC9E,QAAA,cAAc,GAAG,UAAU,CAAC;AAEzC,kGAAkG;AACrF,QAAA,aAAa,GAAG,YAAY,CAAC;AAiB1C;;;;;;GAMG;AACH,SAAgB,iBAAiB,CAAC,OAAoB;IACpD,OAAO,IAAA,iCAAgB,EAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC3C,CAAC;AAED;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,WAAmB;IAChD,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,sBAAY,EAAC,IAAA,gBAAI,EAAC,WAAW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