@rehearsal-labs/retest 0.2.0 → 0.3.0

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 (218) hide show
  1. package/README.md +6 -5
  2. package/dist/api/source-location.d.ts.map +1 -1
  3. package/dist/api/source-location.js +3 -1
  4. package/dist/browser/builds.d.ts +35 -6
  5. package/dist/browser/builds.d.ts.map +1 -1
  6. package/dist/browser/builds.js +115 -16
  7. package/dist/browser/cdp/transport.d.ts.map +1 -1
  8. package/dist/browser/cdp/transport.js +4 -4
  9. package/dist/browser/chromium-process.d.ts +23 -0
  10. package/dist/browser/chromium-process.d.ts.map +1 -1
  11. package/dist/browser/chromium-process.js +78 -13
  12. package/dist/browser/electron.d.ts +1 -1
  13. package/dist/browser/electron.d.ts.map +1 -1
  14. package/dist/browser/electron.js +6 -3
  15. package/dist/browser/executables.d.ts +16 -1
  16. package/dist/browser/executables.d.ts.map +1 -1
  17. package/dist/browser/executables.js +50 -18
  18. package/dist/browser/firefox/accessible-names.d.ts +5 -4
  19. package/dist/browser/firefox/accessible-names.d.ts.map +1 -1
  20. package/dist/browser/firefox/accessible-names.js +11 -6
  21. package/dist/browser/firefox/bridge.js +3 -2
  22. package/dist/browser/firefox/executable.d.ts +14 -14
  23. package/dist/browser/firefox/executable.d.ts.map +1 -1
  24. package/dist/browser/firefox/executable.js +29 -21
  25. package/dist/browser/firefox/launch.js +1 -1
  26. package/dist/browser/firefox/navigation.d.ts +5 -2
  27. package/dist/browser/firefox/navigation.d.ts.map +1 -1
  28. package/dist/browser/firefox/navigation.js +48 -14
  29. package/dist/browser/firefox/orphans.d.ts.map +1 -1
  30. package/dist/browser/firefox/orphans.js +34 -2
  31. package/dist/browser/firefox/page.d.ts.map +1 -1
  32. package/dist/browser/firefox/page.js +113 -19
  33. package/dist/browser/firefox/process.d.ts +20 -1
  34. package/dist/browser/firefox/process.d.ts.map +1 -1
  35. package/dist/browser/firefox/process.js +124 -22
  36. package/dist/browser/firefox/profile.d.ts +5 -0
  37. package/dist/browser/firefox/profile.d.ts.map +1 -1
  38. package/dist/browser/firefox/profile.js +17 -1
  39. package/dist/browser/firefox/storage.d.ts.map +1 -1
  40. package/dist/browser/firefox/storage.js +4 -2
  41. package/dist/browser/firefox/subscriptions.d.ts +26 -0
  42. package/dist/browser/firefox/subscriptions.d.ts.map +1 -0
  43. package/dist/browser/firefox/subscriptions.js +10 -0
  44. package/dist/browser/launch.d.ts +6 -0
  45. package/dist/browser/launch.d.ts.map +1 -1
  46. package/dist/browser/launch.js +14 -1
  47. package/dist/cli/commands/doctor.js +3 -3
  48. package/dist/cli/commands/inspect.js +3 -2
  49. package/dist/cli/commands/install.d.ts.map +1 -1
  50. package/dist/cli/commands/install.js +26 -13
  51. package/dist/cli/commands/licences.d.ts +22 -0
  52. package/dist/cli/commands/licences.d.ts.map +1 -1
  53. package/dist/cli/commands/licences.js +62 -20
  54. package/dist/cli/commands/run.js +2 -2
  55. package/dist/cli/doctor/checks.js +4 -1
  56. package/dist/cli/inspect/diagnostics.js +3 -3
  57. package/dist/cli/inspect/test-timeline.js +10 -10
  58. package/dist/cli/install/doctor-rows.d.ts.map +1 -1
  59. package/dist/cli/install/doctor-rows.js +5 -4
  60. package/dist/cli/install/file-changes.d.ts +44 -0
  61. package/dist/cli/install/file-changes.d.ts.map +1 -0
  62. package/dist/cli/install/file-changes.js +81 -0
  63. package/dist/cli/install/install-archive.d.ts +3 -1
  64. package/dist/cli/install/install-archive.d.ts.map +1 -1
  65. package/dist/cli/install/install-archive.js +80 -33
  66. package/dist/cli/install/lock.d.ts.map +1 -1
  67. package/dist/cli/install/lock.js +108 -21
  68. package/dist/cli/install/media-doctor.d.ts.map +1 -1
  69. package/dist/cli/install/media-doctor.js +2 -1
  70. package/dist/cli/install/media-install.d.ts.map +1 -1
  71. package/dist/cli/install/media-install.js +38 -19
  72. package/dist/cli/install/media-pins.d.ts +7 -1
  73. package/dist/cli/install/media-pins.d.ts.map +1 -1
  74. package/dist/cli/install/media-pins.js +23 -12
  75. package/dist/cli/install/media-record.d.ts.map +1 -1
  76. package/dist/cli/install/media-record.js +10 -9
  77. package/dist/cli/install/media-report.d.ts +3 -1
  78. package/dist/cli/install/media-report.d.ts.map +1 -1
  79. package/dist/cli/install/media-report.js +7 -5
  80. package/dist/cli/install/media-tools.d.ts.map +1 -1
  81. package/dist/cli/install/media-tools.js +6 -4
  82. package/dist/cli/install/process-start.d.ts +3 -2
  83. package/dist/cli/install/process-start.d.ts.map +1 -1
  84. package/dist/cli/install/process-start.js +4 -0
  85. package/dist/cli/install/report.d.ts.map +1 -1
  86. package/dist/cli/install/report.js +11 -7
  87. package/dist/cli/install/supervisor-install.d.ts +33 -0
  88. package/dist/cli/install/supervisor-install.d.ts.map +1 -0
  89. package/dist/cli/install/supervisor-install.js +158 -0
  90. package/dist/cli/install/supervisor-locate.d.ts +47 -0
  91. package/dist/cli/install/supervisor-locate.d.ts.map +1 -0
  92. package/dist/cli/install/supervisor-locate.js +113 -0
  93. package/dist/cli/install/supervisor-pins.d.ts +21 -0
  94. package/dist/cli/install/supervisor-pins.d.ts.map +1 -0
  95. package/dist/cli/install/supervisor-pins.js +28 -0
  96. package/dist/cli/install/supervisor-record.d.ts +31 -0
  97. package/dist/cli/install/supervisor-record.d.ts.map +1 -0
  98. package/dist/cli/install/supervisor-record.js +104 -0
  99. package/dist/cli/install/supervisor-report.d.ts +11 -0
  100. package/dist/cli/install/supervisor-report.d.ts.map +1 -0
  101. package/dist/cli/install/supervisor-report.js +33 -0
  102. package/dist/cli/install/supervisor-tools.d.ts +43 -0
  103. package/dist/cli/install/supervisor-tools.d.ts.map +1 -0
  104. package/dist/cli/install/supervisor-tools.js +114 -0
  105. package/dist/cli/install/unpack.d.ts +23 -3
  106. package/dist/cli/install/unpack.d.ts.map +1 -1
  107. package/dist/cli/install/unpack.js +124 -10
  108. package/dist/cli/install/zip-member.d.ts +15 -0
  109. package/dist/cli/install/zip-member.d.ts.map +1 -0
  110. package/dist/cli/install/zip-member.js +77 -0
  111. package/dist/cli/interrupt.d.ts +1 -1
  112. package/dist/cli/interrupt.d.ts.map +1 -1
  113. package/dist/cli/interrupt.js +15 -10
  114. package/dist/cli/terminal.d.ts +9 -1
  115. package/dist/cli/terminal.d.ts.map +1 -1
  116. package/dist/cli/terminal.js +14 -0
  117. package/dist/config/define.d.ts +2 -2
  118. package/dist/config/define.js +2 -2
  119. package/dist/diagnostics/firefox-collector.d.ts +11 -10
  120. package/dist/diagnostics/firefox-collector.d.ts.map +1 -1
  121. package/dist/diagnostics/firefox-collector.js +16 -11
  122. package/dist/media/client.d.ts +2 -1
  123. package/dist/media/client.d.ts.map +1 -1
  124. package/dist/media/client.js +16 -5
  125. package/dist/media/host.d.ts +32 -0
  126. package/dist/media/host.d.ts.map +1 -0
  127. package/dist/media/host.js +50 -0
  128. package/dist/media/locate.d.ts.map +1 -1
  129. package/dist/media/locate.js +4 -3
  130. package/dist/native/processes.d.ts.map +1 -1
  131. package/dist/native/processes.js +7 -3
  132. package/dist/protocol/files.d.ts +1 -1
  133. package/dist/protocol/files.d.ts.map +1 -1
  134. package/dist/protocol/files.js +10 -5
  135. package/dist/reporters/commands.d.ts +12 -3
  136. package/dist/reporters/commands.d.ts.map +1 -1
  137. package/dist/reporters/commands.js +29 -11
  138. package/dist/reporters/human-card.js +1 -1
  139. package/dist/reporters/human.d.ts +3 -1
  140. package/dist/reporters/human.d.ts.map +1 -1
  141. package/dist/reporters/human.js +8 -8
  142. package/dist/reporters/style.d.ts +21 -2
  143. package/dist/reporters/style.d.ts.map +1 -1
  144. package/dist/reporters/style.js +11 -2
  145. package/dist/runner/app-server.d.ts +27 -7
  146. package/dist/runner/app-server.d.ts.map +1 -1
  147. package/dist/runner/app-server.js +74 -24
  148. package/dist/runner/child.js +6 -2
  149. package/dist/runner/media-leftovers.d.ts +7 -3
  150. package/dist/runner/media-leftovers.d.ts.map +1 -1
  151. package/dist/runner/media-leftovers.js +27 -6
  152. package/dist/runner/resources.d.ts +8 -0
  153. package/dist/runner/resources.d.ts.map +1 -1
  154. package/dist/runner/resources.js +12 -1
  155. package/dist/runner/run-session.d.ts.map +1 -1
  156. package/dist/runner/run-session.js +9 -4
  157. package/dist/runner/run.d.ts.map +1 -1
  158. package/dist/runner/run.js +2 -1
  159. package/dist/runner/target-drivers.d.ts +5 -2
  160. package/dist/runner/target-drivers.d.ts.map +1 -1
  161. package/dist/runner/target-drivers.js +10 -1
  162. package/dist/runner/test-file-process.d.ts +8 -0
  163. package/dist/runner/test-file-process.d.ts.map +1 -1
  164. package/dist/runner/test-file-process.js +26 -3
  165. package/dist/runner/test-pages.d.ts.map +1 -1
  166. package/dist/runner/test-pages.js +5 -2
  167. package/dist/shared/environment.d.ts +17 -0
  168. package/dist/shared/environment.d.ts.map +1 -0
  169. package/dist/shared/environment.js +27 -0
  170. package/dist/shared/metadata-process-worker.js +15 -7
  171. package/dist/shared/metadata-process.d.ts +5 -0
  172. package/dist/shared/metadata-process.d.ts.map +1 -1
  173. package/dist/shared/metadata-process.js +36 -6
  174. package/dist/shared/posix-path.d.ts +12 -0
  175. package/dist/shared/posix-path.d.ts.map +1 -1
  176. package/dist/shared/posix-path.js +16 -0
  177. package/dist/shared/private-file.d.ts +38 -0
  178. package/dist/shared/private-file.d.ts.map +1 -0
  179. package/dist/shared/private-file.js +132 -0
  180. package/dist/shared/process-ownership.d.ts +52 -2
  181. package/dist/shared/process-ownership.d.ts.map +1 -1
  182. package/dist/shared/process-ownership.js +104 -11
  183. package/dist/shared/process-supervisor.d.ts +309 -0
  184. package/dist/shared/process-supervisor.d.ts.map +1 -0
  185. package/dist/shared/process-supervisor.js +737 -0
  186. package/dist/shared/process-system.d.ts +113 -0
  187. package/dist/shared/process-system.d.ts.map +1 -0
  188. package/dist/shared/process-system.js +254 -0
  189. package/dist/shared/regular-file.d.ts +2 -2
  190. package/dist/shared/regular-file.d.ts.map +1 -1
  191. package/dist/shared/regular-file.js +19 -2
  192. package/dist/store/artifacts.d.ts +5 -4
  193. package/dist/store/artifacts.d.ts.map +1 -1
  194. package/dist/store/artifacts.js +18 -5
  195. package/dist/store/run-store.d.ts +5 -2
  196. package/dist/store/run-store.d.ts.map +1 -1
  197. package/dist/store/run-store.js +48 -4
  198. package/media/Cargo.lock +16 -0
  199. package/media/Cargo.toml +16 -1
  200. package/media/src/encoder.rs +56 -12
  201. package/media/src/frame.rs +7 -1
  202. package/media/src/main.rs +20 -2
  203. package/media/src/place.rs +230 -11
  204. package/media/src/process_ownership_windows.rs +1058 -0
  205. package/media/src/recording.rs +15 -7
  206. package/media/src/replies.rs +55 -0
  207. package/media/src/server.rs +72 -2
  208. package/media/src/store.rs +71 -2
  209. package/package.json +9 -4
  210. package/src/cli/install/media-notices.txt +465 -1
  211. package/supervisor/Cargo.lock +25 -0
  212. package/supervisor/Cargo.toml +22 -0
  213. package/supervisor/NOTICES +464 -0
  214. package/supervisor/build.rs +44 -0
  215. package/supervisor/src/command.rs +612 -0
  216. package/supervisor/src/jobs.rs +1650 -0
  217. package/supervisor/src/main.rs +71 -0
  218. package/supervisor/src/reply.rs +367 -0
