gef-file-to-map 0.1.0__tar.gz → 0.1.1__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.
@@ -13,43 +13,49 @@ jobs:
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
15
  - uses: actions/checkout@v3
16
+
16
17
  - uses: PyO3/maturin-action@v1
17
18
  with:
18
19
  manylinux: auto
19
20
  command: build
20
- args: --release --sdist -o dist --find-interpreter
21
+ args: --release --sdist -o dist
22
+
21
23
  - name: Upload wheels
22
- uses: actions/upload-artifact@v3
24
+ uses: actions/upload-artifact@v4
23
25
  with:
24
- name: wheels
26
+ name: wheels-linux
25
27
  path: dist
26
28
 
27
29
  windows:
28
30
  runs-on: windows-latest
29
31
  steps:
30
32
  - uses: actions/checkout@v3
33
+
31
34
  - uses: PyO3/maturin-action@v1
32
35
  with:
33
36
  command: build
34
- args: --release -o dist --find-interpreter
37
+ args: --release -o dist
38
+
35
39
  - name: Upload wheels
36
- uses: actions/upload-artifact@v3
40
+ uses: actions/upload-artifact@v4
37
41
  with:
38
- name: wheels
42
+ name: wheels-windows
39
43
  path: dist
40
44
 
41
45
  macos:
42
46
  runs-on: macos-latest
43
47
  steps:
44
48
  - uses: actions/checkout@v3
49
+
45
50
  - uses: PyO3/maturin-action@v1
46
51
  with:
47
52
  command: build
48
- args: --release -o dist --universal2 --find-interpreter
53
+ args: --release -o dist
54
+
49
55
  - name: Upload wheels
50
- uses: actions/upload-artifact@v3
56
+ uses: actions/upload-artifact@v4
51
57
  with:
52
- name: wheels
58
+ name: wheels-macos
53
59
  path: dist
54
60
 
55
61
  release:
@@ -60,15 +66,24 @@ jobs:
60
66
  - windows
61
67
  - linux
62
68
  if: "startsWith(github.ref, 'refs/tags/')"
69
+ permissions:
70
+ # Use to sign the release artifacts
71
+ id-token: write
72
+ # Used to upload release artifacts
73
+ contents: write
74
+ # Used to generate artifact attestation
75
+ attestations: write
63
76
  steps:
64
- - uses: actions/download-artifact@v2
77
+ - uses: actions/download-artifact@v4
78
+
79
+ - name: Generate artifact attestation
80
+ uses: actions/attest-build-provenance@v1
81
+ with:
82
+ subject-path: "wheels-*/*"
83
+
84
+ - name: Publish to PyPI
85
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
86
+ uses: PyO3/maturin-action@v1
65
87
  with:
