gef-file-to-map 0.2.0__tar.gz → 1.0.0__tar.gz

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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": ["config:recommended", "group:allNonMajor"]
3
+ }
@@ -12,16 +12,19 @@ jobs:
12
12
  linux:
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
- - uses: actions/checkout@v3
16
-
15
+ - uses: actions/checkout@v5
16
+ - uses: actions-rs/toolchain@v1
17
+ with:
18
+ toolchain: stable
19
+ profile: minimal
20
+ default: true
17
21
  - uses: PyO3/maturin-action@v1
18
22
  with:
19
23
  manylinux: auto
20
24
  command: build
21
25
  args: --release --sdist -o dist
22
-
23
26
  - name: Upload wheels
24
- uses: actions/upload-artifact@v4
27
+ uses: actions/upload-artifact@v5
25
28
  with:
26
29
  name: wheels-linux
27
30
  path: dist
@@ -29,15 +32,18 @@ jobs:
29
32
  windows:
30
33
  runs-on: windows-latest
31
34
  steps:
32
- - uses: actions/checkout@v3
33
-
35
+ - uses: actions/checkout@v5
36
+ - uses: actions-rs/toolchain@v1
37
+ with:
38
+ toolchain: stable
39
+ profile: minimal
40
+ default: true
34
41
  - uses: PyO3/maturin-action@v1
35
42
  with:
36
43
  command: build
37
44
  args: --release -o dist
38
-
39
45
  - name: Upload wheels
40
- uses: actions/upload-artifact@v4
46
+ uses: actions/upload-artifact@v5
41
47
  with:
42
48
  name: wheels-windows
43
49
  path: dist
@@ -45,15 +51,18 @@ jobs:
45
51
  macos:
46
52
  runs-on: macos-latest
47
53
  steps:
48
- - uses: actions/checkout@v3
49
-
54
+ - uses: actions/checkout@v5
55
+ - uses: actions-rs/toolchain@v1
56
+ with:
57
+ toolchain: stable
58
+ profile: minimal
59
+ default: true
50
60
  - uses: PyO3/maturin-action@v1
51
61
  with:
52
62
  command: build
53
63
  args: --release -o dist
54
-
55
64
  - name: Upload wheels
56
- uses: actions/upload-artifact@v4
65
+ uses: actions/upload-artifact@v5
57
66
  with:
58
67
  name: wheels-macos
59
68
  path: dist
@@ -74,10 +83,10 @@ jobs:
74
83
  # Used to generate artifact attestation
75
84
  attestations: write
76
85
  steps:
77
- - uses: actions/download-artifact@v4
86
+ - uses: actions/download-artifact@v6
78
87
 
79
88
  - name: Generate artifact attestation
80
- uses: actions/attest-build-provenance@v1
89
+ uses: actions/attest-build-provenance@v3
81
90
  with:
82
91
  subject-path: "wheels-*/*"
83
92
 
