eco-connectivity 2.2.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.
Files changed (45) hide show
  1. eco_connectivity-2.2.0/.github/workflows/publish.yml +99 -0
  2. eco_connectivity-2.2.0/.gitignore +81 -0
  3. eco_connectivity-2.2.0/Cargo.lock +410 -0
  4. eco_connectivity-2.2.0/Cargo.toml +33 -0
  5. eco_connectivity-2.2.0/LICENSE +21 -0
  6. eco_connectivity-2.2.0/NEWS.md +140 -0
  7. eco_connectivity-2.2.0/PKG-INFO +316 -0
  8. eco_connectivity-2.2.0/README.md +295 -0
  9. eco_connectivity-2.2.0/build.rs +4 -0
  10. eco_connectivity-2.2.0/connectivity/__init__.py +16 -0
  11. eco_connectivity-2.2.0/connectivity/core.py +530 -0
  12. eco_connectivity-2.2.0/connectivity/data/README.md +88 -0
  13. eco_connectivity-2.2.0/connectivity/data/__init__.py +1 -0
  14. eco_connectivity-2.2.0/connectivity/data/pa_proportion.tif +0 -0
  15. eco_connectivity-2.2.0/connectivity/data/site_condition.tif +0 -0
  16. eco_connectivity-2.2.0/connectivity/data/transgrids/1990.tif +0 -0
  17. eco_connectivity-2.2.0/connectivity/data/transgrids/ACC50_85.tif +0 -0
  18. eco_connectivity-2.2.0/connectivity/data/transgrids/GFD50_85.tif +0 -0
  19. eco_connectivity-2.2.0/connectivity/data/transgrids/IPS50_26.tif +0 -0
  20. eco_connectivity-2.2.0/connectivity/data/transgrids/IPS50_45.tif +0 -0
  21. eco_connectivity-2.2.0/connectivity/data/transgrids/IPS50_60.tif +0 -0
  22. eco_connectivity-2.2.0/connectivity/data/transgrids/IPS50_85.tif +0 -0
  23. eco_connectivity-2.2.0/connectivity/datasets.py +55 -0
  24. eco_connectivity-2.2.0/connectivity/rastio.py +550 -0
  25. eco_connectivity-2.2.0/connectivity/tiles.py +262 -0
  26. eco_connectivity-2.2.0/connectivity/utils.py +156 -0
  27. eco_connectivity-2.2.0/examples/01_tasmania_indicators.ipynb +804 -0
  28. eco_connectivity-2.2.0/figs/beri.png +0 -0
  29. eco_connectivity-2.2.0/figs/circular_multires_windows.png +0 -0
  30. eco_connectivity-2.2.0/figs/condition.png +0 -0
  31. eco_connectivity-2.2.0/figs/parc.png +0 -0
  32. eco_connectivity-2.2.0/pyproject.toml +60 -0
  33. eco_connectivity-2.2.0/src/affine.rs +48 -0
  34. eco_connectivity-2.2.0/src/builder.rs +245 -0
  35. eco_connectivity-2.2.0/src/core.rs +228 -0
  36. eco_connectivity-2.2.0/src/coverage.rs +175 -0
  37. eco_connectivity-2.2.0/src/distances.rs +38 -0
  38. eco_connectivity-2.2.0/src/extract.rs +107 -0
  39. eco_connectivity-2.2.0/src/graph.rs +307 -0
  40. eco_connectivity-2.2.0/src/lib.rs +194 -0
  41. eco_connectivity-2.2.0/src/metrics.rs +105 -0
  42. eco_connectivity-2.2.0/src/overview.rs +350 -0
  43. eco_connectivity-2.2.0/src/routing.rs +133 -0
  44. eco_connectivity-2.2.0/src/utils.rs +56 -0
  45. eco_connectivity-2.2.0/src/window.rs +644 -0