66
- name: wheels
67
- - uses: actions/setup-python@v2
68
- - name: Publish to PyPi
69
- env:
70
- TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
71
- TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
72
- run: |
73
- pip install --upgrade twine
74
- twine upload --skip-existing *
88
+ command: upload
89
+ args: --non-interactive --skip-existing wheels-*/*
@@ -0,0 +1,26 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ ## [0.1.1] - 2025-03-10
6
+
7
+ ### Documentation
8
+
9
+
10
+ ### Miscellaneous Tasks
11
+
12
+
13
+ ## [0.1.0] - 2023-02-22
14
+
15
+ ### Bug Fixes
16
+
17
+ #### Ci
18
+
19
+ - Copy wheel generation from @messense
20
+ - Require minimum Python version of 3.8
21
+
22
+
23
+ ### Refactor
24
+
25
+
26
+ <!-- CEMS BV. -->
@@ -0,0 +1,231 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "autocfg"
7
+ version = "1.4.0"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
10
+
11
+ [[package]]
12
+ name = "cfg-if"
13
+ version = "1.0.0"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
16
+
17
+ [[package]]
18
+ name = "either"
19
+ version = "1.15.0"
20
+ source = "registry+https://github.com/rust-lang/crates.io-index"
21
+ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
22
+
23
+ [[package]]
24
+ name = "gef-file-to-map"
25
+ version = "0.1.1"
26
+ dependencies = [
27
+ "itertools",
28
+ "nom",
29
+ "pyo3",
30
+ "thiserror",
31
+ ]
32
+
33
+ [[package]]
34
+ name = "heck"
35
+ version = "0.5.0"
36
+ source = "registry+https://github.com/rust-lang/crates.io-index"
37
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
38
+
39
+ [[package]]
40
+ name = "indoc"
41
+ version = "2.0.6"
42
+ source = "registry+https://github.com/rust-lang/crates.io-index"
43
+ checksum = "f4c7245a08504955605670dbf141fceab975f15ca21570696aebe9d2e71576bd"
44
+
45
+ [[package]]
46
+ name = "itertools"
47
+ version = "0.14.0"
48
+ source = "registry+https://github.com/rust-lang/crates.io-index"
49
+ checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
50
+ dependencies = [
51
+ "either",
52
+ ]
53
+
54
+ [[package]]
55
+ name = "libc"
56
+ version = "0.2.170"
57
+ source = "registry+https://github.com/rust-lang/crates.io-index"
58
+ checksum = "875b3680cb2f8f71bdcf9a30f38d48282f5d3c95cbf9b3fa57269bb5d5c06828"
59
+
60
+ [[package]]
61
+ name = "memchr"
62
+ version = "2.7.4"
63
+ source = "registry+https://github.com/rust-lang/crates.io-index"
64
+ checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
65
+
66
+ [[package]]
67
+ name = "memoffset"
68
+ version = "0.9.1"
69
+ source = "registry+https://github.com/rust-lang/crates.io-index"
70
+ checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
71
+ dependencies = [
72
+ "autocfg",
73
+ ]
74
+
75
+ [[package]]
76
+ name = "minimal-lexical"
77
+ version = "0.2.1"
78
+ source = "registry+https://github.com/rust-lang/crates.io-index"
79
+ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
80
+
81
+ [[package]]
82
+ name = "nom"
83
+ version = "7.1.3"
84
+ source = "registry+https://github.com/rust-lang/crates.io-index"
85
+ checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
86
+ dependencies = [
87
+ "memchr",
88
+ "minimal-lexical",
89
+ ]
90
+
91
+ [[package]]
92
+ name = "once_cell"
93
+ version = "1.20.3"
94
+ source = "registry+https://github.com/rust-lang/crates.io-index"
95
+ checksum = "945462a4b81e43c4e3ba96bd7b49d834c6f61198356aa858733bc4acf3cbe62e"
96
+
97
+ [[package]]
98
+ name = "portable-atomic"
99
+ version = "1.11.0"
100
+ source = "registry+https://github.com/rust-lang/crates.io-index"
101
+ checksum = "350e9b48cbc6b0e028b0473b114454c6316e57336ee184ceab6e53f72c178b3e"
102
+
103
+ [[package]]
104
+ name = "proc-macro2"
105
+ version = "1.0.94"
106
+ source = "registry+https://github.com/rust-lang/crates.io-index"
107
+ checksum = "a31971752e70b8b2686d7e46ec17fb38dad4051d94024c88df49b667caea9c84"
108
+ dependencies = [
109
+ "unicode-ident",
110
+ ]
111
+
112
+ [[package]]
113
+ name = "pyo3"
114
+ version = "0.24.0"
115
+ source = "registry+https://github.com/rust-lang/crates.io-index"
116
+ checksum = "7f1c6c3591120564d64db2261bec5f910ae454f01def849b9c22835a84695e86"
117
+ dependencies = [
118
+ "cfg-if",
119
+ "indoc",
120
+ "libc",
121
+ "memoffset",
122
+ "once_cell",
123
+ "portable-atomic",
124
+ "pyo3-build-config",
125
+ "pyo3-ffi",
126
+ "pyo3-macros",
127
+ "unindent",
128
+ ]
129
+
130
+ [[package]]
131
+ name = "pyo3-build-config"
132
+ version = "0.24.0"
133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
134
+ checksum = "e9b6c2b34cf71427ea37c7001aefbaeb85886a074795e35f161f5aecc7620a7a"
135
+ dependencies = [
136
+ "once_cell",
137
+ "target-lexicon",
138
+ ]
139
+
140
+ [[package]]
141
+ name = "pyo3-ffi"
142
+ version = "0.24.0"
143
+ source = "registry+https://github.com/rust-lang/crates.io-index"
144
+ checksum = "5507651906a46432cdda02cd02dd0319f6064f1374c9147c45b978621d2c3a9c"
145
+ dependencies = [
146
+ "libc",
147
+ "pyo3-build-config",
148
+ ]
149
+
150
+ [[package]]
151
+ name = "pyo3-macros"
152
+ version = "0.24.0"
153
+ source = "registry+https://github.com/rust-lang/crates.io-index"
154
+ checksum = "b0d394b5b4fd8d97d48336bb0dd2aebabad39f1d294edd6bcd2cccf2eefe6f42"
155
+ dependencies = [
156
+ "proc-macro2",
157
+ "pyo3-macros-backend",
158
+ "quote",
159
+ "syn",
160
+ ]
161
+
162
+ [[package]]
163
+ name = "pyo3-macros-backend"
164
+ version = "0.24.0"
165
+ source = "registry+https://github.com/rust-lang/crates.io-index"
166
+ checksum = "fd72da09cfa943b1080f621f024d2ef7e2773df7badd51aa30a2be1f8caa7c8e"
167
+ dependencies = [
168
+ "heck",
169
+ "proc-macro2",
170
+ "pyo3-build-config",
171
+ "quote",
172
+ "syn",
173
+ ]
174
+
175
+ [[package]]
176
+ name = "quote"
177
+ version = "1.0.39"
178
+ source = "registry+https://github.com/rust-lang/crates.io-index"
179
+ checksum = "c1f1914ce909e1658d9907913b4b91947430c7d9be598b15a1912935b8c04801"
180
+ dependencies = [
181
+ "proc-macro2",
182
+ ]
183
+
184
+ [[package]]
185
+ name = "syn"
186
+ version = "2.0.100"
187
+ source = "registry+https://github.com/rust-lang/crates.io-index"
188
+ checksum = "b09a44accad81e1ba1cd74a32461ba89dee89095ba17b32f5d03683b1b1fc2a0"
189
+ dependencies = [
190
+ "proc-macro2",
191
+ "quote",
192
+ "unicode-ident",
193
+ ]
194
+
195
+ [[package]]
196
+ name = "target-lexicon"
197
+ version = "0.13.2"
198
+ source = "registry+https://github.com/rust-lang/crates.io-index"
199
+ checksum = "e502f78cdbb8ba4718f566c418c52bc729126ffd16baee5baa718cf25dd5a69a"
200
+
201
+ [[package]]
202
+ name = "thiserror"
203
+ version = "2.0.12"
204
+ source = "registry+https://github.com/rust-lang/crates.io-index"
205
+ checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708"
206
+ dependencies = [
207
+ "thiserror-impl",
208
+ ]
209
+
210
+ [[package]]
211
+ name = "thiserror-impl"
212
+ version = "2.0.12"
213
+ source = "registry+https://github.com/rust-lang/crates.io-index"
214
+ checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d"
215
+ dependencies = [
216
+ "proc-macro2",
217
+ "quote",
218
+ "syn",
219
+ ]
220
+
221
+ [[package]]
222
+ name = "unicode-ident"
223
+ version = "1.0.18"
224
+ source = "registry+https://github.com/rust-lang/crates.io-index"
225
+ checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
226
+
227
+ [[package]]
228
+ name = "unindent"
229
+ version = "0.2.4"
230
+ source = "registry+https://github.com/rust-lang/crates.io-index"
231
+ checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
@@ -0,0 +1,20 @@
1
+ [package]
2
+ name = "gef-file-to-map"
3
+ version = "0.1.1"
4
+ edition = "2024"
5
+ rust-version = "1.85.0"
6
+
7
+ [lib]
8
+ # Name of the python module
9
+ name = "gef_file_to_map"
10
+ crate-type = ["cdylib"]
11
+
12
+ [dependencies]
13
+ itertools = "0.14.0"
14
+ nom = "7.1.3"
15
+ pyo3 = { version = "0.24.0", features = ["extension-module", "abi3-py37"] }
16
+ thiserror = "2.0.12"
17
+
18
+ [profile.release]
19
+ lto = true
20
+ codegen-units = 1
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: gef-file-to-map
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -14,6 +14,8 @@ 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/)
18
+
17
19
  Utility library for parsing of .gef files, written for [pygef](https://github.com/cemsbv/pygef).
18
20
 
19
21
  ### Run locally
@@ -30,7 +32,7 @@ maturin develop
30
32
  # Open a GEF file locally
31
33
  python
32
34
 
33
- >>> from gef_file_to_map import parse
35
+ >>> from gef_file_to_map import gef_to_map
34
36
  >>> gef_to_map(open('./tests/test.gef').read())
35
37
  ```
36
38
 
@@ -1,5 +1,7 @@
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/)
4
+
3
5
  Utility library for parsing of .gef files, written for [pygef](https://github.com/cemsbv/pygef).
4
6
 
5
7
  ### Run locally
@@ -16,6 +18,6 @@ maturin develop
16
18
  # Open a GEF file locally
17
19
  python
18
20
 
19
- >>> from gef_file_to_map import parse
21
+ >>> from gef_file_to_map import gef_to_map
20
22
  >>> gef_to_map(open('./tests/test.gef').read())
21
23
  ```
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "gef-file-to-map"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  description = "Utility library for parsing .gef files"
5
5
  requires-python = ">=3.7"
6
6
  readme = "README.md"
@@ -17,5 +17,10 @@ classifiers = [
17
17
  repository = "https://github.com/cemsbv/gef-file-to-map"
18
18
 
19
19
  [build-system]
20
- requires = ["maturin>=0.14,<0.15"]
20
+ requires = ["maturin>=1.0,<2.0"]
21
21
  build-backend = "maturin"
22
+
23
+ [tool.maturin]
24
+ features = ["pyo3/extension-module"]
25
+ strip = true
26
+ bindings = "pyo3"
@@ -27,7 +27,7 @@ impl<'a> Header<'a> {
27
27
  ///
28
28
  /// The string shouldn't contain a '#' character at the begin nor a newline
29
29
  /// at the end.
30
- fn from_str(s: &'a str) -> IResult<Self> {
30
+ fn from_str(s: &'a str) -> IResult<'a, Self> {
31
31
  // Get the name of the header, the left hand side
32
32
  let (s, name) = nom::error::context(
33
33
  "the name of the header",
@@ -17,11 +17,12 @@ pub mod error;
17
17
  mod header;
18
18
  mod nom;
19
19
 
20
- use crate::{error::Result, header::Header};
21
20
  use itertools::Itertools;
22
- use pyo3::{types::PyModule, PyResult, Python};
21
+ use pyo3::prelude::*;
23
22
  use std::collections::HashMap;
24
23
 
24
+ use crate::{error::Result, header::Header};
25
+
25
26
  /// Type defined for easy use and extra methods.
26
27
  pub type HeaderMap<'a> = HashMap<&'a str, Vec<Vec<&'a str>>>;
27
28
 
@@ -45,15 +46,15 @@ pub fn parse(gef: &'_ str) -> Result<(&'_ str, HeaderMap<'_>)> {
45
46
  }
46
47
 
47
48
  // Python wrapper around the parse function.
48
- #[pyo3::pyfunction]
49
+ #[pyfunction]
49
50
  fn gef_to_map(gef: &'_ str) -> PyResult<(&'_ str, HeaderMap<'_>)> {
50
51
  // Map the error to a python error
51
52
  parse(gef).map_err(|err| err.into())
52
53
  }
53
54
 
54
55
  /// The python module.
55
- #[pyo3::pymodule]
56
- fn gef_file_to_map(_py: Python, module: &PyModule) -> PyResult<()> {
56
+ #[pymodule]
57
+ fn gef_file_to_map(module: &Bound<'_, PyModule>) -> PyResult<()> {
57
58
  module.add_function(pyo3::wrap_pyfunction!(gef_to_map, module)?)?;
58
59
 
59
60
  Ok(())
@@ -1,349 +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 = "autocfg"
7
- version = "1.1.0"
8
- source = "registry+https://github.com/rust-lang/crates.io-index"
9
- checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
10
-
11
- [[package]]
12
- name = "bitflags"
13
- version = "1.3.2"
14
- source = "registry+https://github.com/rust-lang/crates.io-index"
15
- checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
16
-
17
- [[package]]
18
- name = "cargo-husky"
19
- version = "1.5.0"
20
- source = "registry+https://github.com/rust-lang/crates.io-index"
21
- checksum = "7b02b629252fe8ef6460461409564e2c21d0c8e77e0944f3d189ff06c4e932ad"
22
-
23
- [[package]]
24
- name = "cfg-if"
25
- version = "1.0.0"
26
- source = "registry+https://github.com/rust-lang/crates.io-index"
27
- checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
28
-
29
- [[package]]
30
- name = "either"
31
- version = "1.8.1"
32
- source = "registry+https://github.com/rust-lang/crates.io-index"
33
- checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91"
34
-
35
- [[package]]
36
- name = "gef-file-to-map"
37
- version = "0.1.0"
38
- dependencies = [
39
- "cargo-husky",
40
- "itertools",
41
- "nom",
42
- "pyo3",
43
- "thiserror",
44
- ]
45
-
46
- [[package]]
47
- name = "indoc"
48
- version = "1.0.9"
49
- source = "registry+https://github.com/rust-lang/crates.io-index"
50
- checksum = "bfa799dd5ed20a7e349f3b4639aa80d74549c81716d9ec4f994c9b5815598306"
51
-
52
- [[package]]
53
- name = "itertools"
54
- version = "0.10.5"
55
- source = "registry+https://github.com/rust-lang/crates.io-index"
56
- checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
57
- dependencies = [
58
- "either",
59
- ]
60
-
61
- [[package]]
62
- name = "libc"
63
- version = "0.2.139"
64
- source = "registry+https://github.com/rust-lang/crates.io-index"
65
- checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79"
66
-
67
- [[package]]
68
- name = "lock_api"
69
- version = "0.4.9"
70
- source = "registry+https://github.com/rust-lang/crates.io-index"
71
- checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df"
72
- dependencies = [
73
- "autocfg",
74
- "scopeguard",
75
- ]
76
-
77
- [[package]]
78
- name = "memchr"
79
- version = "2.5.0"
80
- source = "registry+https://github.com/rust-lang/crates.io-index"
81
- checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
82
-
83
- [[package]]
84
- name = "memoffset"
85
- version = "0.8.0"
86
- source = "registry+https://github.com/rust-lang/crates.io-index"
87
- checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1"
88
- dependencies = [
89
- "autocfg",
90
- ]
91
-
92
- [[package]]
93
- name = "minimal-lexical"
94
- version = "0.2.1"
95
- source = "registry+https://github.com/rust-lang/crates.io-index"
96
- checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
97
-
98
- [[package]]
99
- name = "nom"
100
- version = "7.1.3"
101
- source = "registry+https://github.com/rust-lang/crates.io-index"
102
- checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
103
- dependencies = [
104
- "memchr",
105
- "minimal-lexical",
106
- ]
107
-
108
- [[package]]
109
- name = "once_cell"
110
- version = "1.17.1"
111
- source = "registry+https://github.com/rust-lang/crates.io-index"
112
- checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3"
113
-
114
- [[package]]
115
- name = "parking_lot"
116
- version = "0.12.1"
117
- source = "registry+https://github.com/rust-lang/crates.io-index"
118
- checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
119
- dependencies = [
120
- "lock_api",
121
- "parking_lot_core",
122
- ]
123
-
124
- [[package]]
125
- name = "parking_lot_core"
126
- version = "0.9.7"
127
- source = "registry+https://github.com/rust-lang/crates.io-index"
128
- checksum = "9069cbb9f99e3a5083476ccb29ceb1de18b9118cafa53e90c9551235de2b9521"
129
- dependencies = [
130
- "cfg-if",
131
- "libc",
132
- "redox_syscall",
133
- "smallvec",
134
- "windows-sys",
135
- ]
136
-
137
- [[package]]
138
- name = "proc-macro2"
139
- version = "1.0.51"
140
- source = "registry+https://github.com/rust-lang/crates.io-index"
141
- checksum = "5d727cae5b39d21da60fa540906919ad737832fe0b1c165da3a34d6548c849d6"
142
- dependencies = [
143
- "unicode-ident",
144
- ]
145
-
146
- [[package]]
147
- name = "pyo3"
148
- version = "0.18.1"
149
- source = "registry+https://github.com/rust-lang/crates.io-index"
150
- checksum = "06a3d8e8a46ab2738109347433cb7b96dffda2e4a218b03ef27090238886b147"
151
- dependencies = [
152
- "cfg-if",
153
- "indoc",
154
- "libc",
155
- "memoffset",
156
- "parking_lot",
157
- "pyo3-build-config",
158
- "pyo3-ffi",
159
- "pyo3-macros",
160
- "unindent",
161
- ]
162
-
163
- [[package]]
164
- name = "pyo3-build-config"
165
- version = "0.18.1"
166
- source = "registry+https://github.com/rust-lang/crates.io-index"
167
- checksum = "75439f995d07ddfad42b192dfcf3bc66a7ecfd8b4a1f5f6f046aa5c2c5d7677d"
168
- dependencies = [
169
- "once_cell",
170
- "target-lexicon",
171
- ]
172
-
173
- [[package]]
174
- name = "pyo3-ffi"
175
- version = "0.18.1"
176
- source = "registry+https://github.com/rust-lang/crates.io-index"
177
- checksum = "839526a5c07a17ff44823679b68add4a58004de00512a95b6c1c98a6dcac0ee5"
178
- dependencies = [
179
- "libc",
180
- "pyo3-build-config",
181
- ]
182
-
183
- [[package]]
184
- name = "pyo3-macros"
185
- version = "0.18.1"
186
- source = "registry+https://github.com/rust-lang/crates.io-index"
187
- checksum = "bd44cf207476c6a9760c4653559be4f206efafb924d3e4cbf2721475fc0d6cc5"
188
- dependencies = [
189
- "proc-macro2",
190
- "pyo3-macros-backend",
191
- "quote",
192
- "syn",
193
- ]
194
-
195
- [[package]]
196
- name = "pyo3-macros-backend"
197
- version = "0.18.1"
198
- source = "registry+https://github.com/rust-lang/crates.io-index"
199
- checksum = "dc1f43d8e30460f36350d18631ccf85ded64c059829208fe680904c65bcd0a4c"
200
- dependencies = [
201
- "proc-macro2",
202
- "quote",
203
- "syn",
204
- ]
205
-
206
- [[package]]
207
- name = "quote"
208
- version = "1.0.23"
209
- source = "registry+https://github.com/rust-lang/crates.io-index"
210
- checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b"
211
- dependencies = [
212
- "proc-macro2",
213
- ]
214
-
215
- [[package]]
216
- name = "redox_syscall"
217
- version = "0.2.16"
218
- source = "registry+https://github.com/rust-lang/crates.io-index"
219
- checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
220
- dependencies = [
221
- "bitflags",
222
- ]
223
-
224
- [[package]]
225
- name = "scopeguard"
226
- version = "1.1.0"
227
- source = "registry+https://github.com/rust-lang/crates.io-index"
228
- checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
229
-
230
- [[package]]
231
- name = "smallvec"
232
- version = "1.10.0"
233
- source = "registry+https://github.com/rust-lang/crates.io-index"
234
- checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0"
235
-
236
- [[package]]
237
- name = "syn"
238
- version = "1.0.107"
239
- source = "registry+https://github.com/rust-lang/crates.io-index"
240
- checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5"
241
- dependencies = [
242
- "proc-macro2",
243
- "quote",
244
- "unicode-ident",
245
- ]
246
-
247
- [[package]]
248
- name = "target-lexicon"
249
- version = "0.12.6"
250
- source = "registry+https://github.com/rust-lang/crates.io-index"
251
- checksum = "8ae9980cab1db3fceee2f6c6f643d5d8de2997c58ee8d25fb0cc8a9e9e7348e5"
252
-
253
- [[package]]
254
- name = "thiserror"
255
- version = "1.0.38"
256
- source = "registry+https://github.com/rust-lang/crates.io-index"
257
- checksum = "6a9cd18aa97d5c45c6603caea1da6628790b37f7a34b6ca89522331c5180fed0"
258
- dependencies = [
259
- "thiserror-impl",
260
- ]
261
-
262
- [[package]]
263
- name = "thiserror-impl"
264
- version = "1.0.38"
265
- source = "registry+https://github.com/rust-lang/crates.io-index"
266
- checksum = "1fb327af4685e4d03fa8cbcf1716380da910eeb2bb8be417e7f9fd3fb164f36f"
267
- dependencies = [
268
- "proc-macro2",
269
- "quote",
270
- "syn",
271
- ]
272
-
273
- [[package]]
274
- name = "unicode-ident"
275
- version = "1.0.6"
276
- source = "registry+https://github.com/rust-lang/crates.io-index"
277
- checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc"
278
-
279
- [[package]]
280
- name = "unindent"
281
- version = "0.1.11"
282
- source = "registry+https://github.com/rust-lang/crates.io-index"
283
- checksum = "e1766d682d402817b5ac4490b3c3002d91dfa0d22812f341609f97b08757359c"
284
-
285
- [[package]]
286
- name = "windows-sys"
287
- version = "0.45.0"
288
- source = "registry+https://github.com/rust-lang/crates.io-index"
289
- checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"
290
- dependencies = [
291
- "windows-targets",
292
- ]
293
-
294
- [[package]]
295
- name = "windows-targets"
296
- version = "0.42.1"
297
- source = "registry+https://github.com/rust-lang/crates.io-index"
298
- checksum = "8e2522491fbfcd58cc84d47aeb2958948c4b8982e9a2d8a2a35bbaed431390e7"
299
- dependencies = [
300
- "windows_aarch64_gnullvm",
301
- "windows_aarch64_msvc",
302
- "windows_i686_gnu",
303
- "windows_i686_msvc",
304
- "windows_x86_64_gnu",
305
- "windows_x86_64_gnullvm",
306
- "windows_x86_64_msvc",
307
- ]
308
-
309
- [[package]]
310
- name = "windows_aarch64_gnullvm"
311
- version = "0.42.1"
312
- source = "registry+https://github.com/rust-lang/crates.io-index"
313
- checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608"
314
-
315
- [[package]]
316
- name = "windows_aarch64_msvc"
317
- version = "0.42.1"
318
- source = "registry+https://github.com/rust-lang/crates.io-index"
319
- checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7"
320
-
321
- [[package]]
322
- name = "windows_i686_gnu"
323
- version = "0.42.1"
324
- source = "registry+https://github.com/rust-lang/crates.io-index"
325
- checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640"
326
-
327
- [[package]]
328
- name = "windows_i686_msvc"
329
- version = "0.42.1"
330
- source = "registry+https://github.com/rust-lang/crates.io-index"
331
- checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605"
332
-
333
- [[package]]
334
- name = "windows_x86_64_gnu"
335
- version = "0.42.1"
336
- source = "registry+https://github.com/rust-lang/crates.io-index"
337
- checksum = "c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45"
338
-
339
- [[package]]
340
- name = "windows_x86_64_gnullvm"
341
- version = "0.42.1"
342
- source = "registry+https://github.com/rust-lang/crates.io-index"
343
- checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463"
344
-
345
- [[package]]
346
- name = "windows_x86_64_msvc"
347
- version = "0.42.1"
348
- source = "registry+https://github.com/rust-lang/crates.io-index"
349
- checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd"
@@ -1,29 +0,0 @@
1
- [package]
2
- name = "gef-file-to-map"
3
- version = "0.1.0"
4
- edition = "2021"
5
-
6
- [lib]
7
- # Name of the python module
8
- name = "gef_file_to_map"
9
- crate-type = ["cdylib"]
10
-
11
- [dependencies]
12
- itertools = "0.10.5"
13
- nom = "7.1.3"
14
- pyo3 = { version = "0.18.1", features = ["extension-module", "abi3-py37"] }
15
- thiserror = "1.0.38"
16
-
17
- # Automatically add git hooks for code conventions & tests
18
- [dev-dependencies.cargo-husky]
19
- version = "1.5.0"
20
- features = [
21
- "precommit-hook",
22
- "postmerge-hook",
23
- "run-cargo-check",
24
- "run-cargo-clippy",
25
- "run-cargo-fmt",
26
- ]
27
-
28
- [package.metadata.maturin]
29
- python-source = "python"
@@ -1,15 +0,0 @@
1
- #!/bin/bash
2
- set -e
3
- echo "::group::Install Rust"
4
- which rustup > /dev/null || curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable
5
- export PATH="$HOME/.cargo/bin:$PATH"
6
- rustup override set stable
7
- rustup component add llvm-tools-preview || true
8
- echo "::endgroup::"
9
- export PATH="$PATH:/opt/python/cp36-cp36m/bin:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/python/cp39-cp39/bin"
10
- echo "::group::Install maturin"
11
- curl -L https://github.com/PyO3/maturin/releases/download/v0.14.13/maturin-x86_64-unknown-linux-musl.tar.gz | tar -xz -C /usr/local/bin
12
- maturin --version || true
13
- which patchelf > /dev/null || python3 -m pip install patchelf
14
- echo "::endgroup::"
15
- maturin build --release --sdist -o dist --find-interpreter
File without changes