pf2 0.9.0 → 1.0.0.alpha1

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 (131) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -4
  3. data/Rakefile +3 -9
  4. data/doc/development.md +6 -0
  5. data/ext/pf2/debug.h +12 -0
  6. data/ext/pf2/extconf.rb +23 -6
  7. data/ext/{pf2c → pf2}/sample.c +6 -0
  8. data/ext/{pf2c → pf2}/sample.h +4 -0
  9. data/ext/{pf2c → pf2}/serializer.c +1 -1
  10. data/ext/{pf2c → pf2}/session.c +70 -20
  11. data/ext/{pf2c → pf2}/session.h +5 -0
  12. data/lib/pf2/cli.rb +3 -11
  13. data/lib/pf2/reporter/firefox_profiler_ser2.rb +17 -13
  14. data/lib/pf2/reporter/stack_weaver.rb +8 -0
  15. data/lib/pf2/reporter.rb +0 -1
  16. data/lib/pf2/version.rb +1 -1
  17. data/lib/pf2.rb +1 -1
  18. metadata +18 -135
  19. data/Cargo.lock +0 -630
  20. data/Cargo.toml +0 -3
  21. data/crates/backtrace-sys2/.gitignore +0 -1
  22. data/crates/backtrace-sys2/Cargo.toml +0 -9
  23. data/crates/backtrace-sys2/build.rs +0 -45
  24. data/crates/backtrace-sys2/src/lib.rs +0 -5
  25. data/crates/backtrace-sys2/src/libbacktrace/.gitignore +0 -15
  26. data/crates/backtrace-sys2/src/libbacktrace/Isaac.Newton-Opticks.txt +0 -9286
  27. data/crates/backtrace-sys2/src/libbacktrace/LICENSE +0 -29
  28. data/crates/backtrace-sys2/src/libbacktrace/Makefile.am +0 -708
  29. data/crates/backtrace-sys2/src/libbacktrace/Makefile.in +0 -2820
  30. data/crates/backtrace-sys2/src/libbacktrace/README.md +0 -46
  31. data/crates/backtrace-sys2/src/libbacktrace/aclocal.m4 +0 -864
  32. data/crates/backtrace-sys2/src/libbacktrace/alloc.c +0 -167
  33. data/crates/backtrace-sys2/src/libbacktrace/allocfail.c +0 -136
  34. data/crates/backtrace-sys2/src/libbacktrace/allocfail.sh +0 -104
  35. data/crates/backtrace-sys2/src/libbacktrace/atomic.c +0 -113
  36. data/crates/backtrace-sys2/src/libbacktrace/backtrace-supported.h.in +0 -66
  37. data/crates/backtrace-sys2/src/libbacktrace/backtrace.c +0 -129
  38. data/crates/backtrace-sys2/src/libbacktrace/backtrace.h +0 -189
  39. data/crates/backtrace-sys2/src/libbacktrace/btest.c +0 -517
  40. data/crates/backtrace-sys2/src/libbacktrace/compile +0 -348
  41. data/crates/backtrace-sys2/src/libbacktrace/config/enable.m4 +0 -38
  42. data/crates/backtrace-sys2/src/libbacktrace/config/lead-dot.m4 +0 -31
  43. data/crates/backtrace-sys2/src/libbacktrace/config/libtool.m4 +0 -7545
  44. data/crates/backtrace-sys2/src/libbacktrace/config/ltoptions.m4 +0 -369
  45. data/crates/backtrace-sys2/src/libbacktrace/config/ltsugar.m4 +0 -123
  46. data/crates/backtrace-sys2/src/libbacktrace/config/ltversion.m4 +0 -23
  47. data/crates/backtrace-sys2/src/libbacktrace/config/lt~obsolete.m4 +0 -98
  48. data/crates/backtrace-sys2/src/libbacktrace/config/multi.m4 +0 -68
  49. data/crates/backtrace-sys2/src/libbacktrace/config/override.m4 +0 -117
  50. data/crates/backtrace-sys2/src/libbacktrace/config/unwind_ipinfo.m4 +0 -37
  51. data/crates/backtrace-sys2/src/libbacktrace/config/warnings.m4 +0 -227
  52. data/crates/backtrace-sys2/src/libbacktrace/config.guess +0 -1700
  53. data/crates/backtrace-sys2/src/libbacktrace/config.h.in +0 -185
  54. data/crates/backtrace-sys2/src/libbacktrace/config.sub +0 -1885
  55. data/crates/backtrace-sys2/src/libbacktrace/configure +0 -15929
  56. data/crates/backtrace-sys2/src/libbacktrace/configure.ac +0 -632
  57. data/crates/backtrace-sys2/src/libbacktrace/dwarf.c +0 -4409
  58. data/crates/backtrace-sys2/src/libbacktrace/edtest.c +0 -120
  59. data/crates/backtrace-sys2/src/libbacktrace/edtest2.c +0 -43
  60. data/crates/backtrace-sys2/src/libbacktrace/elf.c +0 -7465
  61. data/crates/backtrace-sys2/src/libbacktrace/fileline.c +0 -407
  62. data/crates/backtrace-sys2/src/libbacktrace/filenames.h +0 -52
  63. data/crates/backtrace-sys2/src/libbacktrace/filetype.awk +0 -13
  64. data/crates/backtrace-sys2/src/libbacktrace/install-debuginfo-for-buildid.sh.in +0 -65
  65. data/crates/backtrace-sys2/src/libbacktrace/install-sh +0 -501
  66. data/crates/backtrace-sys2/src/libbacktrace/instrumented_alloc.c +0 -114
  67. data/crates/backtrace-sys2/src/libbacktrace/internal.h +0 -428
  68. data/crates/backtrace-sys2/src/libbacktrace/ltmain.sh +0 -8636
  69. data/crates/backtrace-sys2/src/libbacktrace/macho.c +0 -1361
  70. data/crates/backtrace-sys2/src/libbacktrace/missing +0 -215
  71. data/crates/backtrace-sys2/src/libbacktrace/mmap.c +0 -331
  72. data/crates/backtrace-sys2/src/libbacktrace/mmapio.c +0 -110
  73. data/crates/backtrace-sys2/src/libbacktrace/move-if-change +0 -83
  74. data/crates/backtrace-sys2/src/libbacktrace/mtest.c +0 -410
  75. data/crates/backtrace-sys2/src/libbacktrace/nounwind.c +0 -66
  76. data/crates/backtrace-sys2/src/libbacktrace/pecoff.c +0 -1123
  77. data/crates/backtrace-sys2/src/libbacktrace/posix.c +0 -104
  78. data/crates/backtrace-sys2/src/libbacktrace/print.c +0 -117
  79. data/crates/backtrace-sys2/src/libbacktrace/read.c +0 -110
  80. data/crates/backtrace-sys2/src/libbacktrace/simple.c +0 -108
  81. data/crates/backtrace-sys2/src/libbacktrace/sort.c +0 -108
  82. data/crates/backtrace-sys2/src/libbacktrace/state.c +0 -72
  83. data/crates/backtrace-sys2/src/libbacktrace/stest.c +0 -137
  84. data/crates/backtrace-sys2/src/libbacktrace/test-driver +0 -148
  85. data/crates/backtrace-sys2/src/libbacktrace/test_format.c +0 -55
  86. data/crates/backtrace-sys2/src/libbacktrace/testlib.c +0 -234
  87. data/crates/backtrace-sys2/src/libbacktrace/testlib.h +0 -110
  88. data/crates/backtrace-sys2/src/libbacktrace/ttest.c +0 -161
  89. data/crates/backtrace-sys2/src/libbacktrace/unittest.c +0 -92
  90. data/crates/backtrace-sys2/src/libbacktrace/unknown.c +0 -65
  91. data/crates/backtrace-sys2/src/libbacktrace/xcoff.c +0 -1617
  92. data/crates/backtrace-sys2/src/libbacktrace/xztest.c +0 -508
  93. data/crates/backtrace-sys2/src/libbacktrace/zstdtest.c +0 -523
  94. data/crates/backtrace-sys2/src/libbacktrace/ztest.c +0 -541
  95. data/ext/pf2/Cargo.toml +0 -25
  96. data/ext/pf2/build.rs +0 -10
  97. data/ext/pf2/src/backtrace.rs +0 -127
  98. data/ext/pf2/src/lib.rs +0 -22
  99. data/ext/pf2/src/profile.rs +0 -69
  100. data/ext/pf2/src/profile_serializer.rs +0 -241
  101. data/ext/pf2/src/ringbuffer.rs +0 -150
  102. data/ext/pf2/src/ruby_c_api_helper.c +0 -6
  103. data/ext/pf2/src/ruby_init.rs +0 -40
  104. data/ext/pf2/src/ruby_internal_apis.rs +0 -77
  105. data/ext/pf2/src/sample.rs +0 -67
  106. data/ext/pf2/src/scheduler.rs +0 -10
  107. data/ext/pf2/src/serialization/profile.rs +0 -48
  108. data/ext/pf2/src/serialization/serializer.rs +0 -329
  109. data/ext/pf2/src/serialization.rs +0 -2
  110. data/ext/pf2/src/session/configuration.rs +0 -114
  111. data/ext/pf2/src/session/new_thread_watcher.rs +0 -80
  112. data/ext/pf2/src/session/ruby_object.rs +0 -90
  113. data/ext/pf2/src/session.rs +0 -248
  114. data/ext/pf2/src/siginfo_t.c +0 -5
  115. data/ext/pf2/src/signal_scheduler.rs +0 -201
  116. data/ext/pf2/src/signal_scheduler_unsupported_platform.rs +0 -39
  117. data/ext/pf2/src/timer_thread_scheduler.rs +0 -179
  118. data/ext/pf2/src/util.rs +0 -31
  119. data/ext/pf2c/extconf.rb +0 -21
  120. data/lib/pf2/reporter/firefox_profiler.rb +0 -397
  121. data/rust-toolchain.toml +0 -2
  122. data/rustfmt.toml +0 -1
  123. /data/ext/{pf2c → pf2}/backtrace_state.c +0 -0
  124. /data/ext/{pf2c → pf2}/backtrace_state.h +0 -0
  125. /data/ext/{pf2c → pf2}/configuration.c +0 -0
  126. /data/ext/{pf2c → pf2}/configuration.h +0 -0
  127. /data/ext/{pf2c → pf2}/pf2.c +0 -0
  128. /data/ext/{pf2c → pf2}/pf2.h +0 -0
  129. /data/ext/{pf2c → pf2}/ringbuffer.c +0 -0
  130. /data/ext/{pf2c → pf2}/ringbuffer.h +0 -0
  131. /data/ext/{pf2c → pf2}/serializer.h +0 -0
