pangolin-rust-backend 0.1.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.
- pangolin_rust_backend-0.1.0/Cargo.lock +564 -0
- pangolin_rust_backend-0.1.0/Cargo.toml +17 -0
- pangolin_rust_backend-0.1.0/PKG-INFO +39 -0
- pangolin_rust_backend-0.1.0/README.md +31 -0
- pangolin_rust_backend-0.1.0/pyproject.toml +13 -0
- pangolin_rust_backend-0.1.0/src/autodiff/rules.rs +836 -0
- pangolin_rust_backend-0.1.0/src/autodiff.rs +703 -0
- pangolin_rust_backend-0.1.0/src/cdf.rs +515 -0
- pangolin_rust_backend-0.1.0/src/distributions.rs +359 -0
- pangolin_rust_backend-0.1.0/src/evaluator.rs +820 -0
- pangolin_rust_backend-0.1.0/src/hmc.rs +307 -0
- pangolin_rust_backend-0.1.0/src/lib.rs +225 -0
- pangolin_rust_backend-0.1.0/src/mixed_hmc.rs +351 -0
- pangolin_rust_backend-0.1.0/src/probability.rs +185 -0
- pangolin_rust_backend-0.1.0/src/tensor.rs +390 -0
|
@@ -0,0 +1,564 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "approx"
|
|
7
|
+
version = "0.5.1"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"num-traits",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[[package]]
|
|
15
|
+
name = "autocfg"
|
|
16
|
+
version = "1.5.1"
|
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
19
|
+
|
|
20
|
+
[[package]]
|
|
21
|
+
name = "bytemuck"
|
|
22
|
+
version = "1.25.2"
|
|
23
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
+
checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797"
|
|
25
|
+
|
|
26
|
+
[[package]]
|
|
27
|
+
name = "cfg-if"
|
|
28
|
+
version = "1.0.5"
|
|
29
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
30
|
+
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
|
31
|
+
|
|
32
|
+
[[package]]
|
|
33
|
+
name = "getrandom"
|
|
34
|
+
version = "0.3.4"
|
|
35
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
36
|
+
checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
|
|
37
|
+
dependencies = [
|
|
38
|
+
"cfg-if",
|
|
39
|
+
"libc",
|
|
40
|
+
"r-efi",
|
|
41
|
+
"wasip2",
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
[[package]]
|
|
45
|
+
name = "glam"
|
|
46
|
+
version = "0.14.0"
|
|
47
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
48
|
+
checksum = "333928d5eb103c5d4050533cec0384302db6be8ef7d3cebd30ec6a35350353da"
|
|
49
|
+
|
|
50
|
+
[[package]]
|
|
51
|
+
name = "glam"
|
|
52
|
+
version = "0.15.2"
|
|
53
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
54
|
+
checksum = "3abb554f8ee44336b72d522e0a7fe86a29e09f839a36022fa869a7dfe941a54b"
|
|
55
|
+
|
|
56
|
+
[[package]]
|
|
57
|
+
name = "glam"
|
|
58
|
+
version = "0.16.0"
|
|
59
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
60
|
+
checksum = "4126c0479ccf7e8664c36a2d719f5f2c140fbb4f9090008098d2c291fa5b3f16"
|
|
61
|
+
|
|
62
|
+
[[package]]
|
|
63
|
+
name = "glam"
|
|
64
|
+
version = "0.17.3"
|
|
65
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
66
|
+
checksum = "e01732b97afd8508eee3333a541b9f7610f454bb818669e66e90f5f57c93a776"
|
|
67
|
+
|
|
68
|
+
[[package]]
|
|
69
|
+
name = "glam"
|
|
70
|
+
version = "0.18.0"
|
|
71
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
72
|
+
checksum = "525a3e490ba77b8e326fb67d4b44b4bd2f920f44d4cc73ccec50adc68e3bee34"
|
|
73
|
+
|
|
74
|
+
[[package]]
|
|
75
|
+
name = "glam"
|
|
76
|
+
version = "0.19.0"
|
|
77
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
78
|
+
checksum = "2b8509e6791516e81c1a630d0bd7fbac36d2fa8712a9da8662e716b52d5051ca"
|
|
79
|
+
|
|
80
|
+
[[package]]
|
|
81
|
+
name = "glam"
|
|
82
|
+
version = "0.20.5"
|
|
83
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
84
|
+
checksum = "f43e957e744be03f5801a55472f593d43fabdebf25a4585db250f04d86b1675f"
|
|
85
|
+
|
|
86
|
+
[[package]]
|
|
87
|
+
name = "glam"
|
|
88
|
+
version = "0.21.3"
|
|
89
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
90
|
+
checksum = "518faa5064866338b013ff9b2350dc318e14cc4fcd6cb8206d7e7c9886c98815"
|
|
91
|
+
|
|
92
|
+
[[package]]
|
|
93
|
+
name = "glam"
|
|
94
|
+
version = "0.22.0"
|
|
95
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
96
|
+
checksum = "12f597d56c1bd55a811a1be189459e8fad2bbc272616375602443bdfb37fa774"
|
|
97
|
+
|
|
98
|
+
[[package]]
|
|
99
|
+
name = "glam"
|
|
100
|
+
version = "0.23.0"
|
|
101
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
102
|
+
checksum = "8e4afd9ad95555081e109fe1d21f2a30c691b5f0919c67dfa690a2e1eb6bd51c"
|
|
103
|
+
|
|
104
|
+
[[package]]
|
|
105
|
+
name = "glam"
|
|
106
|
+
version = "0.24.2"
|
|
107
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
108
|
+
checksum = "b5418c17512bdf42730f9032c74e1ae39afc408745ebb2acf72fbc4691c17945"
|
|
109
|
+
|
|
110
|
+
[[package]]
|
|
111
|
+
name = "glam"
|
|
112
|
+
version = "0.25.0"
|
|
113
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
114
|
+
checksum = "151665d9be52f9bb40fc7966565d39666f2d1e69233571b71b87791c7e0528b3"
|
|
115
|
+
|
|
116
|
+
[[package]]
|
|
117
|
+
name = "glam"
|
|
118
|
+
version = "0.27.0"
|
|
119
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
120
|
+
checksum = "9e05e7e6723e3455f4818c7b26e855439f7546cf617ef669d1adedb8669e5cb9"
|
|
121
|
+
|
|
122
|
+
[[package]]
|
|
123
|
+
name = "glam"
|
|
124
|
+
version = "0.28.0"
|
|
125
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
126
|
+
checksum = "779ae4bf7e8421cf91c0b3b64e7e8b40b862fba4d393f59150042de7c4965a94"
|
|
127
|
+
|
|
128
|
+
[[package]]
|
|
129
|
+
name = "glam"
|
|
130
|
+
version = "0.29.3"
|
|
131
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
132
|
+
checksum = "8babf46d4c1c9d92deac9f7be466f76dfc4482b6452fc5024b5e8daf6ffeb3ee"
|
|
133
|
+
|
|
134
|
+
[[package]]
|
|
135
|
+
name = "glam"
|
|
136
|
+
version = "0.30.10"
|
|
137
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
138
|
+
checksum = "19fc433e8437a212d1b6f1e68c7824af3aed907da60afa994e7f542d18d12aa9"
|
|
139
|
+
|
|
140
|
+
[[package]]
|
|
141
|
+
name = "glam"
|
|
142
|
+
version = "0.31.1"
|
|
143
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
144
|
+
checksum = "556f6b2ea90b8d15a74e0e7bb41671c9bdf38cd9f78c284d750b9ce58a2b5be7"
|
|
145
|
+
|
|
146
|
+
[[package]]
|
|
147
|
+
name = "glam"
|
|
148
|
+
version = "0.32.1"
|
|
149
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
150
|
+
checksum = "f70749695b063ecbf6b62949ccccde2e733ec3ecbbd71d467dca4e5c6c97cca0"
|
|
151
|
+
|
|
152
|
+
[[package]]
|
|
153
|
+
name = "heck"
|
|
154
|
+
version = "0.5.0"
|
|
155
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
156
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
157
|
+
|
|
158
|
+
[[package]]
|
|
159
|
+
name = "indoc"
|
|
160
|
+
version = "2.0.8"
|
|
161
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
162
|
+
checksum = "a37b2691796cffeb8a8cd305ac66e65841559f147f4e63231d0eafa4db5384d1"
|
|
163
|
+
dependencies = [
|
|
164
|
+
"rustversion",
|
|
165
|
+
]
|
|
166
|
+
|
|
167
|
+
[[package]]
|
|
168
|
+
name = "libc"
|
|
169
|
+
version = "0.2.191"
|
|
170
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
171
|
+
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
172
|
+
|
|
173
|
+
[[package]]
|
|
174
|
+
name = "libm"
|
|
175
|
+
version = "0.2.16"
|
|
176
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
177
|
+
checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
|
|
178
|
+
|
|
179
|
+
[[package]]
|
|
180
|
+
name = "matrixmultiply"
|
|
181
|
+
version = "0.3.11"
|
|
182
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
183
|
+
checksum = "3f607c237553f086e7043417a51df26b2eb899d3caff94e6a67592ff992fedc7"
|
|
184
|
+
dependencies = [
|
|
185
|
+
"autocfg",
|
|
186
|
+
"rawpointer",
|
|
187
|
+
]
|
|
188
|
+
|
|
189
|
+
[[package]]
|
|
190
|
+
name = "memoffset"
|
|
191
|
+
version = "0.9.1"
|
|
192
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
193
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
194
|
+
dependencies = [
|
|
195
|
+
"autocfg",
|
|
196
|
+
]
|
|
197
|
+
|
|
198
|
+
[[package]]
|
|
199
|
+
name = "nalgebra"
|
|
200
|
+
version = "0.34.2"
|
|
201
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
202
|
+
checksum = "df76ea0ff5c7e6b88689085804d6132ded0ddb9de5ca5b8aeb9eeadc0508a70a"
|
|
203
|
+
dependencies = [
|
|
204
|
+
"approx",
|
|
205
|
+
"glam 0.14.0",
|
|
206
|
+
"glam 0.15.2",
|
|
207
|
+
"glam 0.16.0",
|
|
208
|
+
"glam 0.17.3",
|
|
209
|
+
"glam 0.18.0",
|
|
210
|
+
"glam 0.19.0",
|
|
211
|
+
"glam 0.20.5",
|
|
212
|
+
"glam 0.21.3",
|
|
213
|
+
"glam 0.22.0",
|
|
214
|
+
"glam 0.23.0",
|
|
215
|
+
"glam 0.24.2",
|
|
216
|
+
"glam 0.25.0",
|
|
217
|
+
"glam 0.27.0",
|
|
218
|
+
"glam 0.28.0",
|
|
219
|
+
"glam 0.29.3",
|
|
220
|
+
"glam 0.30.10",
|
|
221
|
+
"glam 0.31.1",
|
|
222
|
+
"glam 0.32.1",
|
|
223
|
+
"matrixmultiply",
|
|
224
|
+
"num-complex",
|
|
225
|
+
"num-rational",
|
|
226
|
+
"num-traits",
|
|
227
|
+
"simba",
|
|
228
|
+
"typenum",
|
|
229
|
+
]
|
|
230
|
+
|
|
231
|
+
[[package]]
|
|
232
|
+
name = "num-bigint"
|
|
233
|
+
version = "0.4.8"
|
|
234
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
235
|
+
checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367"
|
|
236
|
+
dependencies = [
|
|
237
|
+
"num-integer",
|
|
238
|
+
"num-traits",
|
|
239
|
+
]
|
|
240
|
+
|
|
241
|
+
[[package]]
|
|
242
|
+
name = "num-complex"
|
|
243
|
+
version = "0.4.6"
|
|
244
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
245
|
+
checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
|
|
246
|
+
dependencies = [
|
|
247
|
+
"num-traits",
|
|
248
|
+
]
|
|
249
|
+
|
|
250
|
+
[[package]]
|
|
251
|
+
name = "num-integer"
|
|
252
|
+
version = "0.1.47"
|
|
253
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
254
|
+
checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
|
|
255
|
+
dependencies = [
|
|
256
|
+
"num-traits",
|
|
257
|
+
]
|
|
258
|
+
|
|
259
|
+
[[package]]
|
|
260
|
+
name = "num-rational"
|
|
261
|
+
version = "0.4.2"
|
|
262
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
263
|
+
checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
|
|
264
|
+
dependencies = [
|
|
265
|
+
"num-bigint",
|
|
266
|
+
"num-integer",
|
|
267
|
+
"num-traits",
|
|
268
|
+
]
|
|
269
|
+
|
|
270
|
+
[[package]]
|
|
271
|
+
name = "num-traits"
|
|
272
|
+
version = "0.2.19"
|
|
273
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
274
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
275
|
+
dependencies = [
|
|
276
|
+
"autocfg",
|
|
277
|
+
"libm",
|
|
278
|
+
]
|
|
279
|
+
|
|
280
|
+
[[package]]
|
|
281
|
+
name = "once_cell"
|
|
282
|
+
version = "1.21.4"
|
|
283
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
284
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
285
|
+
|
|
286
|
+
[[package]]
|
|
287
|
+
name = "pangolin-rust-backend"
|
|
288
|
+
version = "0.1.0"
|
|
289
|
+
dependencies = [
|
|
290
|
+
"nalgebra",
|
|
291
|
+
"pyo3",
|
|
292
|
+
"rand",
|
|
293
|
+
"rand_distr",
|
|
294
|
+
"statrs",
|
|
295
|
+
]
|
|
296
|
+
|
|
297
|
+
[[package]]
|
|
298
|
+
name = "paste"
|
|
299
|
+
version = "1.0.15"
|
|
300
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
301
|
+
checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
|
|
302
|
+
|
|
303
|
+
[[package]]
|
|
304
|
+
name = "portable-atomic"
|
|
305
|
+
version = "1.15.0"
|
|
306
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
307
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
308
|
+
|
|
309
|
+
[[package]]
|
|
310
|
+
name = "ppv-lite86"
|
|
311
|
+
version = "0.2.21"
|
|
312
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
313
|
+
checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
|
|
314
|
+
dependencies = [
|
|
315
|
+
"zerocopy",
|
|
316
|
+
]
|
|
317
|
+
|
|
318
|
+
[[package]]
|
|
319
|
+
name = "proc-macro2"
|
|
320
|
+
version = "1.0.107"
|
|
321
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
322
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
323
|
+
dependencies = [
|
|
324
|
+
"unicode-ident",
|
|
325
|
+
]
|
|
326
|
+
|
|
327
|
+
[[package]]
|
|
328
|
+
name = "pyo3"
|
|
329
|
+
version = "0.27.2"
|
|
330
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
331
|
+
checksum = "ab53c047fcd1a1d2a8820fe84f05d6be69e9526be40cb03b73f86b6b03e6d87d"
|
|
332
|
+
dependencies = [
|
|
333
|
+
"indoc",
|
|
334
|
+
"libc",
|
|
335
|
+
"memoffset",
|
|
336
|
+
"once_cell",
|
|
337
|
+
"portable-atomic",
|
|
338
|
+
"pyo3-build-config",
|
|
339
|
+
"pyo3-ffi",
|
|
340
|
+
"pyo3-macros",
|
|
341
|
+
"unindent",
|
|
342
|
+
]
|
|
343
|
+
|
|
344
|
+
[[package]]
|
|
345
|
+
name = "pyo3-build-config"
|
|
346
|
+
version = "0.27.2"
|
|
347
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
348
|
+
checksum = "b455933107de8642b4487ed26d912c2d899dec6114884214a0b3bb3be9261ea6"
|
|
349
|
+
dependencies = [
|
|
350
|
+
"target-lexicon",
|
|
351
|
+
]
|
|
352
|
+
|
|
353
|
+
[[package]]
|
|
354
|
+
name = "pyo3-ffi"
|
|
355
|
+
version = "0.27.2"
|
|
356
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
357
|
+
checksum = "1c85c9cbfaddf651b1221594209aed57e9e5cff63c4d11d1feead529b872a089"
|
|
358
|
+
dependencies = [
|
|
359
|
+
"libc",
|
|
360
|
+
"pyo3-build-config",
|
|
361
|
+
]
|
|
362
|
+
|
|
363
|
+
[[package]]
|
|
364
|
+
name = "pyo3-macros"
|
|
365
|
+
version = "0.27.2"
|
|
366
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
367
|
+
checksum = "0a5b10c9bf9888125d917fb4d2ca2d25c8df94c7ab5a52e13313a07e050a3b02"
|
|
368
|
+
dependencies = [
|
|
369
|
+
"proc-macro2",
|
|
370
|
+
"pyo3-macros-backend",
|
|
371
|
+
"quote",
|
|
372
|
+
"syn",
|
|
373
|
+
]
|
|
374
|
+
|
|
375
|
+
[[package]]
|
|
376
|
+
name = "pyo3-macros-backend"
|
|
377
|
+
version = "0.27.2"
|
|
378
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
379
|
+
checksum = "03b51720d314836e53327f5871d4c0cfb4fb37cc2c4a11cc71907a86342c40f9"
|
|
380
|
+
dependencies = [
|
|
381
|
+
"heck",
|
|
382
|
+
"proc-macro2",
|
|
383
|
+
"pyo3-build-config",
|
|
384
|
+
"quote",
|
|
385
|
+
"syn",
|
|
386
|
+
]
|
|
387
|
+
|
|
388
|
+
[[package]]
|
|
389
|
+
name = "quote"
|
|
390
|
+
version = "1.0.47"
|
|
391
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
392
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
393
|
+
dependencies = [
|
|
394
|
+
"proc-macro2",
|
|
395
|
+
]
|
|
396
|
+
|
|
397
|
+
[[package]]
|
|
398
|
+
name = "r-efi"
|
|
399
|
+
version = "5.3.0"
|
|
400
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
401
|
+
checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
|
|
402
|
+
|
|
403
|
+
[[package]]
|
|
404
|
+
name = "rand"
|
|
405
|
+
version = "0.9.5"
|
|
406
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
407
|
+
checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41"
|
|
408
|
+
dependencies = [
|
|
409
|
+
"rand_chacha",
|
|
410
|
+
"rand_core",
|
|
411
|
+
]
|
|
412
|
+
|
|
413
|
+
[[package]]
|
|
414
|
+
name = "rand_chacha"
|
|
415
|
+
version = "0.9.0"
|
|
416
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
417
|
+
checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
|
|
418
|
+
dependencies = [
|
|
419
|
+
"ppv-lite86",
|
|
420
|
+
"rand_core",
|
|
421
|
+
]
|
|
422
|
+
|
|
423
|
+
[[package]]
|
|
424
|
+
name = "rand_core"
|
|
425
|
+
version = "0.9.5"
|
|
426
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
427
|
+
checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"
|
|
428
|
+
dependencies = [
|
|
429
|
+
"getrandom",
|
|
430
|
+
]
|
|
431
|
+
|
|
432
|
+
[[package]]
|
|
433
|
+
name = "rand_distr"
|
|
434
|
+
version = "0.5.1"
|
|
435
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
436
|
+
checksum = "6a8615d50dcf34fa31f7ab52692afec947c4dd0ab803cc87cb3b0b4570ff7463"
|
|
437
|
+
dependencies = [
|
|
438
|
+
"num-traits",
|
|
439
|
+
"rand",
|
|
440
|
+
]
|
|
441
|
+
|
|
442
|
+
[[package]]
|
|
443
|
+
name = "rawpointer"
|
|
444
|
+
version = "0.2.1"
|
|
445
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
446
|
+
checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
|
|
447
|
+
|
|
448
|
+
[[package]]
|
|
449
|
+
name = "rustversion"
|
|
450
|
+
version = "1.0.23"
|
|
451
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
452
|
+
checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
|
|
453
|
+
|
|
454
|
+
[[package]]
|
|
455
|
+
name = "safe_arch"
|
|
456
|
+
version = "0.7.4"
|
|
457
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
458
|
+
checksum = "96b02de82ddbe1b636e6170c21be622223aea188ef2e139be0a5b219ec215323"
|
|
459
|
+
dependencies = [
|
|
460
|
+
"bytemuck",
|
|
461
|
+
]
|
|
462
|
+
|
|
463
|
+
[[package]]
|
|
464
|
+
name = "simba"
|
|
465
|
+
version = "0.9.1"
|
|
466
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
467
|
+
checksum = "c99284beb21666094ba2b75bbceda012e610f5479dfcc2d6e2426f53197ffd95"
|
|
468
|
+
dependencies = [
|
|
469
|
+
"approx",
|
|
470
|
+
"num-complex",
|
|
471
|
+
"num-traits",
|
|
472
|
+
"paste",
|
|
473
|
+
"wide",
|
|
474
|
+
]
|
|
475
|
+
|
|
476
|
+
[[package]]
|
|
477
|
+
name = "statrs"
|
|
478
|
+
version = "0.18.0"
|
|
479
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
480
|
+
checksum = "2a3fe7c28c6512e766b0874335db33c94ad7b8f9054228ae1c2abd47ce7d335e"
|
|
481
|
+
dependencies = [
|
|
482
|
+
"approx",
|
|
483
|
+
"num-traits",
|
|
484
|
+
]
|
|
485
|
+
|
|
486
|
+
[[package]]
|
|
487
|
+
name = "syn"
|
|
488
|
+
version = "2.0.119"
|
|
489
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
490
|
+
checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
|
|
491
|
+
dependencies = [
|
|
492
|
+
"proc-macro2",
|
|
493
|
+
"quote",
|
|
494
|
+
"unicode-ident",
|
|
495
|
+
]
|
|
496
|
+
|
|
497
|
+
[[package]]
|
|
498
|
+
name = "target-lexicon"
|
|
499
|
+
version = "0.13.5"
|
|
500
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
501
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
502
|
+
|
|
503
|
+
[[package]]
|
|
504
|
+
name = "typenum"
|
|
505
|
+
version = "1.20.1"
|
|
506
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
507
|
+
checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
|
|
508
|
+
|
|
509
|
+
[[package]]
|
|
510
|
+
name = "unicode-ident"
|
|
511
|
+
version = "1.0.27"
|
|
512
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
513
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
514
|
+
|
|
515
|
+
[[package]]
|
|
516
|
+
name = "unindent"
|
|
517
|
+
version = "0.2.4"
|
|
518
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
519
|
+
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
|
|
520
|
+
|
|
521
|
+
[[package]]
|
|
522
|
+
name = "wasip2"
|
|
523
|
+
version = "1.0.4+wasi-0.2.12"
|
|
524
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
525
|
+
checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"
|
|
526
|
+
dependencies = [
|
|
527
|
+
"wit-bindgen",
|
|
528
|
+
]
|
|
529
|
+
|
|
530
|
+
[[package]]
|
|
531
|
+
name = "wide"
|
|
532
|
+
version = "0.7.33"
|
|
533
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
534
|
+
checksum = "0ce5da8ecb62bcd8ec8b7ea19f69a51275e91299be594ea5cc6ef7819e16cd03"
|
|
535
|
+
dependencies = [
|
|
536
|
+
"bytemuck",
|
|
537
|
+
"safe_arch",
|
|
538
|
+
]
|
|
539
|
+
|
|
540
|
+
[[package]]
|
|
541
|
+
name = "wit-bindgen"
|
|
542
|
+
version = "0.57.1"
|
|
543
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
544
|
+
checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
|
|
545
|
+
|
|
546
|
+
[[package]]
|
|
547
|
+
name = "zerocopy"
|
|
548
|
+
version = "0.8.63"
|
|
549
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
550
|
+
checksum = "e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8"
|
|
551
|
+
dependencies = [
|
|
552
|
+
"zerocopy-derive",
|
|
553
|
+
]
|
|
554
|
+
|
|
555
|
+
[[package]]
|
|
556
|
+
name = "zerocopy-derive"
|
|
557
|
+
version = "0.8.63"
|
|
558
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
559
|
+
checksum = "863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f"
|
|
560
|
+
dependencies = [
|
|
561
|
+
"proc-macro2",
|
|
562
|
+
"quote",
|
|
563
|
+
"syn",
|
|
564
|
+
]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "pangolin-rust-backend"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
publish = false
|
|
6
|
+
readme = "README.md"
|
|
7
|
+
|
|
8
|
+
[lib]
|
|
9
|
+
name = "_pangolin_rust"
|
|
10
|
+
crate-type = ["cdylib"]
|
|
11
|
+
|
|
12
|
+
[dependencies]
|
|
13
|
+
pyo3 = { version = "0.27", features = ["extension-module", "abi3-py312"] }
|
|
14
|
+
rand = "0.9"
|
|
15
|
+
rand_distr = "0.5"
|
|
16
|
+
nalgebra = { version = "0.34", default-features = false, features = ["std"] }
|
|
17
|
+
statrs = { version = "0.18", default-features = false }
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pangolin-rust-backend
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Experimental Rust evaluator for Pangolin
|
|
5
|
+
Requires-Python: >=3.12
|
|
6
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
7
|
+
|
|
8
|
+
# Pangolin Rust backend
|
|
9
|
+
|
|
10
|
+
Install Pangolin with its optional Rust backend:
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
python -m pip install "pangolin[rust]"
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
To add the extension to an existing Pangolin installation:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
python -m pip install pangolin-rust-backend
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The backend is distributed as source and compiles during installation. It requires
|
|
23
|
+
Python 3.12 or newer, [Rust and Cargo](https://www.rust-lang.org/tools/install),
|
|
24
|
+
and the platform's build tools:
|
|
25
|
+
|
|
26
|
+
- Linux: a C compiler and linker (for example, Ubuntu's `build-essential`).
|
|
27
|
+
- macOS: Xcode Command Line Tools (`xcode-select --install`).
|
|
28
|
+
- Windows: Visual Studio Build Tools with the Desktop development with C++ workload.
|
|
29
|
+
|
|
30
|
+
Maturin is installed automatically as a build dependency.
|
|
31
|
+
|
|
32
|
+
From a Pangolin source checkout, install the local backend with:
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
python -m pip install ./pangolin-rust-backend
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
See [Pangolin](https://github.com/justindomke/pangolin) for usage documentation.
|
|
39
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Pangolin Rust backend
|
|
2
|
+
|
|
3
|
+
Install Pangolin with its optional Rust backend:
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
python -m pip install "pangolin[rust]"
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
To add the extension to an existing Pangolin installation:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
python -m pip install pangolin-rust-backend
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
The backend is distributed as source and compiles during installation. It requires
|
|
16
|
+
Python 3.12 or newer, [Rust and Cargo](https://www.rust-lang.org/tools/install),
|
|
17
|
+
and the platform's build tools:
|
|
18
|
+
|
|
19
|
+
- Linux: a C compiler and linker (for example, Ubuntu's `build-essential`).
|
|
20
|
+
- macOS: Xcode Command Line Tools (`xcode-select --install`).
|
|
21
|
+
- Windows: Visual Studio Build Tools with the Desktop development with C++ workload.
|
|
22
|
+
|
|
23
|
+
Maturin is installed automatically as a build dependency.
|
|
24
|
+
|
|
25
|
+
From a Pangolin source checkout, install the local backend with:
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
python -m pip install ./pangolin-rust-backend
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
See [Pangolin](https://github.com/justindomke/pangolin) for usage documentation.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["maturin>=1.9,<2"]
|
|
3
|
+
build-backend = "maturin"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "pangolin-rust-backend"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
requires-python = ">=3.12"
|
|
9
|
+
description = "Experimental Rust evaluator for Pangolin"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
|
|
12
|
+
[tool.maturin]
|
|
13
|
+
module-name = "_pangolin_rust"
|