@convesoft/nx-rust 0.0.0 → 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 +47 -1
  4. package/executors.json +35 -0
  5. package/generators.json +19 -0
  6. package/package.json +17 -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":"configured-runner.js","sourceRoot":"","sources":["../../../../nx-rust/src/cargo/configured-runner.ts"],"names":[],"mappings":";;AAkBA,wCAEC;AAyBD,4CAmBC;AAhED,qCAAmD;AACnD,yCAA6C;AAC7C,yCAAkC;AAClC,iDAA6C;AAU7C;;;;GAIG;AACH,SAAgB,cAAc,CAAC,MAAc;IAC3C,OAAO,gBAAgB,MAAM,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,SAAS,CAAC;AAC7E,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,gCAAgC;AAChC,SAAgB,gBAAgB,CAC9B,aAAqB,EACrB,GAAiD,EACjD,IAAY;IAEZ,MAAM,QAAQ,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IACtC,IAAI,GAAG,CAAC,QAAQ,CAAC,KAAK,SAAS,EAAE,CAAC;QAChC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IAChD,CAAC;IACD,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,KAAK,MAAM,IAAI,IAAI,IAAA,0BAAW,EAAC,aAAa,EAAE,GAAG,CAAC,EAAE,CAAC;QACnD,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE,CAAC;YACxB,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YAC3C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxB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CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAChF,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,IAAI,GAAG,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC;QAC3E,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC7B,MAAM,KAAK,GAAG,UAAU,CAAC,IAAA,mBAAO,EAAC,IAAA,mBAAO,EAAC,IAAI,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YACnE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxB,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,gEAAgE;AAChE,SAAS,SAAS,CAAC,GAAW;IAC5B,OAAO,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC;AACzD,CAAC;AAED,SAAS,OAAO,CAAC,KAAc;IAC7B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACzE,CAAC,CAAE,KAAiC;QACpC,CAAC,CAAC,EAAE,CAAC;AACT,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * The programs that `build.rustc` and `build.rustdoc` in Cargo's