data/Cargo.lock DELETED
@@ -1,630 +0,0 @@
1
- # This file is automatically @generated by Cargo.
2
- # It is not intended for manual editing.
3
- version = 3
4
-
5
- [[package]]
6
- name = "aho-corasick"
7
- version = "1.1.2"
8
- source = "registry+https://github.com/rust-lang/crates.io-index"
9
- checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0"
10
- dependencies = [
11
- "memchr",
12
- ]
13
-
14
- [[package]]
15
- name = "anstream"
16
- version = "0.6.11"
17
- source = "registry+https://github.com/rust-lang/crates.io-index"
18
- checksum = "6e2e1ebcb11de5c03c67de28a7df593d32191b44939c482e97702baaaa6ab6a5"
19
- dependencies = [
20
- "anstyle",
21
- "anstyle-parse",
22
- "anstyle-query",
23
- "anstyle-wincon",
24
- "colorchoice",
25
- "utf8parse",
26
- ]
27
-
28
- [[package]]
29
- name = "anstyle"
30
- version = "1.0.4"
31
- source = "registry+https://github.com/rust-lang/crates.io-index"
32
- checksum = "7079075b41f533b8c61d2a4d073c4676e1f8b249ff94a393b0595db304e0dd87"
33
-
34
- [[package]]
35
- name = "anstyle-parse"
36
- version = "0.2.3"
37
- source = "registry+https://github.com/rust-lang/crates.io-index"
38
- checksum = "c75ac65da39e5fe5ab759307499ddad880d724eed2f6ce5b5e8a26f4f387928c"
39
- dependencies = [
40
- "utf8parse",
41
- ]
42
-
43
- [[package]]
44
- name = "anstyle-query"
45
- version = "1.0.2"
46
- source = "registry+https://github.com/rust-lang/crates.io-index"
47
- checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648"
48
- dependencies = [
49
- "windows-sys 0.52.0",
50
- ]
51
-
52
- [[package]]
53
- name = "anstyle-wincon"
54
- version = "3.0.2"
55
- source = "registry+https://github.com/rust-lang/crates.io-index"
56
- checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7"
57
- dependencies = [
58
- "anstyle",
59
- "windows-sys 0.52.0",
60
- ]
61
-
62
- [[package]]
63
- name = "backtrace-sys2"
64
- version = "0.1.0"
65
- dependencies = [
66
- "bindgen",
67
- ]
68
-
69
- [[package]]
70
- name = "bindgen"
71
- version = "0.69.2"
72
- source = "registry+https://github.com/rust-lang/crates.io-index"
73
- checksum = "a4c69fae65a523209d34240b60abe0c42d33d1045d445c0839d8a4894a736e2d"
74
- dependencies = [
75
- "bitflags",
76
- "cexpr",
77
- "clang-sys",
78
- "lazy_static",
79
- "lazycell",
80
- "log",
81
- "peeking_take_while",
82
- "prettyplease",
83
- "proc-macro2",
84
- "quote",
85
- "regex",
86
- "rustc-hash",
87
- "shlex",
88
- "syn",
89
- "which",
90
- ]
91
-
92
- [[package]]
93
- name = "bitflags"
94
- version = "2.4.1"
95
- source = "registry+https://github.com/rust-lang/crates.io-index"
96
- checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07"
97
-
98
- [[package]]
99
- name = "cc"
100
- version = "1.0.83"
101
- source = "registry+https://github.com/rust-lang/crates.io-index"
102
- checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0"
103
- dependencies = [
104
- "libc",
105
- ]
106
-
107
- [[package]]
108
- name = "cexpr"
109
- version = "0.6.0"
110
- source = "registry+https://github.com/rust-lang/crates.io-index"
111
- checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
112
- dependencies = [
113
- "nom",
114
- ]
115
-
116
- [[package]]
117
- name = "cfg-if"
118
- version = "1.0.0"
119
- source = "registry+https://github.com/rust-lang/crates.io-index"
120
- checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
121
-
122
- [[package]]
123
- name = "clang-sys"
124
- version = "1.6.1"
125
- source = "registry+https://github.com/rust-lang/crates.io-index"
126
- checksum = "c688fc74432808e3eb684cae8830a86be1d66a2bd58e1f248ed0960a590baf6f"
127
- dependencies = [
128
- "glob",
129
- "libc",
130
- "libloading",
131
- ]
132
-
133
- [[package]]
134
- name = "colorchoice"
135
- version = "1.0.0"
136
- source = "registry+https://github.com/rust-lang/crates.io-index"
137
- checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7"
138
-
139
- [[package]]
140
- name = "either"
141
- version = "1.9.0"
142
- source = "registry+https://github.com/rust-lang/crates.io-index"
143
- checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07"
144
-
145
- [[package]]
146
- name = "env_filter"
147
- version = "0.1.0"
148
- source = "registry+https://github.com/rust-lang/crates.io-index"
149
- checksum = "a009aa4810eb158359dda09d0c87378e4bbb89b5a801f016885a4707ba24f7ea"
150
- dependencies = [
151
- "log",
152
- "regex",
153
- ]
154
-
155
- [[package]]
156
- name = "env_logger"
157
- version = "0.11.0"
158
- source = "registry+https://github.com/rust-lang/crates.io-index"
159
- checksum = "9eeb342678d785662fd2514be38c459bb925f02b68dd2a3e0f21d7ef82d979dd"
160
- dependencies = [
161
- "anstream",
162
- "anstyle",
163
- "env_filter",
164
- "humantime",
165
- "log",
166
- ]
167
-
168
- [[package]]
169
- name = "errno"
170
- version = "0.3.8"
171
- source = "registry+https://github.com/rust-lang/crates.io-index"
172
- checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245"
173
- dependencies = [
174
- "libc",
175
- "windows-sys 0.52.0",
176
- ]
177
-
178
- [[package]]
179
- name = "glob"
180
- version = "0.3.1"
181
- source = "registry+https://github.com/rust-lang/crates.io-index"
182
- checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
183
-
184
- [[package]]
185
- name = "home"
186
- version = "0.5.9"
187
- source = "registry+https://github.com/rust-lang/crates.io-index"
188
- checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5"
189
- dependencies = [
190
- "windows-sys 0.52.0",
191
- ]
192
-
193
- [[package]]
194
- name = "humantime"
195
- version = "2.1.0"
196
- source = "registry+https://github.com/rust-lang/crates.io-index"
197
- checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
198
-
199
- [[package]]
200
- name = "itoa"
201
- version = "1.0.9"
202
- source = "registry+https://github.com/rust-lang/crates.io-index"
203
- checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
204
-
205
- [[package]]
206
- name = "lazy_static"
207
- version = "1.4.0"
208
- source = "registry+https://github.com/rust-lang/crates.io-index"
209
- checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
210
-
211
- [[package]]
212
- name = "lazycell"
213
- version = "1.3.0"
214
- source = "registry+https://github.com/rust-lang/crates.io-index"
215
- checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
216
-
217
- [[package]]
218
- name = "libc"
219
- version = "0.2.149"
220
- source = "registry+https://github.com/rust-lang/crates.io-index"
221
- checksum = "a08173bc88b7955d1b3145aa561539096c421ac8debde8cbc3612ec635fee29b"
222
-
223
- [[package]]
224
- name = "libloading"
225
- version = "0.7.4"
226
- source = "registry+https://github.com/rust-lang/crates.io-index"
227
- checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f"
228
- dependencies = [
229
- "cfg-if",
230
- "winapi",
231
- ]
232
-
233
- [[package]]
234
- name = "linux-raw-sys"
235
- version = "0.4.13"
236
- source = "registry+https://github.com/rust-lang/crates.io-index"
237
- checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c"
238
-
239
- [[package]]
240
- name = "log"
241
- version = "0.4.20"
242
- source = "registry+https://github.com/rust-lang/crates.io-index"
243
- checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
244
-
245
- [[package]]
246
- name = "memchr"
247
- version = "2.6.4"
248
- source = "registry+https://github.com/rust-lang/crates.io-index"
249
- checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167"
250
-
251
- [[package]]
252
- name = "minimal-lexical"
253
- version = "0.2.1"
254
- source = "registry+https://github.com/rust-lang/crates.io-index"
255
- checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
256
-
257
- [[package]]
258
- name = "nom"
259
- version = "7.1.3"
260
- source = "registry+https://github.com/rust-lang/crates.io-index"
261
- checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
262
- dependencies = [
263
- "memchr",
264
- "minimal-lexical",
265
- ]
266
-
267
- [[package]]
268
- name = "once_cell"
269
- version = "1.19.0"
270
- source = "registry+https://github.com/rust-lang/crates.io-index"
271
- checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
272
-
273
- [[package]]
274
- name = "peeking_take_while"
275
- version = "0.1.2"
276
- source = "registry+https://github.com/rust-lang/crates.io-index"
277
- checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099"
278
-
279
- [[package]]
280
- name = "pf2"
281
- version = "0.1.0"
282
- dependencies = [
283
- "backtrace-sys2",
284
- "cc",
285
- "env_logger",
286
- "libc",
287
- "log",
288
- "rb-sys",
289
- "serde",
290
- "serde_derive",
291
- "serde_json",
292
- ]
293
-
294
- [[package]]
295
- name = "prettyplease"
296
- version = "0.2.16"
297
- source = "registry+https://github.com/rust-lang/crates.io-index"
298
- checksum = "a41cf62165e97c7f814d2221421dbb9afcbcdb0a88068e5ea206e19951c2cbb5"
299
- dependencies = [
300
- "proc-macro2",
301
- "syn",
302
- ]
303
-
304
- [[package]]
305
- name = "proc-macro2"
306
- version = "1.0.78"
307
- source = "registry+https://github.com/rust-lang/crates.io-index"
308
- checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae"
309
- dependencies = [
310
- "unicode-ident",
311
- ]
312
-
313
- [[package]]
314
- name = "quote"
315
- version = "1.0.35"
316
- source = "registry+https://github.com/rust-lang/crates.io-index"
317
- checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
318
- dependencies = [
319
- "proc-macro2",
320
- ]
321
-
322
- [[package]]
323
- name = "rb-sys"
324
- version = "0.9.105"
325
- source = "registry+https://github.com/rust-lang/crates.io-index"
326
- checksum = "4b3a1f3ce8e7c36d777d52fe7a99039fe4fea7c8ec355a4c4f3a17f92a14029f"
327
- dependencies = [
328
- "rb-sys-build",
329
- ]
330
-
331
- [[package]]
332
- name = "rb-sys-build"
333
- version = "0.9.105"
334
- source = "registry+https://github.com/rust-lang/crates.io-index"
335
- checksum = "3e6b246c29c0809e1cbe60a1ba9e093da72a4676d02adc68469297d1e589bbf0"
336
- dependencies = [
337
- "bindgen",
338
- "lazy_static",
339
- "proc-macro2",
340
- "quote",
341
- "regex",
342
- "shell-words",
343
- "syn",
344
- ]
345
-
346
- [[package]]
347
- name = "regex"
348
- version = "1.10.2"
349
- source = "registry+https://github.com/rust-lang/crates.io-index"
350
- checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343"
351
- dependencies = [
352
- "aho-corasick",
353
- "memchr",
354
- "regex-automata",
355
- "regex-syntax",
356
- ]
357
-
358
- [[package]]
359
- name = "regex-automata"
360
- version = "0.4.3"
361
- source = "registry+https://github.com/rust-lang/crates.io-index"
362
- checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f"
363
- dependencies = [
364
- "aho-corasick",
365
- "memchr",
366
- "regex-syntax",
367
- ]
368
-
369
- [[package]]
370
- name = "regex-syntax"
371
- version = "0.8.2"
372
- source = "registry+https://github.com/rust-lang/crates.io-index"
373
- checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f"
374
-
375
- [[package]]
376
- name = "rustc-hash"
377
- version = "1.1.0"
378
- source = "registry+https://github.com/rust-lang/crates.io-index"
379
- checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
380
-
381
- [[package]]
382
- name = "rustix"
383
- version = "0.38.21"
384
- source = "registry+https://github.com/rust-lang/crates.io-index"
385
- checksum = "2b426b0506e5d50a7d8dafcf2e81471400deb602392c7dd110815afb4eaf02a3"
386
- dependencies = [
387
- "bitflags",
388
- "errno",
389
- "libc",
390
- "linux-raw-sys",
391
- "windows-sys 0.48.0",
392
- ]
393
-
394
- [[package]]
395
- name = "ryu"
396
- version = "1.0.15"
397
- source = "registry+https://github.com/rust-lang/crates.io-index"
398
- checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741"
399
-
400
- [[package]]
401
- name = "serde"
402
- version = "1.0.189"
403
- source = "registry+https://github.com/rust-lang/crates.io-index"
404
- checksum = "8e422a44e74ad4001bdc8eede9a4570ab52f71190e9c076d14369f38b9200537"
405
- dependencies = [
406
- "serde_derive",
407
- ]
408
-
409
- [[package]]
410
- name = "serde_derive"
411
- version = "1.0.189"
412
- source = "registry+https://github.com/rust-lang/crates.io-index"
413
- checksum = "1e48d1f918009ce3145511378cf68d613e3b3d9137d67272562080d68a2b32d5"
414
- dependencies = [
415
- "proc-macro2",
416
- "quote",
417
- "syn",
418
- ]
419
-
420
- [[package]]
421
- name = "serde_json"
422
- version = "1.0.107"
423
- source = "registry+https://github.com/rust-lang/crates.io-index"
424
- checksum = "6b420ce6e3d8bd882e9b243c6eed35dbc9a6110c9769e74b584e0d68d1f20c65"
425
- dependencies = [
426
- "itoa",
427
- "ryu",
428
- "serde",
429
- ]
430
-
431
- [[package]]
432
- name = "shell-words"
433
- version = "1.1.0"
434
- source = "registry+https://github.com/rust-lang/crates.io-index"
435
- checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde"
436
-
437
- [[package]]
438
- name = "shlex"
439
- version = "1.3.0"
440
- source = "registry+https://github.com/rust-lang/crates.io-index"
441
- checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
442
-
443
- [[package]]
444
- name = "syn"
445
- version = "2.0.48"
446
- source = "registry+https://github.com/rust-lang/crates.io-index"
447
- checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f"
448
- dependencies = [
449
- "proc-macro2",
450
- "quote",
451
- "unicode-ident",
452
- ]
453
-
454
- [[package]]
455
- name = "unicode-ident"
456
- version = "1.0.12"
457
- source = "registry+https://github.com/rust-lang/crates.io-index"
458
- checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
459
-
460
- [[package]]
461
- name = "utf8parse"
462
- version = "0.2.1"
463
- source = "registry+https://github.com/rust-lang/crates.io-index"
464
- checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a"
465
-
466
- [[package]]
467
- name = "which"
468
- version = "4.4.2"
469
- source = "registry+https://github.com/rust-lang/crates.io-index"
470
- checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7"
471
- dependencies = [
472
- "either",
473
- "home",
474
- "once_cell",
475
- "rustix",
476
- ]
477
-
478
- [[package]]
479
- name = "winapi"
480
- version = "0.3.9"
481
- source = "registry+https://github.com/rust-lang/crates.io-index"
482
- checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
483
- dependencies = [
484
- "winapi-i686-pc-windows-gnu",
485
- "winapi-x86_64-pc-windows-gnu",
486
- ]
487
-
488
- [[package]]
489
- name = "winapi-i686-pc-windows-gnu"
490
- version = "0.4.0"
491
- source = "registry+https://github.com/rust-lang/crates.io-index"
492
- checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
493
-
494
- [[package]]
495
- name = "winapi-x86_64-pc-windows-gnu"
496
- version = "0.4.0"
497
- source = "registry+https://github.com/rust-lang/crates.io-index"
498
- checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
499
-
500
- [[package]]
501
- name = "windows-sys"
502
- version = "0.48.0"
503
- source = "registry+https://github.com/rust-lang/crates.io-index"
504
- checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
505
- dependencies = [
506
- "windows-targets 0.48.5",
507
- ]
508
-
509
- [[package]]
510
- name = "windows-sys"
511
- version = "0.52.0"
512
- source = "registry+https://github.com/rust-lang/crates.io-index"
513
- checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
514
- dependencies = [
515
- "windows-targets 0.52.0",
516
- ]
517
-
518
- [[package]]
519
- name = "windows-targets"
520
- version = "0.48.5"
521
- source = "registry+https://github.com/rust-lang/crates.io-index"
522
- checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
523
- dependencies = [
524
- "windows_aarch64_gnullvm 0.48.5",
525
- "windows_aarch64_msvc 0.48.5",
526
- "windows_i686_gnu 0.48.5",
527
- "windows_i686_msvc 0.48.5",
528
- "windows_x86_64_gnu 0.48.5",
529
- "windows_x86_64_gnullvm 0.48.5",
530
- "windows_x86_64_msvc 0.48.5",
531
- ]
532
-
533
- [[package]]
534
- name = "windows-targets"
535
- version = "0.52.0"
536
- source = "registry+https://github.com/rust-lang/crates.io-index"
537
- checksum = "8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd"
538
- dependencies = [
539
- "windows_aarch64_gnullvm 0.52.0",
540
- "windows_aarch64_msvc 0.52.0",
541
- "windows_i686_gnu 0.52.0",
542
- "windows_i686_msvc 0.52.0",
543
- "windows_x86_64_gnu 0.52.0",
544
- "windows_x86_64_gnullvm 0.52.0",
545
- "windows_x86_64_msvc 0.52.0",
546
- ]
547
-
548
- [[package]]
549
- name = "windows_aarch64_gnullvm"
550
- version = "0.48.5"
551
- source = "registry+https://github.com/rust-lang/crates.io-index"
552
- checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
553
-
554
- [[package]]
555
- name = "windows_aarch64_gnullvm"
556
- version = "0.52.0"
557
- source = "registry+https://github.com/rust-lang/crates.io-index"
558
- checksum = "cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea"
559
-
560
- [[package]]
561
- name = "windows_aarch64_msvc"
562
- version = "0.48.5"
563
- source = "registry+https://github.com/rust-lang/crates.io-index"
564
- checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
565
-
566
- [[package]]
567
- name = "windows_aarch64_msvc"
568
- version = "0.52.0"
569
- source = "registry+https://github.com/rust-lang/crates.io-index"
570
- checksum = "bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef"
571
-
572
- [[package]]
573
- name = "windows_i686_gnu"
574
- version = "0.48.5"
575
- source = "registry+https://github.com/rust-lang/crates.io-index"
576
- checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
577
-
578
- [[package]]
579
- name = "windows_i686_gnu"
580
- version = "0.52.0"
581
- source = "registry+https://github.com/rust-lang/crates.io-index"
582
- checksum = "a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313"
583
-
584
- [[package]]
585
- name = "windows_i686_msvc"
586
- version = "0.48.5"
587
- source = "registry+https://github.com/rust-lang/crates.io-index"
588
- checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
589
-
590
- [[package]]
591
- name = "windows_i686_msvc"
592
- version = "0.52.0"
593
- source = "registry+https://github.com/rust-lang/crates.io-index"
594
- checksum = "ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a"
595
-
596
- [[package]]
597
- name = "windows_x86_64_gnu"
598
- version = "0.48.5"
599
- source = "registry+https://github.com/rust-lang/crates.io-index"
600
- checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
601
-
602
- [[package]]
603
- name = "windows_x86_64_gnu"
604
- version = "0.52.0"
605
- source = "registry+https://github.com/rust-lang/crates.io-index"
606
- checksum = "3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd"
607
-
608
- [[package]]
609
- name = "windows_x86_64_gnullvm"
610
- version = "0.48.5"
611
- source = "registry+https://github.com/rust-lang/crates.io-index"
612
- checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
613
-
614
- [[package]]
615
- name = "windows_x86_64_gnullvm"
616
- version = "0.52.0"
617
- source = "registry+https://github.com/rust-lang/crates.io-index"
618
- checksum = "1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e"
619
-
620
- [[package]]
621
- name = "windows_x86_64_msvc"
622
- version = "0.48.5"
623
- source = "registry+https://github.com/rust-lang/crates.io-index"
624
- checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
625
-
626
- [[package]]
627
- name = "windows_x86_64_msvc"
628
- version = "0.52.0"
629
- source = "registry+https://github.com/rust-lang/crates.io-index"
630
- checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04"
data/Cargo.toml DELETED
@@ -1,3 +0,0 @@
1
- [workspace]
2
- members = ["./ext/pf2", "./crates/backtrace-sys2"]
3
- resolver = "2"
@@ -1 +0,0 @@
1
- /target
@@ -1,9 +0,0 @@
1
- [package]
2
- name = "backtrace-sys2"
3
- version = "0.1.0"
4
- edition = "2021"
5
-
6
- # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7
-
8
- [build-dependencies]
9
- bindgen = "0.69.2"
@@ -1,45 +0,0 @@
1
- use std::env;
2
- use std::path::Path;
3
- use std::path::PathBuf;
4
- use std::process::Command;
5
-
6
- fn main() {
7
- let libbacktrace_src_dir = Path::new("src/libbacktrace").canonicalize().unwrap();
8
-
9
- // Run ./configure
10
- let configure_status = Command::new("./configure")
11
- .current_dir(&libbacktrace_src_dir)
12
- .status()
13
- .expect("libbacktrace: ./configure failed");
14
- if !configure_status.success() {
15
- panic!("libbacktrace: ./configure failed");
16
- }
17
-
18
- // Run make
19
- let make_status = Command::new("make")
20
- .current_dir(&libbacktrace_src_dir)
21
- .status()
22
- .expect("libbacktrace: make failed");
23
- if !make_status.success() {
24
- panic!("libbacktrace: make failed");
25
- }
26
-
27
- // Generate bindings
28
- let bindings = bindgen::Builder::default()
29
- .header(format!("{}/backtrace.h", libbacktrace_src_dir.display()))
30
- .allowlist_function("backtrace_.*")
31
- .generate_comments(true)
32
- .parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
33
- .generate()
34
- .expect("Failed to generate bindings");
35
-
36
- // Output bindings to the src directory
37
- let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
38
- bindings
39
- .write_to_file(out_path.join("backtrace_bindings.rs"))
40
- .expect("Failed to write bindings");
41
-
42
- println!("cargo:rerun-if-changed=build.rs");
43
- println!("cargo:rustc-link-search=native={}", libbacktrace_src_dir.join(".libs").display());
44
- println!("cargo:rustc-link-lib=static=backtrace");
45
- }
@@ -1,5 +0,0 @@
1
- #![allow(non_upper_case_globals)]
2
- #![allow(non_camel_case_types)]
3
- #![allow(non_snake_case)]
4
-
5
- include!(concat!(env!("OUT_DIR"), "/backtrace_bindings.rs"));