@@ -0,0 +1,464 @@
1
+ Retest supervisor third-party notices
2
+ Generated from supervisor/Cargo.lock. Only the Windows build links these crates.
3
+ Lock SHA-256: 5b18a75f3d341cc37c4c0178195ab3b29888e46b205e4e7ae59cadc041b403c9
4
+
5
+ windows-link 0.2.1
6
+ Source: registry+https://github.com/rust-lang/crates.io-index
7
+ Package checksum: f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5
8
+ License expression: MIT OR Apache-2.0
9
+ File: license-apache-2.0
10
+ Apache License
11
+ Version 2.0, January 2004
12
+ http://www.apache.org/licenses/
13
+
14
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
15
+
16
+ 1. Definitions.
17
+
18
+ "License" shall mean the terms and conditions for use, reproduction,
19
+ and distribution as defined by Sections 1 through 9 of this document.
20
+
21
+ "Licensor" shall mean the copyright owner or entity authorized by
22
+ the copyright owner that is granting the License.
23
+
24
+ "Legal Entity" shall mean the union of the acting entity and all
25
+ other entities that control, are controlled by, or are under common
26
+ control with that entity. For the purposes of this definition,
27
+ "control" means (i) the power, direct or indirect, to cause the
28
+ direction or management of such entity, whether by contract or
29
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
30
+ outstanding shares, or (iii) beneficial ownership of such entity.
31
+
32
+ "You" (or "Your") shall mean an individual or Legal Entity
33
+ exercising permissions granted by this License.
34
+
35
+ "Source" form shall mean the preferred form for making modifications,
36
+ including but not limited to software source code, documentation
37
+ source, and configuration files.
38
+
39
+ "Object" form shall mean any form resulting from mechanical
40
+ transformation or translation of a Source form, including but
41
+ not limited to compiled object code, generated documentation,
42
+ and conversions to other media types.
43
+
44
+ "Work" shall mean the work of authorship, whether in Source or
45
+ Object form, made available under the License, as indicated by a
46
+ copyright notice that is included in or attached to the work
47
+ (an example is provided in the Appendix below).
48
+
49
+ "Derivative Works" shall mean any work, whether in Source or Object
50
+ form, that is based on (or derived from) the Work and for which the
51
+ editorial revisions, annotations, elaborations, or other modifications
52
+ represent, as a whole, an original work of authorship. For the purposes
53
+ of this License, Derivative Works shall not include works that remain
54
+ separable from, or merely link (or bind by name) to the interfaces of,
55
+ the Work and Derivative Works thereof.
56
+
57
+ "Contribution" shall mean any work of authorship, including
58
+ the original version of the Work and any modifications or additions
59
+ to that Work or Derivative Works thereof, that is intentionally
60
+ submitted to Licensor for inclusion in the Work by the copyright owner
61
+ or by an individual or Legal Entity authorized to submit on behalf of
62
+ the copyright owner. For the purposes of this definition, "submitted"
63
+ means any form of electronic, verbal, or written communication sent
64
+ to the Licensor or its representatives, including but not limited to
65
+ communication on electronic mailing lists, source code control systems,
66
+ and issue tracking systems that are managed by, or on behalf of, the
67
+ Licensor for the purpose of discussing and improving the Work, but
68
+ excluding communication that is conspicuously marked or otherwise
69
+ designated in writing by the copyright owner as "Not a Contribution."
70
+
71
+ "Contributor" shall mean Licensor and any individual or Legal Entity
72
+ on behalf of whom a Contribution has been received by Licensor and
73
+ subsequently incorporated within the Work.
74
+
75
+ 2. Grant of Copyright License. Subject to the terms and conditions of
76
+ this License, each Contributor hereby grants to You a perpetual,
77
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
78
+ copyright license to reproduce, prepare Derivative Works of,
79
+ publicly display, publicly perform, sublicense, and distribute the
80
+ Work and such Derivative Works in Source or Object form.
81
+
82
+ 3. Grant of Patent License. Subject to the terms and conditions of
83
+ this License, each Contributor hereby grants to You a perpetual,
84
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
85
+ (except as stated in this section) patent license to make, have made,
86
+ use, offer to sell, sell, import, and otherwise transfer the Work,
87
+ where such license applies only to those patent claims licensable
88
+ by such Contributor that are necessarily infringed by their
89
+ Contribution(s) alone or by combination of their Contribution(s)
90
+ with the Work to which such Contribution(s) was submitted. If You
91
+ institute patent litigation against any entity (including a
92
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
93
+ or a Contribution incorporated within the Work constitutes direct
94
+ or contributory patent infringement, then any patent licenses
95
+ granted to You under this License for that Work shall terminate
96
+ as of the date such litigation is filed.
97
+
98
+ 4. Redistribution. You may reproduce and distribute copies of the
99
+ Work or Derivative Works thereof in any medium, with or without
100
+ modifications, and in Source or Object form, provided that You
101
+ meet the following conditions:
102
+
103
+ (a) You must give any other recipients of the Work or
104
+ Derivative Works a copy of this License; and
105
+
106
+ (b) You must cause any modified files to carry prominent notices
107
+ stating that You changed the files; and
108
+
109
+ (c) You must retain, in the Source form of any Derivative Works
110
+ that You distribute, all copyright, patent, trademark, and
111
+ attribution notices from the Source form of the Work,
112
+ excluding those notices that do not pertain to any part of
113
+ the Derivative Works; and
114
+
115
+ (d) If the Work includes a "NOTICE" text file as part of its
116
+ distribution, then any Derivative Works that You distribute must
117
+ include a readable copy of the attribution notices contained
118
+ within such NOTICE file, excluding those notices that do not
119
+ pertain to any part of the Derivative Works, in at least one
120
+ of the following places: within a NOTICE text file distributed
121
+ as part of the Derivative Works; within the Source form or
122
+ documentation, if provided along with the Derivative Works; or,
123
+ within a display generated by the Derivative Works, if and
124
+ wherever such third-party notices normally appear. The contents
125
+ of the NOTICE file are for informational purposes only and
126
+ do not modify the License. You may add Your own attribution
127
+ notices within Derivative Works that You distribute, alongside
128
+ or as an addendum to the NOTICE text from the Work, provided
129
+ that such additional attribution notices cannot be construed
130
+ as modifying the License.
131
+
132
+ You may add Your own copyright statement to Your modifications and
133
+ may provide additional or different license terms and conditions
134
+ for use, reproduction, or distribution of Your modifications, or
135
+ for any such Derivative Works as a whole, provided Your use,
136
+ reproduction, and distribution of the Work otherwise complies with
137
+ the conditions stated in this License.
138
+
139
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
140
+ any Contribution intentionally submitted for inclusion in the Work
141
+ by You to the Licensor shall be under the terms and conditions of
142
+ this License, without any additional terms or conditions.
143
+ Notwithstanding the above, nothing herein shall supersede or modify
144
+ the terms of any separate license agreement you may have executed
145
+ with Licensor regarding such Contributions.
146
+
147
+ 6. Trademarks. This License does not grant permission to use the trade
148
+ names, trademarks, service marks, or product names of the Licensor,
149
+ except as required for reasonable and customary use in describing the
150
+ origin of the Work and reproducing the content of the NOTICE file.
151
+
152
+ 7. Disclaimer of Warranty. Unless required by applicable law or
153
+ agreed to in writing, Licensor provides the Work (and each
154
+ Contributor provides its Contributions) on an "AS IS" BASIS,
155
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
156
+ implied, including, without limitation, any warranties or conditions
157
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
158
+ PARTICULAR PURPOSE. You are solely responsible for determining the
159
+ appropriateness of using or redistributing the Work and assume any
160
+ risks associated with Your exercise of permissions under this License.
161
+
162
+ 8. Limitation of Liability. In no event and under no legal theory,
163
+ whether in tort (including negligence), contract, or otherwise,
164
+ unless required by applicable law (such as deliberate and grossly
165
+ negligent acts) or agreed to in writing, shall any Contributor be
166
+ liable to You for damages, including any direct, indirect, special,
167
+ incidental, or consequential damages of any character arising as a
168
+ result of this License or out of the use or inability to use the
169
+ Work (including but not limited to damages for loss of goodwill,
170
+ work stoppage, computer failure or malfunction, or any and all
171
+ other commercial damages or losses), even if such Contributor
172
+ has been advised of the possibility of such damages.
173
+
174
+ 9. Accepting Warranty or Additional Liability. While redistributing
175
+ the Work or Derivative Works thereof, You may choose to offer,
176
+ and charge a fee for, acceptance of support, warranty, indemnity,
177
+ or other liability obligations and/or rights consistent with this
178
+ License. However, in accepting such obligations, You may act only
179
+ on Your own behalf and on Your sole responsibility, not on behalf
180
+ of any other Contributor, and only if You agree to indemnify,
181
+ defend, and hold each Contributor harmless for any liability
182
+ incurred by, or claims asserted against, such Contributor by reason
183
+ of your accepting any such warranty or additional liability.
184
+
185
+ END OF TERMS AND CONDITIONS
186
+
187
+ APPENDIX: How to apply the Apache License to your work.
188
+
189
+ To apply the Apache License to your work, attach the following
190
+ boilerplate notice, with the fields enclosed by brackets "[]"
191
+ replaced with your own identifying information. (Don't include
192
+ the brackets!) The text should be enclosed in the appropriate
193
+ comment syntax for the file format. We also recommend that a
194
+ file or class name and description of purpose be included on the
195
+ same "printed page" as the copyright notice for easier
196
+ identification within third-party archives.
197
+
198
+ Copyright (c) Microsoft Corporation.
199
+
200
+ Licensed under the Apache License, Version 2.0 (the "License");
201
+ you may not use this file except in compliance with the License.
202
+ You may obtain a copy of the License at
203
+
204
+ http://www.apache.org/licenses/LICENSE-2.0
205
+
206
+ Unless required by applicable law or agreed to in writing, software
207
+ distributed under the License is distributed on an "AS IS" BASIS,
208
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
209
+ See the License for the specific language governing permissions and
210
+ limitations under the License.
211
+
212
+ File: license-mit
213
+ MIT License
214
+
215
+ Copyright (c) Microsoft Corporation.
216
+
217
+ Permission is hereby granted, free of charge, to any person obtaining a copy
218
+ of this software and associated documentation files (the "Software"), to deal
219
+ in the Software without restriction, including without limitation the rights
220
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
221
+ copies of the Software, and to permit persons to whom the Software is
222
+ furnished to do so, subject to the following conditions:
223
+
224
+ The above copyright notice and this permission notice shall be included in all
225
+ copies or substantial portions of the Software.
226
+
227
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
228
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
229
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
230
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
231
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
232
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
233
+ SOFTWARE
234
+
235
+
236
+ windows-sys 0.61.2
237
+ Source: registry+https://github.com/rust-lang/crates.io-index
238
+ Package checksum: ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc
239
+ License expression: MIT OR Apache-2.0
240
+ File: license-apache-2.0
241
+ Apache License
242
+ Version 2.0, January 2004
243
+ http://www.apache.org/licenses/
244
+
245
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
246
+
247
+ 1. Definitions.
248
+
249
+ "License" shall mean the terms and conditions for use, reproduction,
250
+ and distribution as defined by Sections 1 through 9 of this document.
251
+
252
+ "Licensor" shall mean the copyright owner or entity authorized by
253
+ the copyright owner that is granting the License.
254
+
255
+ "Legal Entity" shall mean the union of the acting entity and all
256
+ other entities that control, are controlled by, or are under common
257
+ control with that entity. For the purposes of this definition,
258
+ "control" means (i) the power, direct or indirect, to cause the
259
+ direction or management of such entity, whether by contract or
260
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
261
+ outstanding shares, or (iii) beneficial ownership of such entity.
262
+
263
+ "You" (or "Your") shall mean an individual or Legal Entity
264
+ exercising permissions granted by this License.
265
+
266
+ "Source" form shall mean the preferred form for making modifications,
267
+ including but not limited to software source code, documentation
268
+ source, and configuration files.
269
+
270
+ "Object" form shall mean any form resulting from mechanical
271
+ transformation or translation of a Source form, including but
272
+ not limited to compiled object code, generated documentation,
273
+ and conversions to other media types.
274
+
275
+ "Work" shall mean the work of authorship, whether in Source or
276
+ Object form, made available under the License, as indicated by a
277
+ copyright notice that is included in or attached to the work
278
+ (an example is provided in the Appendix below).
279
+
280
+ "Derivative Works" shall mean any work, whether in Source or Object
281
+ form, that is based on (or derived from) the Work and for which the
282
+ editorial revisions, annotations, elaborations, or other modifications
283
+ represent, as a whole, an original work of authorship. For the purposes
284
+ of this License, Derivative Works shall not include works that remain
285
+ separable from, or merely link (or bind by name) to the interfaces of,
286
+ the Work and Derivative Works thereof.
287
+
288
+ "Contribution" shall mean any work of authorship, including
289
+ the original version of the Work and any modifications or additions
290
+ to that Work or Derivative Works thereof, that is intentionally
291
+ submitted to Licensor for inclusion in the Work by the copyright owner
292
+ or by an individual or Legal Entity authorized to submit on behalf of
293
+ the copyright owner. For the purposes of this definition, "submitted"
294
+ means any form of electronic, verbal, or written communication sent
295
+ to the Licensor or its representatives, including but not limited to
296
+ communication on electronic mailing lists, source code control systems,
297
+ and issue tracking systems that are managed by, or on behalf of, the
298
+ Licensor for the purpose of discussing and improving the Work, but
299
+ excluding communication that is conspicuously marked or otherwise
300
+ designated in writing by the copyright owner as "Not a Contribution."
301
+
302
+ "Contributor" shall mean Licensor and any individual or Legal Entity
303
+ on behalf of whom a Contribution has been received by Licensor and
304
+ subsequently incorporated within the Work.
305
+
306
+ 2. Grant of Copyright License. Subject to the terms and conditions of
307
+ this License, each Contributor hereby grants to You a perpetual,
308
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
309
+ copyright license to reproduce, prepare Derivative Works of,
310
+ publicly display, publicly perform, sublicense, and distribute the
311
+ Work and such Derivative Works in Source or Object form.
312
+
313
+ 3. Grant of Patent License. Subject to the terms and conditions of
314
+ this License, each Contributor hereby grants to You a perpetual,
315
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
316
+ (except as stated in this section) patent license to make, have made,
317
+ use, offer to sell, sell, import, and otherwise transfer the Work,
318
+ where such license applies only to those patent claims licensable
319
+ by such Contributor that are necessarily infringed by their
320
+ Contribution(s) alone or by combination of their Contribution(s)
321
+ with the Work to which such Contribution(s) was submitted. If You
322
+ institute patent litigation against any entity (including a
323
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
324
+ or a Contribution incorporated within the Work constitutes direct
325
+ or contributory patent infringement, then any patent licenses
326
+ granted to You under this License for that Work shall terminate
327
+ as of the date such litigation is filed.
328
+
329
+ 4. Redistribution. You may reproduce and distribute copies of the
330
+ Work or Derivative Works thereof in any medium, with or without
331
+ modifications, and in Source or Object form, provided that You
332
+ meet the following conditions:
333
+
334
+ (a) You must give any other recipients of the Work or
335
+ Derivative Works a copy of this License; and
336
+
337
+ (b) You must cause any modified files to carry prominent notices
338
+ stating that You changed the files; and
339
+
340
+ (c) You must retain, in the Source form of any Derivative Works
341
+ that You distribute, all copyright, patent, trademark, and
342
+ attribution notices from the Source form of the Work,
343
+ excluding those notices that do not pertain to any part of
344
+ the Derivative Works; and
345
+
346
+ (d) If the Work includes a "NOTICE" text file as part of its
347
+ distribution, then any Derivative Works that You distribute must
348
+ include a readable copy of the attribution notices contained
349
+ within such NOTICE file, excluding those notices that do not
350
+ pertain to any part of the Derivative Works, in at least one
351
+ of the following places: within a NOTICE text file distributed
352
+ as part of the Derivative Works; within the Source form or
353
+ documentation, if provided along with the Derivative Works; or,
354
+ within a display generated by the Derivative Works, if and
355
+ wherever such third-party notices normally appear. The contents
356
+ of the NOTICE file are for informational purposes only and
357
+ do not modify the License. You may add Your own attribution
358
+ notices within Derivative Works that You distribute, alongside
359
+ or as an addendum to the NOTICE text from the Work, provided
360
+ that such additional attribution notices cannot be construed
361
+ as modifying the License.
362
+
363
+ You may add Your own copyright statement to Your modifications and
364
+ may provide additional or different license terms and conditions
365
+ for use, reproduction, or distribution of Your modifications, or
366
+ for any such Derivative Works as a whole, provided Your use,
367
+ reproduction, and distribution of the Work otherwise complies with
368
+ the conditions stated in this License.
369
+
370
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
371
+ any Contribution intentionally submitted for inclusion in the Work
372
+ by You to the Licensor shall be under the terms and conditions of
373
+ this License, without any additional terms or conditions.
374
+ Notwithstanding the above, nothing herein shall supersede or modify
375
+ the terms of any separate license agreement you may have executed
376
+ with Licensor regarding such Contributions.
377
+
378
+ 6. Trademarks. This License does not grant permission to use the trade
379
+ names, trademarks, service marks, or product names of the Licensor,
380
+ except as required for reasonable and customary use in describing the
381
+ origin of the Work and reproducing the content of the NOTICE file.
382
+
383
+ 7. Disclaimer of Warranty. Unless required by applicable law or
384
+ agreed to in writing, Licensor provides the Work (and each
385
+ Contributor provides its Contributions) on an "AS IS" BASIS,
386
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
387
+ implied, including, without limitation, any warranties or conditions
388
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
389
+ PARTICULAR PURPOSE. You are solely responsible for determining the
390
+ appropriateness of using or redistributing the Work and assume any
391
+ risks associated with Your exercise of permissions under this License.
392
+
393
+ 8. Limitation of Liability. In no event and under no legal theory,
394
+ whether in tort (including negligence), contract, or otherwise,
395
+ unless required by applicable law (such as deliberate and grossly
396
+ negligent acts) or agreed to in writing, shall any Contributor be
397
+ liable to You for damages, including any direct, indirect, special,
398
+ incidental, or consequential damages of any character arising as a
399
+ result of this License or out of the use or inability to use the
400
+ Work (including but not limited to damages for loss of goodwill,
401
+ work stoppage, computer failure or malfunction, or any and all
402
+ other commercial damages or losses), even if such Contributor
403
+ has been advised of the possibility of such damages.
404
+
405
+ 9. Accepting Warranty or Additional Liability. While redistributing
406
+ the Work or Derivative Works thereof, You may choose to offer,
407
+ and charge a fee for, acceptance of support, warranty, indemnity,
408
+ or other liability obligations and/or rights consistent with this
409
+ License. However, in accepting such obligations, You may act only
410
+ on Your own behalf and on Your sole responsibility, not on behalf
411
+ of any other Contributor, and only if You agree to indemnify,
412
+ defend, and hold each Contributor harmless for any liability
413
+ incurred by, or claims asserted against, such Contributor by reason
414
+ of your accepting any such warranty or additional liability.
415
+
416
+ END OF TERMS AND CONDITIONS
417
+
418
+ APPENDIX: How to apply the Apache License to your work.
419
+
420
+ To apply the Apache License to your work, attach the following
421
+ boilerplate notice, with the fields enclosed by brackets "[]"
422
+ replaced with your own identifying information. (Don't include
423
+ the brackets!) The text should be enclosed in the appropriate
424
+ comment syntax for the file format. We also recommend that a
425
+ file or class name and description of purpose be included on the
426
+ same "printed page" as the copyright notice for easier
427
+ identification within third-party archives.
428
+
429
+ Copyright (c) Microsoft Corporation.
430
+
431
+ Licensed under the Apache License, Version 2.0 (the "License");
432
+ you may not use this file except in compliance with the License.
433
+ You may obtain a copy of the License at
434
+
435
+ http://www.apache.org/licenses/LICENSE-2.0
436
+
437
+ Unless required by applicable law or agreed to in writing, software
438
+ distributed under the License is distributed on an "AS IS" BASIS,
439
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
440
+ See the License for the specific language governing permissions and
441
+ limitations under the License.
442
+
443
+ File: license-mit
444
+ MIT License
445
+
446
+ Copyright (c) Microsoft Corporation.
447
+
448
+ Permission is hereby granted, free of charge, to any person obtaining a copy
449
+ of this software and associated documentation files (the "Software"), to deal
450
+ in the Software without restriction, including without limitation the rights
451
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
452
+ copies of the Software, and to permit persons to whom the Software is
453
+ furnished to do so, subject to the following conditions:
454
+
455
+ The above copyright notice and this permission notice shall be included in all
456
+ copies or substantial portions of the Software.
457
+
458
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
459
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
460
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
461
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
462
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
463
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
464
+ SOFTWARE
@@ -0,0 +1,44 @@
1
+ //! Records how the binary is built, for `--version`: the target triple, the profile, and the source revision when it
2
+ //! can be told. `RETEST_SUPERVISOR_SOURCE_REVISION` names the revision for a build from sources without git history;
3
+ //! otherwise git is asked, and a build without git, or outside a repository, has none. Nothing here downloads or links
4
+ //! anything.
5
+
6
+ use std::process::Command;
7
+
8
+ fn main() {
9
+ let target = std::env::var("TARGET").unwrap_or_else(|_| "unknown".to_owned());
10
+ let profile = std::env::var("PROFILE").unwrap_or_else(|_| "unknown".to_owned());
11
+ println!("cargo:rustc-env=RETEST_SUPERVISOR_TARGET={target}");
12
+ println!("cargo:rustc-env=RETEST_SUPERVISOR_PROFILE={profile}");
13
+ println!("cargo:rerun-if-env-changed=RETEST_SUPERVISOR_SOURCE_REVISION");
14
+ for path in ["build.rs", "Cargo.toml", "Cargo.lock", "src"] {
15
+ println!("cargo:rerun-if-changed={path}");
16
+ }
17
+ let manifest = std::env::var("CARGO_MANIFEST_DIR").unwrap_or_else(|_| ".".to_owned());
18
+ let revision = std::env::var("RETEST_SUPERVISOR_SOURCE_REVISION")
19
+ .ok()
20
+ .filter(|revision| is_revision(revision))
21
+ .or_else(|| {
22
+ git(&manifest, &["rev-parse", "HEAD"]).filter(|revision| is_revision(revision))
23
+ });
24
+ if let Some(revision) = revision {
25
+ println!("cargo:rustc-env=RETEST_SUPERVISOR_REVISION={revision}");
26
+ }
27
+ }
28
+
29
+ fn git(folder: &str, arguments: &[&str]) -> Option<String> {
30
+ let output = Command::new("git")
31
+ .args(arguments)
32
+ .current_dir(folder)
33
+ .output()
34
+ .ok()?;
35
+ output
36
+ .status
37
+ .success()
38
+ .then(|| String::from_utf8_lossy(&output.stdout).trim().to_owned())
39
+ }
40
+
41
+ // A revision is a hexadecimal object name, so nothing else can travel in the version line under its name.
42
+ fn is_revision(revision: &str) -> bool {
43
+ (7..=64).contains(&revision.len()) && revision.bytes().all(|byte| byte.is_ascii_hexdigit())
44
+ }