3
+ * configuration name for a command started in a workspace root, which cargo
4
+ * runs in place of `rustc` and `rustdoc` unless `RUSTC`, `CARGO_BUILD_RUSTC`,
5
+ * `RUSTDOC` or `CARGO_BUILD_RUSTDOC` names another (`DES-INPUTS`,
6
+ * `EVD-CARGO-COMPILER-SELECTION`).
7
+ *
8
+ * Each list names every program that a setting makes cargo run, once: none
9
+ * where no file sets the key, and otherwise the one that the files give.
10
+ * Where a file that `include` adds sets it, Cargo 1.91, which ignores
11
+ * `include`, may take another value than later versions, and the list then
12
+ * also names that one; where 1.91 finds none, it runs `rustc` or `rustdoc`
13
+ * as without a setting. A program is an absolute path, or a bare name that
14
+ * cargo looks up on `PATH`.
15
+ */
16
+ export interface ConfiguredTools {
17
+ rustc: string[];
18
+ rustdoc: string[];
19
+ }
20
+ /** The tools of a workspace whose configuration names neither. */
21
+ export declare const noConfiguredTools: ConfiguredTools;
22
+ /**
23
+ * The programs that `build.rustc` and `build.rustdoc` name in the
24
+ * configuration files that cargo reads in `workspaceRoot`, read with the
25
+ * precedence of {@link buildSettings} and resolved as cargo resolves them: a
26
+ * value with a `/` against the folder above the one that holds the file,
27
+ * which for `.cargo/config.toml` is the folder that holds `.cargo` and for
28
+ * the Cargo home's `config.toml` the Cargo home's parent; a value without one
29
+ * stays a bare name. The value of the file with the highest precedence
30
+ * counts, and cargo fails on one that is no string, which names nothing here.
31
+ *
32
+ * @param env Where `CARGO_HOME` is read from; the variables that name a
33
+ * compiler are read by the toolchain input with the task's environment.
34
+ */
35
+ export declare function configuredTools(workspaceRoot: string, env: NodeJS.ProcessEnv): ConfiguredTools;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.noConfiguredTools = void 0;
4
+ exports.configuredTools = configuredTools;
5
+ const node_path_1 = require("node:path");
6
+ const build_settings_1 = require("./build-settings");
7
+ /** The tools of a workspace whose configuration names neither. */
8
+ exports.noConfiguredTools = { rustc: [], rustdoc: [] };
9
+ /**
10
+ * The programs that `build.rustc` and `build.rustdoc` name in the
11
+ * configuration files that cargo reads in `workspaceRoot`, read with the
12
+ * precedence of {@link buildSettings} and resolved as cargo resolves them: a
13
+ * value with a `/` against the folder above the one that holds the file,
14
+ * which for `.cargo/config.toml` is the folder that holds `.cargo` and for
15
+ * the Cargo home's `config.toml` the Cargo home's parent; a value without one
16
+ * stays a bare name. The value of the file with the highest precedence
17
+ * counts, and cargo fails on one that is no string, which names nothing here.
18
+ *
19
+ * @param env Where `CARGO_HOME` is read from; the variables that name a
20
+ * compiler are read by the toolchain input with the task's environment.
21
+ */
22
+ // @mara implements DES-INPUTS
23
+ function configuredTools(workspaceRoot, env) {
24
+ return {
25
+ rustc: configuredPrograms((0, build_settings_1.buildSettings)(workspaceRoot, env, "rustc")),
26
+ rustdoc: configuredPrograms((0, build_settings_1.buildSettings)(workspaceRoot, env, "rustdoc")),
27
+ };
28
+ }
29
+ // The program that the settings name with includes applied, and the one
30
+ // without them, as Cargo 1.91 reads them, each once.
31
+ function configuredPrograms(settings) {
32
+ const programs = [
33
+ program(settings[0]),
34
+ program(settings.find((setting) => !setting.included)),
35
+ ].filter((found) => found !== undefined);
36
+ return [...new Set(programs)];
37
+ }
38
+ function program(setting) {
39
+ if (setting === undefined || typeof setting.value !== "string") {
40
+ return undefined;
41
+ }
42
+ return setting.value.includes("/")
43
+ ? (0, node_path_1.resolve)((0, node_path_1.dirname)((0, node_path_1.dirname)(setting.file)), setting.value)
44
+ : setting.value;
45
+ }
46
+ //# sourceMappingURL=configured-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configured-tools.js","sourceRoot":"","sources":["../../../../nx-rust/src/cargo/configured-tools.ts"],"names":[],"mappings":";;;AAwCA,0CAKC;AA7CD,yCAA6C;AAC7C,qDAA+D;AAsB/D,kEAAkE;AACrD,QAAA,iBAAiB,GAAoB,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAE7E;;;;;;;;;;;;GAYG;AACH,8BAA8B;AAC9B,SAAgB,eAAe,CAAC,aAAqB,EAAE,GAAsB;IAC3E,OAAO;QACL,KAAK,EAAE,kBAAkB,CAAC,IAAA,8BAAa,EAAC,aAAa,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;QACrE,OAAO,EAAE,kBAAkB,CAAC,IAAA,8BAAa,EAAC,aAAa,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC;KAC1E,CAAC;AACJ,CAAC;AAED,wEAAwE;AACxE,qDAAqD;AACrD,SAAS,kBAAkB,CAAC,QAAiC;IAC3D,MAAM,QAAQ,GAAG;QACf,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QACpB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;KACvD,CAAC,MAAM,CAAC,CAAC,KAAK,EAAmB,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC;IAC1D,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,OAAO,CAAC,OAAiC;IAChD,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,OAAO,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC/D,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;QAChC,CAAC,CAAC,IAAA,mBAAO,EAAC,IAAA,mBAAO,EAAC,IAAA,mBAAO,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC;QACxD,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;AACpB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The folder that `build.dep-info-basedir` gives a cargo command started in
3
+ * `folder` with the environment `env`, as an absolute path; `undefined`
4
+ * where nothing sets it or a file that would decide cannot be read.
5
+ *
6
+ * Cargo takes the setting from `CARGO_BUILD_DEP_INFO_BASEDIR`, relative to
7
+ * the folder it starts in, or else from the first configuration file that
8
+ * sets it to a string, in the order of {@link buildSettingsAndUnreadable}:
9
+ * that of `folder` and of each folder above it, then that of the Cargo
10
+ * home, reading `.cargo/config` where it exists and `.cargo/config.toml`
11
+ * otherwise. A file's own value comes before those of the files it
12
+ * includes, and a later include before an earlier one. A path in a file is
13
+ * relative to the folder above the one that holds the file. A file that
14
+ * exists but cannot be read, met before the deciding one, leaves the folder
15
+ * unknown. The plugin's `build` passes cargo no `--config`, so nothing else
16
+ * sets it.
17
+ */
18
+ export declare function configuredDepInfoBasedir(folder: string, env: Readonly<Record<string, string | undefined>>): string | undefined;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.configuredDepInfoBasedir = configuredDepInfoBasedir;
4
+ const node_path_1 = require("node:path");
5
+ const build_settings_1 = require("./build-settings");
6
+ /**
7
+ * The folder that `build.dep-info-basedir` gives a cargo command started in
8
+ * `folder` with the environment `env`, as an absolute path; `undefined`
9
+ * where nothing sets it or a file that would decide cannot be read.
10
+ *
11
+ * Cargo takes the setting from `CARGO_BUILD_DEP_INFO_BASEDIR`, relative to
12
+ * the folder it starts in, or else from the first configuration file that
13
+ * sets it to a string, in the order of {@link buildSettingsAndUnreadable}:
14
+ * that of `folder` and of each folder above it, then that of the Cargo
15
+ * home, reading `.cargo/config` where it exists and `.cargo/config.toml`
16
+ * otherwise. A file's own value comes before those of the files it
17
+ * includes, and a later include before an earlier one. A path in a file is
18
+ * relative to the folder above the one that holds the file. A file that
19
+ * exists but cannot be read, met before the deciding one, leaves the folder
20
+ * unknown. The plugin's `build` passes cargo no `--config`, so nothing else
21
+ * sets it.
22
+ */
23
+ function configuredDepInfoBasedir(folder, env) {
24
+ const fromEnvironment = env.CARGO_BUILD_DEP_INFO_BASEDIR;
25
+ if (fromEnvironment !== undefined && fromEnvironment !== "") {
26
+ return (0, node_path_1.resolve)(folder, fromEnvironment);
27
+ }
28
+ for (const entry of (0, build_settings_1.buildSettingsAndUnreadable)(folder, env, "dep-info-basedir")) {
29
+ if ("unreadable" in entry) {
30
+ return undefined;
31
+ }
32
+ if (typeof entry.value === "string") {
33
+ return (0, node_path_1.resolve)((0, node_path_1.dirname)((0, node_path_1.dirname)(entry.file)), entry.value);
34
+ }
35
+ }
36
+ return undefined;
37
+ }
38
+ //# sourceMappingURL=dep-info-basedir.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dep-info-basedir.js","sourceRoot":"","sources":["../../../../nx-rust/src/cargo/dep-info-basedir.ts"],"names":[],"mappings":";;AAoBA,4DAiBC;AArCD,yCAA6C;AAC7C,qDAA8D;AAE9D;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,wBAAwB,CACtC,MAAc,EACd,GAAiD;IAEjD,MAAM,eAAe,GAAG,GAAG,CAAC,4BAA4B,CAAC;IACzD,IAAI,eAAe,KAAK,SAAS,IAAI,eAAe,KAAK,EAAE,EAAE,CAAC;QAC5D,OAAO,IAAA,mBAAO,EAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC1C,CAAC;IACD,KAAK,MAAM,KAAK,IAAI,IAAA,2CAA0B,EAAC,MAAM,EAAE,GAAG,EAAE,kBAAkB,CAAC,EAAE,CAAC;QAChF,IAAI,YAAY,IAAI,KAAK,EAAE,CAAC;YAC1B,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YACpC,OAAO,IAAA,mBAAO,EAAC,IAAA,mBAAO,EAAC,IAAA,mBAAO,EAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QAC5D,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -0,0 +1,40 @@
1
+ /** Cargo's two directories for commands in one workspace root, as cargo reports them. */
2
+ export interface CargoDirectories {
3
+ /** The artifact directory (`target_directory`). */
4
+ artifact: string;
5
+ /** The build directory (`build_directory`), the artifact directory where cargo reports none. */
6
+ build: string;
7
+ }
8
+ /**
9
+ * The environment variables that move Cargo's artifact directory without a
10
+ * change to a file inside the repository: the directory itself, and the
11
+ * Cargo home, whose `config.toml` can set `build.target-dir`.
12
+ */
13
+ export declare const directoryVariableNames: readonly ["CARGO_TARGET_DIR", "CARGO_BUILD_TARGET_DIR", "CARGO_HOME"];
14
+ /** The {@link directoryVariableNames} that `env` sets, with their values. */
15
+ export declare function directoryVariables(env: NodeJS.ProcessEnv): Record<string, string>;
16
+ /** Cargo could not report its directories. */
17
+ export declare class DirectoryReportError extends Error {
18
+ /** What cargo wrote to standard error. */
19
+ readonly stderr: string;
20
+ constructor(message: string,
21
+ /** What cargo wrote to standard error. */
22
+ stderr: string);
23
+ }
24
+ /**
25
+ * The directories that cargo uses for a command started in `workspaceRoot`
26
+ * with `env`, from its `cargo metadata --no-deps` report, as graph creation
27
+ * reads them from its own report (`DES-METADATA-REPORT`). Cargo resolves
28
+ * every source of them itself: `CARGO_TARGET_DIR`, `CARGO_BUILD_TARGET_DIR`,
29
+ * `CARGO_BUILD_BUILD_DIR`, the configuration files of the folder, of the
30
+ * folders above it and of the Cargo home that `CARGO_HOME` names, the files
31
+ * they include as the cargo version reads them, and the templates of
32
+ * `build.build-dir` (`EVD-CARGO-DIRECTORIES`). With `--no-deps` cargo needs
33
+ * no network and leaves `Cargo.lock` alone.
34
+ *
35
+ * @param env The whole environment of the call, also where rustup may
36
+ * install a toolchain for it.
37
+ * @throws {DirectoryReportError} When cargo cannot be started, fails or
38
+ * prints no report.
39
+ */
40
+ export declare function reportedDirectories(workspaceRoot: string, env: NodeJS.ProcessEnv): CargoDirectories;
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DirectoryReportError = exports.directoryVariableNames = void 0;
4
+ exports.directoryVariables = directoryVariables;
5
+ exports.reportedDirectories = reportedDirectories;
6
+ const node_child_process_1 = require("node:child_process");
7
+ const node_path_1 = require("node:path");
8
+ const metadata_1 = require("./metadata");
9
+ /**
10
+ * The environment variables that move Cargo's artifact directory without a
11
+ * change to a file inside the repository: the directory itself, and the
12
+ * Cargo home, whose `config.toml` can set `build.target-dir`.
13
+ */
14
+ exports.directoryVariableNames = [
15
+ "CARGO_TARGET_DIR",
16
+ "CARGO_BUILD_TARGET_DIR",
17
+ "CARGO_HOME",
18
+ ];
19
+ /** The {@link directoryVariableNames} that `env` sets, with their values. */
20
+ function directoryVariables(env) {
21
+ const set = {};
22
+ for (const name of exports.directoryVariableNames) {
23
+ const value = env[name];
24
+ if (value !== undefined) {
25
+ set[name] = value;
26
+ }
27
+ }
28
+ return set;
29
+ }
30
+ /** Cargo could not report its directories. */
31
+ class DirectoryReportError extends Error {
32
+ constructor(message,
33
+ /** What cargo wrote to standard error. */
34
+ stderr) {
35
+ super(message);
36
+ this.stderr = stderr;
37
+ this.name = "DirectoryReportError";
38
+ }
39
+ }
40
+ exports.DirectoryReportError = DirectoryReportError;
41
+ /**
42
+ * The directories that cargo uses for a command started in `workspaceRoot`
43
+ * with `env`, from its `cargo metadata --no-deps` report, as graph creation
44
+ * reads them from its own report (`DES-METADATA-REPORT`). Cargo resolves
45
+ * every source of them itself: `CARGO_TARGET_DIR`, `CARGO_BUILD_TARGET_DIR`,
46
+ * `CARGO_BUILD_BUILD_DIR`, the configuration files of the folder, of the
47
+ * folders above it and of the Cargo home that `CARGO_HOME` names, the files
48
+ * they include as the cargo version reads them, and the templates of
49
+ * `build.build-dir` (`EVD-CARGO-DIRECTORIES`). With `--no-deps` cargo needs
50
+ * no network and leaves `Cargo.lock` alone.
51
+ *
52
+ * @param env The whole environment of the call, also where rustup may
53
+ * install a toolchain for it.
54
+ * @throws {DirectoryReportError} When cargo cannot be started, fails or
55
+ * prints no report.
56
+ */
57
+ // @mara implements DES-OUTPUTS
58
+ function reportedDirectories(workspaceRoot, env) {
59
+ const run = (0, node_child_process_1.spawnSync)("cargo", (0, metadata_1.metadataArguments)((0, node_path_1.join)(workspaceRoot, "Cargo.toml")), {
60
+ cwd: workspaceRoot,
61
+ env,
62
+ encoding: "utf8",
63
+ // The report lists every member with its targets and dependencies.
64
+ maxBuffer: 1024 * 1024 * 1024,
65
+ stdio: ["ignore", "pipe", "pipe"],
66
+ });
67
+ if (run.error !== undefined) {
68
+ const code = run.error.code;
69
+ throw new DirectoryReportError(code === "ENOENT" ? `cargo was not found on PATH (${run.error.message})` : run.error.message, "");
70
+ }
71
+ if (run.status !== 0) {
72
+ throw new DirectoryReportError(run.signal ? `cargo was stopped by ${run.signal}` : `cargo exited with status ${run.status}`, run.stderr);
73
+ }
74
+ let report;
75
+ try {
76
+ report = JSON.parse(run.stdout);
77
+ }
78
+ catch (_a) {
79
+ report = {};
80
+ }
81
+ if (typeof (report === null || report === void 0 ? void 0 : report.target_directory) !== "string") {
82
+ throw new DirectoryReportError("cargo printed no report with a target_directory", run.stderr);
83
+ }
84
+ return {
85
+ artifact: report.target_directory,
86
+ build: typeof report.build_directory === "string" ? report.build_directory : report.target_directory,
87
+ };
88
+ }
89
+ //# sourceMappingURL=directories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"directories.js","sourceRoot":"","sources":["../../../../nx-rust/src/cargo/directories.ts"],"names":[],"mappings":";;;AAwBA,gDASC;AA+BD,kDAuCC;AAvGD,2DAA+C;AAC/C,yCAAiC;AACjC,yCAAmE;AAUnE;;;;GAIG;AACU,QAAA,sBAAsB,GAAG;IACpC,kBAAkB;IAClB,wBAAwB;IACxB,YAAY;CACJ,CAAC;AAEX,6EAA6E;AAC7E,SAAgB,kBAAkB,CAAC,GAAsB;IACvD,MAAM,GAAG,GAA2B,EAAE,CAAC;IACvC,KAAK,MAAM,IAAI,IAAI,8BAAsB,EAAE,CAAC;QAC1C,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC;QACxB,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,GAAG,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;QACpB,CAAC;IACH,CAAC;IACD,OAAO,GAAG,C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IACJ,CAAC;IACD,IAAI,MAA8B,CAAC;IACnC,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAA2B,CAAC;IAC5D,CAAC;IAAC,WAAM,CAAC;QACP,MAAM,GAAG,EAAE,CAAC;IACd,CAAC;IACD,IAAI,OAAO,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,gBAAgB,CAAA,KAAK,QAAQ,EAAE,CAAC;QACjD,MAAM,IAAI,oBAAoB,CAAC,iDAAiD,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAChG,CAAC;IACD,OAAO;QACL,QAAQ,EAAE,MAAM,CAAC,gBAAgB;QACjC,KAAK,EACH,OAAO,MAAM,CAAC,eAAe,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,gBAAgB;KAChG,CAAC;AACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The host's triple, as `rustc -vV` names it after `host:` in `cwd`, the
3
+ * folder where a task's cargo starts, with the task's environment, so that
4
+ * the toolchain that the folder selects answers; `undefined` where rustc
5
+ * fails or names none. rustup installs no toolchain for it.
6
+ */
7
+ export declare function hostTriple(cwd: string, env: NodeJS.ProcessEnv): string | undefined;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.hostTriple = hostTriple;
4
+ const node_child_process_1 = require("node:child_process");
5
+ /**
6
+ * The host's triple, as `rustc -vV` names it after `host:` in `cwd`, the
7
+ * folder where a task's cargo starts, with the task's environment, so that
8
+ * the toolchain that the folder selects answers; `undefined` where rustc
9
+ * fails or names none. rustup installs no toolchain for it.
10
+ */
11
+ function hostTriple(cwd, env) {
12
+ var _a, _b;
13
+ const run = (0, node_child_process_1.spawnSync)("rustc", ["-vV"], {
14
+ cwd,
15
+ env: Object.assign(Object.assign({}, env), { RUSTUP_AUTO_INSTALL: "0" }),
16
+ encoding: "utf8",
17
+ stdio: ["ignore", "pipe", "ignore"],
18
+ });
19
+ return run.status === 0 ? (_b = /^host: (\S+)$/m.exec((_a = run.stdout) !== null && _a !== void 0 ? _a : "")) === null || _b === void 0 ? void 0 : _b[1] : undefined;
20
+ }
21
+ //# sourceMappingURL=host-triple.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-triple.js","sourceRoot":"","sources":["../../../../nx-rust/src/cargo/host-triple.ts"],"names":[],"mappings":";;AAQA,gCAQC;AAhBD,2DAA+C;AAE/C;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,GAAW,EAAE,GAAsB;;IAC5D,MAAM,GAAG,GAAG,IAAA,8BAAS,EAAC,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE;QACtC,GAAG;QACH,GAAG,kCAAO,GAAG,KAAE,mBAAmB,EAAE,GAAG,GAAE;QACzC,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC;KACpC,CAAC,CAAC;IACH,OAAO,GAAG,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,MAAA,gBAAgB,CAAC,IAAI,CAAC,MAAA,GAAG,CAAC,MAAM,mCAAI,EAAE,CAAC,0CAAG,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACrF,CAAC"}
@@ -0,0 +1,63 @@
1
+ /** A package entry of `Cargo.lock`, a `[[package]]` table, as far as the digest reads it. */
2
+ export interface LockfileEntry {
3
+ name: string;
4
+ version: string;
5
+ /** Where the package comes from; absent for a path package, members included. */
6
+ source?: string;
7
+ /** The checksum of a registry package. */
8
+ checksum?: string;
9
+ /** The entry that `[replace]` puts in this one's place, as the lockfile names it. */
10
+ replace?: string;
11
+ /** The entries this one depends on, as the lockfile writes them: `name`, `name version` or `name version (source)`. */
12
+ dependencies: string[];
13
+ }
14
+ /** A package by the name and version that its manifest gives it. */
15
+ export interface PackageVersion {
16
+ name: string;
17
+ version: string;
18
+ }
19
+ /** The package entries of a `Cargo.lock`, without `[[patch.unused]]`. */
20
+ export interface Lockfile {
21
+ entries: LockfileEntry[];
22
+ }
23
+ /** A `Cargo.lock` that the digest cannot read, or a package that it does not lock. */
24
+ export declare class LockfileError extends Error {
25
+ constructor(message: string);
26
+ }
27
+ /**
28
+ * Reads the package entries of a `Cargo.lock`: the `[[package]]` tables,
29
+ * not the `[[patch.unused]]` ones. A lockfile of the first format keeps the
30
+ * checksums in its `[metadata]` table, under keys such as
31
+ * `checksum ryu 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)`;
32
+ * they are read as the entries' own.
33
+ *
34
+ * @throws {LockfileError} When the text is no TOML or an entry lacks its name or version.
35
+ */
36
+ export declare function parseLockfile(text: string): Lockfile;
37
+ /**
38
+ * The digest of a member's external dependencies (`DES-LOCKFILE-HASHING`,
39
+ * "Digest"): a SHA-256, in hexadecimal, over the entries that the member's
40
+ * entry reaches in the lockfile's graph.
41
+ *
42
+ * The walk starts at the entry without a source that has the member's name
43
+ * and version, takes every dependency that an entry lists, passes through
44
+ * path packages and follows `replace = …` to the entry it names. Each
45
+ * reachable entry gives one line: its name, version, source, checksum and
46
+ * `replace` value, then its dependency strings as the lockfile writes them,
47
+ * in byte order, all joined by tab characters, with an empty field for a
48
+ * value the entry lacks. The digest is the SHA-256 of these lines in byte
49
+ * order, each ended by a line feed, in UTF-8.
50
+ *
51
+ * @throws {LockfileError} When the lockfile has no entry for the member, or
52
+ * a dependency string or `replace` value names no entry or several.
53
+ */
54
+ export declare function memberDigest(lockfile: Lockfile, member: PackageVersion): string;
55
+ /**
56
+ * The entries that a member's entry reaches in the lockfile's graph, its own
57
+ * first: the walk of {@link memberDigest}, which takes every dependency that
58
+ * an entry lists, whatever its platform or the features that bring it,
59
+ * passes through path packages and follows `replace = …`.
60
+ *
61
+ * @throws {LockfileError} As {@link memberDigest} does.
62
+ */
63
+ export declare function reachedEntries(lockfile: Lockfile, member: PackageVersion): LockfileEntry[];
@@ -0,0 +1,157 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LockfileError = void 0;
4
+ exports.parseLockfile = parseLockfile;
5
+ exports.memberDigest = memberDigest;
6
+ exports.reachedEntries = reachedEntries;
7
+ const node_crypto_1 = require("node:crypto");
8
+ const smol_toml_1 = require("smol-toml");
9
+ /** A `Cargo.lock` that the digest cannot read, or a package that it does not lock. */
10
+ class LockfileError extends Error {
11
+ constructor(message) {
12
+ super(message);
13
+ this.name = "LockfileError";
14
+ }
15
+ }
16
+ exports.LockfileError = LockfileError;
17
+ /**
18
+ * Reads the package entries of a `Cargo.lock`: the `[[package]]` tables,
19
+ * not the `[[patch.unused]]` ones. A lockfile of the first format keeps the
20
+ * checksums in its `[metadata]` table, under keys such as
21
+ * `checksum ryu 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)`;
22
+ * they are read as the entries' own.
23
+ *
24
+ * @throws {LockfileError} When the text is no TOML or an entry lacks its name or version.
25
+ */
26
+ function parseLockfile(text) {
27
+ let document;
28
+ try {
29
+ document = (0, smol_toml_1.parse)(text);
30
+ }
31
+ catch (error) {
32
+ throw new LockfileError(`it is no valid TOML: ${error.message}`);
33
+ }
34
+ const packages = Array.isArray(document.package) ? document.package : [];
35
+ const metadata = isRecord(document.metadata) ? document.metadata : {};
36
+ const entries = packages.map((value, index) => {
37
+ const table = isRecord(value) ? value : {};
38
+ const name = table.name;
39
+ const version = table.version;
40
+ if (typeof name !== "string" || typeof version !== "string") {
41
+ throw new LockfileError(`its package entry number ${index + 1} has no name or no version`);
42
+ }
43
+ const source = typeof table.source === "string" ? table.source : undefined;
44
+ const ownChecksum = typeof table.checksum === "string" ? table.checksum : undefined;
45
+ const listedChecksum = source === undefined ? undefined : metadata[`checksum ${name} ${version} (${source})`];
46
+ const checksum = ownChecksum !== null && ownChecksum !== void 0 ? ownChecksum : (typeof listedChecksum === "string" ? listedChecksum : undefined);
47
+ return Object.assign(Object.assign(Object.assign(Object.assign({ name,
48
+ version }, (source === undefined ? {} : { source })), (checksum === undefined ? {} : { checksum })), (typeof table.replace === "string" ? { replace: table.replace } : {})), { dependencies: Array.isArray(table.dependencies)
49
+ ? table.dependencies.filter((dependency) => typeof dependency === "string")
50
+ : [] });
51
+ });
52
+ return { entries };
53
+ }
54
+ /**
55
+ * The digest of a member's external dependencies (`DES-LOCKFILE-HASHING`,
56
+ * "Digest"): a SHA-256, in hexadecimal, over the entries that the member's
57
+ * entry reaches in the lockfile's graph.
58
+ *
59
+ * The walk starts at the entry without a source that has the member's name
60
+ * and version, takes every dependency that an entry lists, passes through
61
+ * path packages and follows `replace = …` to the entry it names. Each
62
+ * reachable entry gives one line: its name, version, source, checksum and
63
+ * `replace` value, then its dependency strings as the lockfile writes them,
64
+ * in byte order, all joined by tab characters, with an empty field for a
65
+ * value the entry lacks. The digest is the SHA-256 of these lines in byte
66
+ * order, each ended by a line feed, in UTF-8.
67
+ *
68
+ * @throws {LockfileError} When the lockfile has no entry for the member, or
69
+ * a dependency string or `replace` value names no entry or several.
70
+ */
71
+ // @mara implements DES-LOCKFILE-HASHING
72
+ function memberDigest(lockfile, member) {
73
+ const reached = reachedEntries(lockfile, member);
74
+ const lines = [...reached].map((entry) => {
75
+ var _a, _b, _c;
76
+ return [
77
+ entry.name,
78
+ entry.version,
79
+ (_a = entry.source) !== null && _a !== void 0 ? _a : "",
80
+ (_b = entry.checksum) !== null && _b !== void 0 ? _b : "",
81
+ (_c = entry.replace) !== null && _c !== void 0 ? _c : "",
82
+ ...sortedBytewise(entry.dependencies),
83
+ ].join("\t");
84
+ });
85
+ const hash = (0, node_crypto_1.createHash)("sha256");
86
+ for (const line of sortedBytewise(lines)) {
87
+ hash.update(`${line}\n`, "utf8");
88
+ }
89
+ return hash.digest("hex");
90
+ }
91
+ /**
92
+ * The entries that a member's entry reaches in the lockfile's graph, its own
93
+ * first: the walk of {@link memberDigest}, which takes every dependency that
94
+ * an entry lists, whatever its platform or the features that bring it,
95
+ * passes through path packages and follows `replace = …`.
96
+ *
97
+ * @throws {LockfileError} As {@link memberDigest} does.
98
+ */
99
+ function reachedEntries(lockfile, member) {
100
+ var _a, _b;
101
+ const byName = new Map();
102
+ for (const entry of lockfile.entries) {
103
+ byName.set(entry.name, [...((_a = byName.get(entry.name)) !== null && _a !== void 0 ? _a : []), entry]);
104
+ }
105
+ const start = ((_b = byName.get(member.name)) !== null && _b !== void 0 ? _b : []).find((entry) => entry.version === member.version && entry.source === undefined);
106
+ if (start === undefined) {
107
+ throw new LockfileError(`it has no entry for the package ${member.name} ${member.version}`);
108
+ }
109
+ const reached = new Set([start]);
110
+ const queue = [start];
111
+ while (queue.length > 0) {
112
+ const entry = queue.shift();
113
+ const references = [
114
+ ...entry.dependencies,
115
+ ...(entry.replace === undefined ? [] : [entry.replace]),
116
+ ];
117
+ for (const reference of references) {
118
+ const target = resolveReference(byName, reference, entry);
119
+ if (!reached.has(target)) {
120
+ reached.add(target);
121
+ queue.push(target);
122
+ }
123
+ }
124
+ }
125
+ return [...reached];
126
+ }
127
+ // The entry that a dependency string or `replace` value of `from` names. A
128
+ // reference without a source that two entries share by name and version
129
+ // means the entry without a source, as cargo writes a path package.
130
+ function resolveReference(byName, reference, from) {
131
+ var _a;
132
+ const match = /^(\S+)(?: (\S+))?(?: \((.+)\))?$/.exec(reference);
133
+ if (match === null) {
134
+ throw new LockfileError(`the entry ${from.name} ${from.version} names "${reference}", which is no package reference`);
135
+ }
136
+ const [, name, version, source] = match;
137
+ let candidates = ((_a = byName.get(name)) !== null && _a !== void 0 ? _a : []).filter((entry) => (version === undefined || entry.version === version) &&
138
+ (source === undefined || entry.source === source));
139
+ if (candidates.length > 1 && version !== undefined && source === undefined) {
140
+ candidates = candidates.filter((entry) => entry.source === undefined);
141
+ }
142
+ if (candidates.length !== 1) {
143
+ throw new LockfileError(`the entry ${from.name} ${from.version} names "${reference}", which ${candidates.length === 0 ? "matches no entry" : "matches several entries"}`);
144
+ }
145
+ return candidates[0];
146
+ }
147
+ // The strings sorted by their UTF-8 bytes.
148
+ function sortedBytewise(strings) {
149
+ return strings
150
+ .map((string) => ({ string, bytes: Buffer.from(string, "utf8") }))
151
+ .sort((a, b) => Buffer.compare(a.bytes, b.bytes))
152
+ .map(({ string }) => string);
153
+ }
154
+ function isRecord(value) {
155
+ return typeof value === "object" && value !== null && !Array.isArray(value);
156
+ }
157
+ //# sourceMappingURL=lockfile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lockfile.js","sourceRoot":"","sources":["../../../../nx-rust/src/cargo/lockfile.ts"],"names":[],"mappings":";;;AA6CA,sCAoCC;AAoBD,oCAiBC;AAUD,wCA4BC;AA5JD,6CAAyC;AACzC,yCAAkC;AA2BlC,sFAAsF;AACtF,MAAa,aAAc,SAAQ,KAAK;IACtC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAC9B,CAAC;CACF;AALD,sCAKC;AAED;;;;;;;;GAQG;AACH,SAAgB,aAAa,CAAC,IAAY;IACxC,IAAI,QAAiC,CAAC;IACtC,IAAI,CAAC;QACH,QAAQ,GAAG,IAAA,iBAAK,EAAC,IAAI,CAA4B,CAAC;IACpD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,aAAa,CAAC,wBAAyB,KAAe,CAAC,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IACD,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IACzE,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;IACtE,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,KA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