@@ -0,0 +1,99 @@
1
+ name: Build and publish
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ tags:
8
+ - "v*"
9
+ pull_request:
10
+ workflow_dispatch:
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ jobs:
16
+ wheels:
17
+ name: Wheels (${{ matrix.os }})
18
+ runs-on: ${{ matrix.os }}
19
+ strategy:
20
+ fail-fast: false
21
+ matrix:
22
+ # Linux x86_64, Linux aarch64, macOS universal2 and Windows x64.
23
+ # Build and test settings are in [tool.cibuildwheel] in pyproject.toml.
24
+ os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest]
25
+ steps:
26
+ - uses: actions/checkout@v7
27
+ - name: Drop local CPU tuning
28
+ # .cargo/config.toml sets target-cpu=native for local builds, but
29
+ # published wheels must run on any CPU
30
+ shell: bash
31
+ run: rm -f .cargo/config.toml
32
+ - uses: pypa/cibuildwheel@v4.3.0
33
+ - uses: actions/upload-artifact@v7
34
+ with:
35
+ name: cibw-wheels-${{ matrix.os }}
36
+ path: wheelhouse/*.whl
37
+
38
+ sdist:
39
+ name: Source distribution
40
+ runs-on: ubuntu-latest
41
+ steps:
42
+ - uses: actions/checkout@v7
43
+ - name: Drop local CPU tuning
44
+ run: rm -f .cargo/config.toml
45
+ - name: Build sdist
46
+ run: pipx run build --sdist
47
+ - uses: actions/upload-artifact@v7
48
+ with:
49
+ name: cibw-sdist
50
+ path: dist/*.tar.gz
51
+
52
+ publish:
53
+ name: Publish to PyPI
54
+ needs: [wheels, sdist]
55
+ if: startsWith(github.ref, 'refs/tags/v')
56
+ runs-on: ubuntu-latest
57
+ # Must match the trusted publisher configured on PyPI
58
+ environment:
59
+ name: pypi
60
+ url: https://pypi.org/p/eco-connectivity
61
+ permissions:
62
+ # Used for PyPI trusted publishing and to sign the build provenance
63
+ id-token: write
64
+ # Used to generate artifact attestation
65
+ attestations: write
66
+ steps:
67
+ - uses: actions/download-artifact@v8
68
+ with:
69
+ pattern: cibw-*
70
+ path: dist
71
+ merge-multiple: true
72
+ - uses: actions/attest-build-provenance@v4
73
+ with:
74
+ subject-path: dist/*
75
+ - uses: pypa/gh-action-pypi-publish@release/v1
76
+
77
+ github-release:
78
+ name: Attach files to GitHub release
79
+ needs: publish
80
+ runs-on: ubuntu-latest
81
+ permissions:
82
+ contents: write
83
+ steps:
84
+ - uses: actions/download-artifact@v8
85
+ with:
86
+ pattern: cibw-*
87
+ path: dist
88
+ merge-multiple: true
89
+ - name: Upload wheels and sdist
90
+ env:
91
+ GH_TOKEN: ${{ github.token }}
92
+ GH_REPO: ${{ github.repository }}
93
+ TAG: ${{ github.ref_name }}
94
+ run: |
95
+ if gh release view "$TAG" > /dev/null 2>&1; then
96
+ gh release upload "$TAG" dist/* --clobber
97
+ else
98
+ gh release create "$TAG" dist/* --draft --verify-tag --title "$TAG" --generate-notes
99
+ fi
@@ -0,0 +1,81 @@
1
+ /target
2
+
3
+ *.ipynb
4
+ !examples/*.ipynb
5
+ single_mod.rs
6
+
7
+ src/testing.rs
8
+ connectivity/testing.py
9
+
10
+ # Byte-compiled / optimized / DLL files
11
+ __pycache__/
12
+ .pytest_cache/
13
+ *.py[cod]
14
+
15
+ # C extensions
16
+ *.so
17
+
18
+ plotting.py
19
+
20
+ # Distribution / packaging
21
+ .Python
22
+ .venv/
23
+ env/
24
+ bin/
25
+ build/
26
+ develop-eggs/
27
+ dist/
28
+ eggs/
29
+ lib/
30
+ lib64/
31
+ parts/
32
+ sdist/
33
+ var/
34
+ include/
35
+ man/
36
+ venv/
37
+ *.egg-info/
38
+ .installed.cfg
39
+ *.egg
40
+
41
+ # Installer logs
42
+ pip-log.txt
43
+ pip-delete-this-directory.txt
44
+ pip-selfcheck.json
45
+
46
+ # Unit test / coverage reports
47
+ htmlcov/
48
+ .tox/
49
+ .coverage
50
+ .cache
51
+ nosetests.xml
52
+ coverage.xml
53
+
54
+ # Translations
55
+ *.mo
56
+
57
+ # Mr Developer
58
+ .mr.developer.cfg
59
+ .project
60
+ .pydevproject
61
+
62
+ # Rope
63
+ .ropeproject
64
+
65
+ # Django stuff:
66
+ *.log
67
+ *.pot
68
+
69
+ .DS_Store
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyCharm
75
+ .idea/
76
+
77
+ # VSCode
78
+ .vscode/
79
+
80
+ # Pyenv
81
+ .python-version
@@ -0,0 +1,410 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "anyhow"
7
+ version = "1.0.100"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61"
10
+
11
+ [[package]]
12
+ name = "autocfg"
13
+ version = "1.4.0"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
16
+
17
+ [[package]]
18
+ name = "crossbeam-deque"
19
+ version = "0.8.6"
20
+ source = "registry+https://github.com/rust-lang/crates.io-index"
21
+ checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51"
22
+ dependencies = [
23
+ "crossbeam-epoch",
24
+ "crossbeam-utils",
25
+ ]
26
+
27
+ [[package]]
28
+ name = "crossbeam-epoch"
29
+ version = "0.9.18"
30
+ source = "registry+https://github.com/rust-lang/crates.io-index"
31
+ checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
32
+ dependencies = [
33
+ "crossbeam-utils",
34
+ ]
35
+
36
+ [[package]]
37
+ name = "crossbeam-utils"
38
+ version = "0.8.21"
39
+ source = "registry+https://github.com/rust-lang/crates.io-index"
40
+ checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
41
+
42
+ [[package]]
43
+ name = "deprecate-until"
44
+ version = "0.1.1"
45
+ source = "registry+https://github.com/rust-lang/crates.io-index"
46
+ checksum = "7a3767f826efbbe5a5ae093920b58b43b01734202be697e1354914e862e8e704"
47
+ dependencies = [
48
+ "proc-macro2",
49
+ "quote",
50
+ "semver",
51
+ "syn",
52
+ ]
53
+
54
+ [[package]]
55
+ name = "either"
56
+ version = "1.15.0"
57
+ source = "registry+https://github.com/rust-lang/crates.io-index"
58
+ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
59
+
60
+ [[package]]
61
+ name = "equivalent"
62
+ version = "1.0.2"
63
+ source = "registry+https://github.com/rust-lang/crates.io-index"
64
+ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
65
+
66
+ [[package]]
67
+ name = "hashbrown"
68
+ version = "0.15.3"
69
+ source = "registry+https://github.com/rust-lang/crates.io-index"
70
+ checksum = "84b26c544d002229e640969970a2e74021aadf6e2f96372b9c58eff97de08eb3"
71
+
72
+ [[package]]
73
+ name = "heck"
74
+ version = "0.5.0"
75
+ source = "registry+https://github.com/rust-lang/crates.io-index"
76
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
77
+
78
+ [[package]]
79
+ name = "hermit-abi"
80
+ version = "0.5.2"
81
+ source = "registry+https://github.com/rust-lang/crates.io-index"
82
+ checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
83
+
84
+ [[package]]
85
+ name = "indexmap"
86
+ version = "2.9.0"
87
+ source = "registry+https://github.com/rust-lang/crates.io-index"
88
+ checksum = "cea70ddb795996207ad57735b50c5982d8844f38ba9ee5f1aedcfb708a2aa11e"
89
+ dependencies = [
90
+ "equivalent",
91
+ "hashbrown",
92
+ ]
93
+
94
+ [[package]]
95
+ name = "integer-sqrt"
96
+ version = "0.1.5"
97
+ source = "registry+https://github.com/rust-lang/crates.io-index"
98
+ checksum = "276ec31bcb4a9ee45f58bec6f9ec700ae4cf4f4f8f2fa7e06cb406bd5ffdd770"
99
+ dependencies = [
100
+ "num-traits",
101
+ ]
102
+
103
+ [[package]]
104
+ name = "libc"
105
+ version = "0.2.172"
106
+ source = "registry+https://github.com/rust-lang/crates.io-index"
107
+ checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa"
108
+
109
+ [[package]]
110
+ name = "matrixmultiply"
111
+ version = "0.3.9"
112
+ source = "registry+https://github.com/rust-lang/crates.io-index"
113
+ checksum = "9380b911e3e96d10c1f415da0876389aaf1b56759054eeb0de7df940c456ba1a"
114
+ dependencies = [
115
+ "autocfg",
116
+ "rawpointer",
117
+ ]
118
+
119
+ [[package]]
120
+ name = "ndarray"
121
+ version = "0.16.1"
122
+ source = "registry+https://github.com/rust-lang/crates.io-index"
123
+ checksum = "882ed72dce9365842bf196bdeedf5055305f11fc8c03dee7bb0194a6cad34841"
124
+ dependencies = [
125
+ "matrixmultiply",
126
+ "num-complex",
127
+ "num-integer",
128
+ "num-traits",
129
+ "portable-atomic",
130
+ "portable-atomic-util",
131
+ "rawpointer",
132
+ "rayon",
133
+ ]
134
+
135
+ [[package]]
136
+ name = "num-complex"
137
+ version = "0.4.6"
138
+ source = "registry+https://github.com/rust-lang/crates.io-index"
139
+ checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
140
+ dependencies = [
141
+ "num-traits",
142
+ ]
143
+
144
+ [[package]]
145
+ name = "num-integer"
146
+ version = "0.1.46"
147
+ source = "registry+https://github.com/rust-lang/crates.io-index"
148
+ checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
149
+ dependencies = [
150
+ "num-traits",
151
+ ]
152
+
153
+ [[package]]
154
+ name = "num-traits"
155
+ version = "0.2.19"
156
+ source = "registry+https://github.com/rust-lang/crates.io-index"
157
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
158
+ dependencies = [
159
+ "autocfg",
160
+ ]
161
+
162
+ [[package]]
163
+ name = "num_cpus"
164
+ version = "1.17.0"
165
+ source = "registry+https://github.com/rust-lang/crates.io-index"
166
+ checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b"
167
+ dependencies = [
168
+ "hermit-abi",
169
+ "libc",
170
+ ]
171
+
172
+ [[package]]
173
+ name = "numpy"
174
+ version = "0.28.0"
175
+ source = "registry+https://github.com/rust-lang/crates.io-index"
176
+ checksum = "778da78c64ddc928ebf5ad9df5edf0789410ff3bdbf3619aed51cd789a6af1e2"
177
+ dependencies = [
178
+ "libc",
179
+ "ndarray",
180
+ "num-complex",
181
+ "num-integer",
182
+ "num-traits",
183
+ "pyo3",
184
+ "pyo3-build-config",
185
+ "rustc-hash",
186
+ ]
187
+
188
+ [[package]]
189
+ name = "once_cell"
190
+ version = "1.21.3"
191
+ source = "registry+https://github.com/rust-lang/crates.io-index"
192
+ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
193
+
194
+ [[package]]
195
+ name = "ordered-float"
196
+ version = "4.6.0"
197
+ source = "registry+https://github.com/rust-lang/crates.io-index"
198
+ checksum = "7bb71e1b3fa6ca1c61f383464aaf2bb0e2f8e772a1f01d486832464de363b951"
199
+ dependencies = [
200
+ "num-traits",
201
+ ]
202
+
203
+ [[package]]
204
+ name = "pathfinding"
205
+ version = "4.14.0"
206
+ source = "registry+https://github.com/rust-lang/crates.io-index"
207
+ checksum = "59ac35caa284c08f3721fb33c2741b5f763decaf42d080c8a6a722154347017e"
208
+ dependencies = [
209
+ "deprecate-until",
210
+ "indexmap",
211
+ "integer-sqrt",
212
+ "num-traits",
213
+ "rustc-hash",
214
+ "thiserror",
215
+ ]
216
+
217
+ [[package]]
218
+ name = "portable-atomic"
219
+ version = "1.11.0"
220
+ source = "registry+https://github.com/rust-lang/crates.io-index"
221
+ checksum = "350e9b48cbc6b0e028b0473b114454c6316e57336ee184ceab6e53f72c178b3e"
222
+
223
+ [[package]]
224
+ name = "portable-atomic-util"
225
+ version = "0.2.4"
226
+ source = "registry+https://github.com/rust-lang/crates.io-index"
227
+ checksum = "d8a2f0d8d040d7848a709caf78912debcc3f33ee4b3cac47d73d1e1069e83507"
228
+ dependencies = [
229
+ "portable-atomic",
230
+ ]
231
+
232
+ [[package]]
233
+ name = "proc-macro2"
234
+ version = "1.0.95"
235
+ source = "registry+https://github.com/rust-lang/crates.io-index"
236
+ checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
237
+ dependencies = [
238
+ "unicode-ident",
239
+ ]
240
+
241
+ [[package]]
242
+ name = "pyo3"
243
+ version = "0.28.3"
244
+ source = "registry+https://github.com/rust-lang/crates.io-index"
245
+ checksum = "91fd8e38a3b50ed1167fb981cd6fd60147e091784c427b8f7183a7ee32c31c12"
246
+ dependencies = [
247
+ "libc",
248
+ "once_cell",
249
+ "portable-atomic",
250
+ "pyo3-build-config",
251
+ "pyo3-ffi",
252
+ "pyo3-macros",
253
+ ]
254
+
255
+ [[package]]
256
+ name = "pyo3-build-config"
257
+ version = "0.28.3"
258
+ source = "registry+https://github.com/rust-lang/crates.io-index"
259
+ checksum = "e368e7ddfdeb98c9bca7f8383be1648fd84ab466bf2bc015e94008db6d35611e"
260
+ dependencies = [
261
+ "target-lexicon",
262
+ ]
263
+
264
+ [[package]]
265
+ name = "pyo3-built"
266
+ version = "0.5.0"
267
+ source = "registry+https://github.com/rust-lang/crates.io-index"
268
+ checksum = "35ee655adc94166665a1d714b439e27857dd199b947076891d6a17d32d396cde"
269
+
270
+ [[package]]
271
+ name = "pyo3-ffi"
272
+ version = "0.28.3"
273
+ source = "registry+https://github.com/rust-lang/crates.io-index"
274
+ checksum = "7f29e10af80b1f7ccaf7f69eace800a03ecd13e883acfacc1e5d0988605f651e"
275
+ dependencies = [
276
+ "libc",
277
+ "pyo3-build-config",
278
+ ]
279
+
280
+ [[package]]
281
+ name = "pyo3-macros"
282
+ version = "0.28.3"
283
+ source = "registry+https://github.com/rust-lang/crates.io-index"
284
+ checksum = "df6e520eff47c45997d2fc7dd8214b25dd1310918bbb2642156ef66a67f29813"
285
+ dependencies = [
286
+ "proc-macro2",
287
+ "pyo3-macros-backend",
288
+ "quote",
289
+ "syn",
290
+ ]
291
+
292
+ [[package]]
293
+ name = "pyo3-macros-backend"
294
+ version = "0.28.3"
295
+ source = "registry+https://github.com/rust-lang/crates.io-index"
296
+ checksum = "c4cdc218d835738f81c2338f822078af45b4afdf8b2e33cbb5916f108b813acb"
297
+ dependencies = [
298
+ "heck",
299
+ "proc-macro2",
300
+ "pyo3-build-config",
301
+ "quote",
302
+ "syn",
303
+ ]
304
+
305
+ [[package]]
306
+ name = "quote"
307
+ version = "1.0.40"
308
+ source = "registry+https://github.com/rust-lang/crates.io-index"
309
+ checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
310
+ dependencies = [
311
+ "proc-macro2",
312
+ ]
313
+
314
+ [[package]]
315
+ name = "rawpointer"
316
+ version = "0.2.1"
317
+ source = "registry+https://github.com/rust-lang/crates.io-index"
318
+ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
319
+
320
+ [[package]]
321
+ name = "rayon"
322
+ version = "1.11.0"
323
+ source = "registry+https://github.com/rust-lang/crates.io-index"
324
+ checksum = "368f01d005bf8fd9b1206fb6fa653e6c4a81ceb1466406b81792d87c5677a58f"
325
+ dependencies = [
326
+ "either",
327
+ "rayon-core",
328
+ ]
329
+
330
+ [[package]]
331
+ name = "rayon-core"
332
+ version = "1.13.0"
333
+ source = "registry+https://github.com/rust-lang/crates.io-index"
334
+ checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
335
+ dependencies = [
336
+ "crossbeam-deque",
337
+ "crossbeam-utils",
338
+ ]
339
+
340
+ [[package]]
341
+ name = "rust_conn"
342
+ version = "2.2.0"
343
+ dependencies = [
344
+ "anyhow",
345
+ "ndarray",
346
+ "num_cpus",
347
+ "numpy",
348
+ "ordered-float",
349
+ "pathfinding",
350
+ "pyo3",
351
+ "pyo3-build-config",
352
+ "pyo3-built",
353
+ "rayon",
354
+ "rustc-hash",
355
+ ]
356
+
357
+ [[package]]
358
+ name = "rustc-hash"
359
+ version = "2.1.1"
360
+ source = "registry+https://github.com/rust-lang/crates.io-index"
361
+ checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"
362
+
363
+ [[package]]
364
+ name = "semver"
365
+ version = "1.0.26"
366
+ source = "registry+https://github.com/rust-lang/crates.io-index"
367
+ checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0"
368
+
369
+ [[package]]
370
+ name = "syn"
371
+ version = "2.0.101"
372
+ source = "registry+https://github.com/rust-lang/crates.io-index"
373
+ checksum = "8ce2b7fc941b3a24138a0a7cf8e858bfc6a992e7978a068a5c760deb0ed43caf"
374
+ dependencies = [
375
+ "proc-macro2",
376
+ "quote",
377
+ "unicode-ident",
378
+ ]
379
+
380
+ [[package]]
381
+ name = "target-lexicon"
382
+ version = "0.13.5"
383
+ source = "registry+https://github.com/rust-lang/crates.io-index"
384
+ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
385
+
386
+ [[package]]
387
+ name = "thiserror"
388
+ version = "2.0.12"
389
+ source = "registry+https://github.com/rust-lang/crates.io-index"
390
+ checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708"
391
+ dependencies = [
392
+ "thiserror-impl",
393
+ ]
394
+
395
+ [[package]]
396
+ name = "thiserror-impl"
397
+ version = "2.0.12"
398
+ source = "registry+https://github.com/rust-lang/crates.io-index"
399
+ checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d"
400
+ dependencies = [
401
+ "proc-macro2",
402
+ "quote",
403
+ "syn",
404
+ ]
405
+
406
+ [[package]]
407
+ name = "unicode-ident"
408
+ version = "1.0.18"
409
+ source = "registry+https://github.com/rust-lang/crates.io-index"
410
+ checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
@@ -0,0 +1,33 @@
1
+ [package]
2
+ name = "rust_conn"
3
+ version = "2.2.0"
4
+ edition = "2021"
5
+ license = "MIT"
6
+ readme = "README.md"
7
+
8
+ # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
9
+ [lib]
10
+ name = "rust_conn"
11
+ crate-type = ["cdylib"]
12
+
13
+ [dependencies]
14
+ pyo3 = {version = "0.28", default-features = false, features = ["macros", "abi3-py38"]}
15
+ pyo3-built = "0.5"
16
+ numpy = "0.28"
17
+ ndarray = { version = "0.16", features = ["rayon"] }
18
+ pathfinding = "4.14.0"
19
+ ordered-float = "4.2.0"
20
+ rayon = "1.11"
21
+ num_cpus = "1.16"
22
+ anyhow = "1.0.100"
23
+ rustc-hash = "2.1"
24
+
25
+ [build-dependencies]
26
+ pyo3-build-config = { version = "0.28", features = ["resolve-config"] }
27
+
28
+ [profile.release]
29
+ # Stripped builds fail to load on recent macOS (dyld: "mis-aligned LINKEDIT string pool")
30
+ strip = false
31
+ lto = true
32
+ codegen-units = 1
33
+ opt-level = 3
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.