@@ -0,0 +1,17 @@
1
+ # Generated by Cargo
2
+ # will have compiled files and executables
3
+ /target/
4
+
5
+ # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
6
+ # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
7
+ Cargo.lock
8
+
9
+ # These are backup files generated by rustfmt
10
+ **/*.rs.bk
11
+
12
+
13
+ # Added by cargo
14
+
15
+ /target
16
+
17
+ .env
@@ -0,0 +1,65 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ ## [1.0.0] - 2025-10-31
6
+
7
+ ### Bug Fixes
8
+
9
+ - *Deps*:
10
+ - Update rust crates pyo3, winnow and thiserror
11
+ - Update rust crate pyo3 to 0.27.0
12
+ - Update rust crate pyo3 to 0.26.0
13
+ - Update rust crate pyo3 to 0.25.0
14
+ - *Python*: [**BREAKING**]Bump minimum supported Python version to 3.11
15
+
16
+ ## [0.2.1] - 2025-07-22
17
+
18
+ ### Bug Fixes
19
+ - *Header*: Allow empty header values
20
+
21
+ ### Documentation
22
+ - *Readme*: Don't link to specific version in PyPi badge
23
+
24
+ ### Miscellaneous Tasks
25
+ - *Ci*: Move from dependabot to renovate
26
+
27
+ ### Testing
28
+ - *Bench*: Add benchmarks
29
+
30
+ ## [0.2.0] - 2025-03-10
31
+
32
+ ### Bug Fixes
33
+ - *Ci*: Manually install Rust pipeline in CI
34
+ - *Deps*: Update nom to 8
35
+
36
+ ### Refactor
37
+ - *Deps*: Migrate nom to winnow 0.3
38
+ - *Parsing*: [**BREAKING**]Improve parsing of headers and add better error reporting
39
+
40
+ ## [0.1.1] - 2025-03-10
41
+
42
+ ### Bug Fixes
43
+ - *Ci*: Fix publishing CI
44
+
45
+ ### Documentation
46
+ - Fix error in example
47
+ - Add pypi version badge
48
+
49
+ ### Miscellaneous Tasks
50
+ - *Ci*: Only run release CI on tags
51
+ - Update dependencies
52
+ - Update dependencies
53
+
54
+ ## [0.1.0] - 2023-02-22
55
+
56
+ ### Bug Fixes
57
+
58
+ - *Ci*:
59
+ - Copy wheel generation from @messense
60
+ - Require minimum Python version of 3.8
61
+
62
+ ### Refactor
63
+ - Move from pygef repo
64
+
65
+ <!-- CEMS BV. -->
@@ -0,0 +1,435 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "anstyle"
7
+ version = "1.0.13"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78"
10
+
11
+ [[package]]
12
+ name = "autocfg"
13
+ version = "1.5.0"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
16
+
17
+ [[package]]
18
+ name = "bitflags"
19
+ version = "2.10.0"
20
+ source = "registry+https://github.com/rust-lang/crates.io-index"
21
+ checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3"
22
+
23
+ [[package]]
24
+ name = "cfg-if"
25
+ version = "1.0.4"
26
+ source = "registry+https://github.com/rust-lang/crates.io-index"
27
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
28
+
29
+ [[package]]
30
+ name = "clap"
31
+ version = "4.5.51"
32
+ source = "registry+https://github.com/rust-lang/crates.io-index"
33
+ checksum = "4c26d721170e0295f191a69bd9a1f93efcdb0aff38684b61ab5750468972e5f5"
34
+ dependencies = [
35
+ "clap_builder",
36
+ ]
37
+
38
+ [[package]]
39
+ name = "clap_builder"
40
+ version = "4.5.51"
41
+ source = "registry+https://github.com/rust-lang/crates.io-index"
42
+ checksum = "75835f0c7bf681bfd05abe44e965760fea999a5286c6eb2d59883634fd02011a"
43
+ dependencies = [
44
+ "anstyle",
45
+ "clap_lex",
46
+ "terminal_size",
47
+ ]
48
+
49
+ [[package]]
50
+ name = "clap_lex"
51
+ version = "0.7.6"
52
+ source = "registry+https://github.com/rust-lang/crates.io-index"
53
+ checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d"
54
+
55
+ [[package]]
56
+ name = "condtype"
57
+ version = "1.3.0"
58
+ source = "registry+https://github.com/rust-lang/crates.io-index"
59
+ checksum = "baf0a07a401f374238ab8e2f11a104d2851bf9ce711ec69804834de8af45c7af"
60
+
61
+ [[package]]
62
+ name = "divan"
63
+ version = "0.1.21"
64
+ source = "registry+https://github.com/rust-lang/crates.io-index"
65
+ checksum = "a405457ec78b8fe08b0e32b4a3570ab5dff6dd16eb9e76a5ee0a9d9cbd898933"
66
+ dependencies = [
67
+ "cfg-if",
68
+ "clap",
69
+ "condtype",
70
+ "divan-macros",
71
+ "libc",
72
+ "regex-lite",
73
+ ]
74
+
75
+ [[package]]
76
+ name = "divan-macros"
77
+ version = "0.1.21"
78
+ source = "registry+https://github.com/rust-lang/crates.io-index"
79
+ checksum = "9556bc800956545d6420a640173e5ba7dfa82f38d3ea5a167eb555bc69ac3323"
80
+ dependencies = [
81
+ "proc-macro2",
82
+ "quote",
83
+ "syn",
84
+ ]
85
+
86
+ [[package]]
87
+ name = "either"
88
+ version = "1.15.0"
89
+ source = "registry+https://github.com/rust-lang/crates.io-index"
90
+ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
91
+
92
+ [[package]]
93
+ name = "errno"
94
+ version = "0.3.14"
95
+ source = "registry+https://github.com/rust-lang/crates.io-index"
96
+ checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
97
+ dependencies = [
98
+ "libc",
99
+ "windows-sys 0.61.2",
100
+ ]
101
+
102
+ [[package]]
103
+ name = "gef-file-to-map"
104
+ version = "1.0.0"
105
+ dependencies = [
106
+ "divan",
107
+ "itertools",
108
+ "pyo3",
109
+ "thiserror",
110
+ "winnow",
111
+ ]
112
+
113
+ [[package]]
114
+ name = "heck"
115
+ version = "0.5.0"
116
+ source = "registry+https://github.com/rust-lang/crates.io-index"
117
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
118
+
119
+ [[package]]
120
+ name = "indoc"
121
+ version = "2.0.7"
122
+ source = "registry+https://github.com/rust-lang/crates.io-index"
123
+ checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
124
+ dependencies = [
125
+ "rustversion",
126
+ ]
127
+
128
+ [[package]]
129
+ name = "itertools"
130
+ version = "0.14.0"
131
+ source = "registry+https://github.com/rust-lang/crates.io-index"
132
+ checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
133
+ dependencies = [
134
+ "either",
135
+ ]
136
+
137
+ [[package]]
138
+ name = "libc"
139
+ version = "0.2.177"
140
+ source = "registry+https://github.com/rust-lang/crates.io-index"
141
+ checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976"
142
+
143
+ [[package]]
144
+ name = "linux-raw-sys"
145
+ version = "0.11.0"
146
+ source = "registry+https://github.com/rust-lang/crates.io-index"
147
+ checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039"
148
+
149
+ [[package]]
150
+ name = "memchr"
151
+ version = "2.7.6"
152
+ source = "registry+https://github.com/rust-lang/crates.io-index"
153
+ checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
154
+
155
+ [[package]]
156
+ name = "memoffset"
157
+ version = "0.9.1"
158
+ source = "registry+https://github.com/rust-lang/crates.io-index"
159
+ checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
160
+ dependencies = [
161
+ "autocfg",
162
+ ]
163
+
164
+ [[package]]
165
+ name = "once_cell"
166
+ version = "1.21.3"
167
+ source = "registry+https://github.com/rust-lang/crates.io-index"
168
+ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
169
+
170
+ [[package]]
171
+ name = "portable-atomic"
172
+ version = "1.11.1"
173
+ source = "registry+https://github.com/rust-lang/crates.io-index"
174
+ checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483"
175
+
176
+ [[package]]
177
+ name = "proc-macro2"
178
+ version = "1.0.103"
179
+ source = "registry+https://github.com/rust-lang/crates.io-index"
180
+ checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8"
181
+ dependencies = [
182
+ "unicode-ident",
183
+ ]
184
+
185
+ [[package]]
186
+ name = "pyo3"
187
+ version = "0.27.1"
188
+ source = "registry+https://github.com/rust-lang/crates.io-index"
189
+ checksum = "37a6df7eab65fc7bee654a421404947e10a0f7085b6951bf2ea395f4659fb0cf"
190
+ dependencies = [
191
+ "indoc",
192
+ "libc",
193
+ "memoffset",
194
+ "once_cell",
195
+ "portable-atomic",
196
+ "pyo3-build-config",
197
+ "pyo3-ffi",
198
+ "pyo3-macros",
199
+ "unindent",
200
+ ]
201
+
202
+ [[package]]
203
+ name = "pyo3-build-config"
204
+ version = "0.27.1"
205
+ source = "registry+https://github.com/rust-lang/crates.io-index"
206
+ checksum = "f77d387774f6f6eec64a004eac0ed525aab7fa1966d94b42f743797b3e395afb"
207
+ dependencies = [
208
+ "target-lexicon",
209
+ ]
210
+
211
+ [[package]]
212
+ name = "pyo3-ffi"
213
+ version = "0.27.1"
214
+ source = "registry+https://github.com/rust-lang/crates.io-index"
215
+ checksum = "2dd13844a4242793e02df3e2ec093f540d948299a6a77ea9ce7afd8623f542be"
216
+ dependencies = [
217
+ "libc",
218
+ "pyo3-build-config",
219
+ ]
220
+
221
+ [[package]]
222
+ name = "pyo3-macros"
223
+ version = "0.27.1"
224
+ source = "registry+https://github.com/rust-lang/crates.io-index"
225
+ checksum = "eaf8f9f1108270b90d3676b8679586385430e5c0bb78bb5f043f95499c821a71"
226
+ dependencies = [
227
+ "proc-macro2",
228
+ "pyo3-macros-backend",
229
+ "quote",
230
+ "syn",
231
+ ]
232
+
233
+ [[package]]
234
+ name = "pyo3-macros-backend"
235
+ version = "0.27.1"
236
+ source = "registry+https://github.com/rust-lang/crates.io-index"
237
+ checksum = "70a3b2274450ba5288bc9b8c1b69ff569d1d61189d4bff38f8d22e03d17f932b"
238
+ dependencies = [
239
+ "heck",
240
+ "proc-macro2",
241
+ "pyo3-build-config",
242
+ "quote",
243
+ "syn",
244
+ ]
245
+
246
+ [[package]]
247
+ name = "quote"
248
+ version = "1.0.41"
249
+ source = "registry+https://github.com/rust-lang/crates.io-index"
250
+ checksum = "ce25767e7b499d1b604768e7cde645d14cc8584231ea6b295e9c9eb22c02e1d1"
251
+ dependencies = [
252
+ "proc-macro2",
253
+ ]
254
+
255
+ [[package]]
256
+ name = "regex-lite"
257
+ version = "0.1.8"
258
+ source = "registry+https://github.com/rust-lang/crates.io-index"
259
+ checksum = "8d942b98df5e658f56f20d592c7f868833fe38115e65c33003d8cd224b0155da"
260
+
261
+ [[package]]
262
+ name = "rustix"
263
+ version = "1.1.2"
264
+ source = "registry+https://github.com/rust-lang/crates.io-index"
265
+ checksum = "cd15f8a2c5551a84d56efdc1cd049089e409ac19a3072d5037a17fd70719ff3e"
266
+ dependencies = [
267
+ "bitflags",
268
+ "errno",
269
+ "libc",
270
+ "linux-raw-sys",
271
+ "windows-sys 0.61.2",
272
+ ]
273
+
274
+ [[package]]
275
+ name = "rustversion"
276
+ version = "1.0.22"
277
+ source = "registry+https://github.com/rust-lang/crates.io-index"
278
+ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
279
+
280
+ [[package]]
281
+ name = "syn"
282
+ version = "2.0.108"
283
+ source = "registry+https://github.com/rust-lang/crates.io-index"
284
+ checksum = "da58917d35242480a05c2897064da0a80589a2a0476c9a3f2fdc83b53502e917"
285
+ dependencies = [
286
+ "proc-macro2",
287
+ "quote",
288
+ "unicode-ident",
289
+ ]
290
+
291
+ [[package]]
292
+ name = "target-lexicon"
293
+ version = "0.13.3"
294
+ source = "registry+https://github.com/rust-lang/crates.io-index"
295
+ checksum = "df7f62577c25e07834649fc3b39fafdc597c0a3527dc1c60129201ccfcbaa50c"
296
+
297
+ [[package]]
298
+ name = "terminal_size"
299
+ version = "0.4.3"
300
+ source = "registry+https://github.com/rust-lang/crates.io-index"
301
+ checksum = "60b8cb979cb11c32ce1603f8137b22262a9d131aaa5c37b5678025f22b8becd0"
302
+ dependencies = [
303
+ "rustix",
304
+ "windows-sys 0.60.2",
305
+ ]
306
+
307
+ [[package]]
308
+ name = "thiserror"
309
+ version = "2.0.17"
310
+ source = "registry+https://github.com/rust-lang/crates.io-index"
311
+ checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8"
312
+ dependencies = [
313
+ "thiserror-impl",
314
+ ]
315
+
316
+ [[package]]
317
+ name = "thiserror-impl"
318
+ version = "2.0.17"
319
+ source = "registry+https://github.com/rust-lang/crates.io-index"
320
+ checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913"
321
+ dependencies = [
322
+ "proc-macro2",
323
+ "quote",
324
+ "syn",
325
+ ]
326
+
327
+ [[package]]
328
+ name = "unicode-ident"
329
+ version = "1.0.22"
330
+ source = "registry+https://github.com/rust-lang/crates.io-index"
331
+ checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"
332
+
333
+ [[package]]
334
+ name = "unindent"
335
+ version = "0.2.4"
336
+ source = "registry+https://github.com/rust-lang/crates.io-index"
337
+ checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
338
+
339
+ [[package]]
340
+ name = "windows-link"
341
+ version = "0.2.1"
342
+ source = "registry+https://github.com/rust-lang/crates.io-index"
343
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
344
+
345
+ [[package]]
346
+ name = "windows-sys"
347
+ version = "0.60.2"
348
+ source = "registry+https://github.com/rust-lang/crates.io-index"
349
+ checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
350
+ dependencies = [
351
+ "windows-targets",
352
+ ]
353
+
354
+ [[package]]
355
+ name = "windows-sys"
356
+ version = "0.61.2"
357
+ source = "registry+https://github.com/rust-lang/crates.io-index"
358
+ checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
359
+ dependencies = [
360
+ "windows-link",
361
+ ]
362
+
363
+ [[package]]
364
+ name = "windows-targets"
365
+ version = "0.53.5"
366
+ source = "registry+https://github.com/rust-lang/crates.io-index"
367
+ checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"
368
+ dependencies = [
369
+ "windows-link",
370
+ "windows_aarch64_gnullvm",
371
+ "windows_aarch64_msvc",
372
+ "windows_i686_gnu",
373
+ "windows_i686_gnullvm",
374
+ "windows_i686_msvc",
375
+ "windows_x86_64_gnu",
376
+ "windows_x86_64_gnullvm",
377
+ "windows_x86_64_msvc",
378
+ ]
379
+
380
+ [[package]]
381
+ name = "windows_aarch64_gnullvm"
382
+ version = "0.53.1"
383
+ source = "registry+https://github.com/rust-lang/crates.io-index"
384
+ checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53"
385
+
386
+ [[package]]
387
+ name = "windows_aarch64_msvc"
388
+ version = "0.53.1"
389
+ source = "registry+https://github.com/rust-lang/crates.io-index"
390
+ checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006"
391
+
392
+ [[package]]
393
+ name = "windows_i686_gnu"
394
+ version = "0.53.1"
395
+ source = "registry+https://github.com/rust-lang/crates.io-index"
396
+ checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3"
397
+
398
+ [[package]]
399
+ name = "windows_i686_gnullvm"
400
+ version = "0.53.1"
401
+ source = "registry+https://github.com/rust-lang/crates.io-index"
402
+ checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c"
403
+
404
+ [[package]]
405
+ name = "windows_i686_msvc"
406
+ version = "0.53.1"
407
+ source = "registry+https://github.com/rust-lang/crates.io-index"
408
+ checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2"
409
+
410
+ [[package]]
411
+ name = "windows_x86_64_gnu"
412
+ version = "0.53.1"
413
+ source = "registry+https://github.com/rust-lang/crates.io-index"
414
+ checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499"
415
+
416
+ [[package]]
417
+ name = "windows_x86_64_gnullvm"
418
+ version = "0.53.1"
419
+ source = "registry+https://github.com/rust-lang/crates.io-index"
420
+ checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1"
421
+
422
+ [[package]]
423
+ name = "windows_x86_64_msvc"
424
+ version = "0.53.1"
425
+ source = "registry+https://github.com/rust-lang/crates.io-index"
426
+ checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"
427
+
428
+ [[package]]
429
+ name = "winnow"
430
+ version = "0.7.13"
431
+ source = "registry+https://github.com/rust-lang/crates.io-index"
432
+ checksum = "21a0236b59786fed61e2a80582dd500fe61f18b5dca67a4a067d0bc9039339cf"
433
+ dependencies = [
434
+ "memchr",
435
+ ]
@@ -0,0 +1,23 @@
1
+ [package]
2
+ name = "gef-file-to-map"
3
+ version = "1.0.0"
4
+ edition = "2024"
5
+ rust-version = "1.85.0"
6
+ readme = "README.md"
7
+
8
+ [dependencies]
9
+ itertools = "0.14.0"
10
+ pyo3 = { version = "0.27.1", features = ["extension-module", "abi3-py37"] }
11
+ thiserror = "2.0.17"
12
+ winnow = "0.7.13"
13
+
14
+ [dev-dependencies]
15
+ divan = "0.1.21"
16
+
17
+ [[bench]]
18
+ name = "test_gef"
19
+ harness = false
20
+
21
+ [profile.release]
22
+ lto = true
23
+ codegen-units = 1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gef-file-to-map
3
- Version: 0.2.0
3
+ Version: 1.0.0
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -8,13 +8,13 @@ License-File: LICENSE
8
8
  Summary: Utility library for parsing .gef files
9
9
  Keywords: gef,pygef
10
10
  Author-email: Thomas Versteeg <t.versteeg@cemsbv.io>
11
- Requires-Python: >=3.7
11
+ Requires-Python: >=3.11
12
12
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
13
13
  Project-URL: repository, https://github.com/cemsbv/gef-file-to-map
14
14
 
15
15
  # gef-file-to-map
16
16
 
17
- [![PyPI version](https://badge.fury.io/py/gef-file-to-map.svg)](https://pypi.org/project/gef-file-to-map/0.1.0/)
17
+ [![PyPI version](https://badge.fury.io/py/gef-file-to-map.svg)](https://pypi.org/project/gef-file-to-map)
18
18
 
19
19
  Utility library for parsing of .gef files, written for [pygef](https://github.com/cemsbv/pygef).
20
20
 
@@ -1,6 +1,6 @@
1
1
  # gef-file-to-map
2
2
 
3
- [![PyPI version](https://badge.fury.io/py/gef-file-to-map.svg)](https://pypi.org/project/gef-file-to-map/0.1.0/)
3
+ [![PyPI version](https://badge.fury.io/py/gef-file-to-map.svg)](https://pypi.org/project/gef-file-to-map)
4
4
 
5
5
  Utility library for parsing of .gef files, written for [pygef](https://github.com/cemsbv/pygef).
6
6
 
@@ -0,0 +1,21 @@
1
+ use divan::Bencher;
2
+
3
+ /// Run a benchmark for the test GEF file in the repo.
4
+ #[divan::bench(args = ["test.gef", "big-file.gef"], sample_count = 1000, threads)]
5
+ fn gef_file(bencher: Bencher, test: &str) {
6
+ let file = match test {
7
+ "test.gef" => include_str!("../tests/test.gef"),
8
+ "big-file.gef" => include_str!("../tests/big-file.gef"),
9
+ _ => panic!("Unrecognized input '{test}'"),
10
+ };
11
+
12
+ bencher.bench(|| {
13
+ let result = gef_file_to_map::parse(divan::black_box(file));
14
+ divan::black_box_drop(result);
15
+ });
16
+ }
17
+
18
+ /// Run registered benchmarks.
19
+ fn main() {
20
+ divan::main();
21
+ }