hashcodecs 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.
- hashcodecs-0.1.0/.gitignore +28 -0
- hashcodecs-0.1.0/Cargo.lock +602 -0
- hashcodecs-0.1.0/Cargo.toml +51 -0
- hashcodecs-0.1.0/LICENSE +201 -0
- hashcodecs-0.1.0/LICENSE-MIT +21 -0
- hashcodecs-0.1.0/PKG-INFO +141 -0
- hashcodecs-0.1.0/README.md +127 -0
- hashcodecs-0.1.0/benches/base64.rs +176 -0
- hashcodecs-0.1.0/benches/murmur3.rs +140 -0
- hashcodecs-0.1.0/benches/support/mod.rs +61 -0
- hashcodecs-0.1.0/benchmarks/python_base64.py +200 -0
- hashcodecs-0.1.0/build.rs +9 -0
- hashcodecs-0.1.0/hatch_build.py +56 -0
- hashcodecs-0.1.0/pyproject.toml +91 -0
- hashcodecs-0.1.0/python/hashcodecs/__init__.py +16 -0
- hashcodecs-0.1.0/python/hashcodecs/_hashcodecs.pyi +11 -0
- hashcodecs-0.1.0/python/hashcodecs/base64.py +33 -0
- hashcodecs-0.1.0/python/hashcodecs/base64.pyi +12 -0
- hashcodecs-0.1.0/python/hashcodecs/murmur3.py +9 -0
- hashcodecs-0.1.0/python/hashcodecs/py.typed +1 -0
- hashcodecs-0.1.0/src/base64.rs +1603 -0
- hashcodecs-0.1.0/src/lib.rs +19 -0
- hashcodecs-0.1.0/src/murmur3.rs +337 -0
- hashcodecs-0.1.0/src/python.rs +364 -0
- hashcodecs-0.1.0/tests/test_python_api.py +156 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Generated by Cargo
|
|
2
|
+
# will have compiled files and executables
|
|
3
|
+
debug
|
|
4
|
+
target
|
|
5
|
+
dist
|
|
6
|
+
.venv
|
|
7
|
+
.coverage
|
|
8
|
+
coverage.xml
|
|
9
|
+
|
|
10
|
+
# These are backup files generated by rustfmt
|
|
11
|
+
**/*.rs.bk
|
|
12
|
+
|
|
13
|
+
# MSVC Windows builds of rustc generate these, which store debugging information
|
|
14
|
+
*.pdb
|
|
15
|
+
|
|
16
|
+
# Generated by cargo mutants
|
|
17
|
+
# Contains mutation testing data
|
|
18
|
+
**/mutants.out*/
|
|
19
|
+
|
|
20
|
+
# RustRover
|
|
21
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
22
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
23
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
24
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
25
|
+
.idea/
|
|
26
|
+
__pycache__/
|
|
27
|
+
.pytest_cache/
|
|
28
|
+
.ruff_cache/
|
|
@@ -0,0 +1,602 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "aho-corasick"
|
|
7
|
+
version = "1.1.5"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"memchr",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[[package]]
|
|
15
|
+
name = "alloca"
|
|
16
|
+
version = "0.4.0"
|
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "e5a7d05ea6aea7e9e64d25b9156ba2fee3fdd659e34e41063cd2fc7cd020d7f4"
|
|
19
|
+
dependencies = [
|
|
20
|
+
"cc",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
[[package]]
|
|
24
|
+
name = "anes"
|
|
25
|
+
version = "0.1.6"
|
|
26
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
+
checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
|
|
28
|
+
|
|
29
|
+
[[package]]
|
|
30
|
+
name = "anstyle"
|
|
31
|
+
version = "1.0.14"
|
|
32
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
33
|
+
checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
|
|
34
|
+
|
|
35
|
+
[[package]]
|
|
36
|
+
name = "autocfg"
|
|
37
|
+
version = "1.5.1"
|
|
38
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
39
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
40
|
+
|
|
41
|
+
[[package]]
|
|
42
|
+
name = "base64"
|
|
43
|
+
version = "0.23.1"
|
|
44
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
45
|
+
checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
|
|
46
|
+
|
|
47
|
+
[[package]]
|
|
48
|
+
name = "base64-turbo"
|
|
49
|
+
version = "0.2.0"
|
|
50
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
51
|
+
checksum = "341b5725644ff53e8384ba7c17b9abd9274aa79efc2eb9cf8629cb3cc860d4e3"
|
|
52
|
+
|
|
53
|
+
[[package]]
|
|
54
|
+
name = "cast"
|
|
55
|
+
version = "0.3.0"
|
|
56
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
57
|
+
checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5"
|
|
58
|
+
|
|
59
|
+
[[package]]
|
|
60
|
+
name = "cc"
|
|
61
|
+
version = "1.4.2"
|
|
62
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
63
|
+
checksum = "5d262e149917187838d5b42777c8253bcb64500067342904e7d429499a6f277e"
|
|
64
|
+
dependencies = [
|
|
65
|
+
"find-msvc-tools",
|
|
66
|
+
"shlex",
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
[[package]]
|
|
70
|
+
name = "cfg-if"
|
|
71
|
+
version = "1.0.4"
|
|
72
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
73
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
74
|
+
|
|
75
|
+
[[package]]
|
|
76
|
+
name = "ciborium"
|
|
77
|
+
version = "0.2.2"
|
|
78
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
79
|
+
checksum = "42e69ffd6f0917f5c029256a24d0161db17cea3997d185db0d35926308770f0e"
|
|
80
|
+
dependencies = [
|
|
81
|
+
"ciborium-io",
|
|
82
|
+
"ciborium-ll",
|
|
83
|
+
"serde",
|
|
84
|
+
]
|
|
85
|
+
|
|
86
|
+
[[package]]
|
|
87
|
+
name = "ciborium-io"
|
|
88
|
+
version = "0.2.2"
|
|
89
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
90
|
+
checksum = "05afea1e0a06c9be33d539b876f1ce3692f4afea2cb41f740e7743225ed1c757"
|
|
91
|
+
|
|
92
|
+
[[package]]
|
|
93
|
+
name = "ciborium-ll"
|
|
94
|
+
version = "0.2.2"
|
|
95
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
96
|
+
checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9"
|
|
97
|
+
dependencies = [
|
|
98
|
+
"ciborium-io",
|
|
99
|
+
"half",
|
|
100
|
+
]
|
|
101
|
+
|
|
102
|
+
[[package]]
|
|
103
|
+
name = "clap"
|
|
104
|
+
version = "4.6.6"
|
|
105
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
106
|
+
checksum = "473c7e07f409a8d772161724aa8db6a765a2532a70f9667eeb7b49d3d02fbdca"
|
|
107
|
+
dependencies = [
|
|
108
|
+
"clap_builder",
|
|
109
|
+
]
|
|
110
|
+
|
|
111
|
+
[[package]]
|
|
112
|
+
name = "clap_builder"
|
|
113
|
+
version = "4.6.6"
|
|
114
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
115
|
+
checksum = "7b48fea5a88e9ae728a2dcbedbfc0e730f7d60da42e1cb049a83c9fb8b789889"
|
|
116
|
+
dependencies = [
|
|
117
|
+
"anstyle",
|
|
118
|
+
"clap_lex",
|
|
119
|
+
]
|
|
120
|
+
|
|
121
|
+
[[package]]
|
|
122
|
+
name = "clap_lex"
|
|
123
|
+
version = "1.1.0"
|
|
124
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
125
|
+
checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
|
|
126
|
+
|
|
127
|
+
[[package]]
|
|
128
|
+
name = "criterion"
|
|
129
|
+
version = "0.8.2"
|
|
130
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
131
|
+
checksum = "950046b2aa2492f9a536f5f4f9a3de7b9e2476e575e05bd6c333371add4d98f3"
|
|
132
|
+
dependencies = [
|
|
133
|
+
"alloca",
|
|
134
|
+
"anes",
|
|
135
|
+
"cast",
|
|
136
|
+
"ciborium",
|
|
137
|
+
"clap",
|
|
138
|
+
"criterion-plot",
|
|
139
|
+
"itertools",
|
|
140
|
+
"num-traits",
|
|
141
|
+
"oorandom",
|
|
142
|
+
"page_size",
|
|
143
|
+
"regex",
|
|
144
|
+
"serde",
|
|
145
|
+
"serde_json",
|
|
146
|
+
"tinytemplate",
|
|
147
|
+
"walkdir",
|
|
148
|
+
]
|
|
149
|
+
|
|
150
|
+
[[package]]
|
|
151
|
+
name = "criterion-plot"
|
|
152
|
+
version = "0.8.2"
|
|
153
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
154
|
+
checksum = "d8d80a2f4f5b554395e47b5d8305bc3d27813bacb73493eb1001e8f76dae29ea"
|
|
155
|
+
dependencies = [
|
|
156
|
+
"cast",
|
|
157
|
+
"itertools",
|
|
158
|
+
]
|
|
159
|
+
|
|
160
|
+
[[package]]
|
|
161
|
+
name = "crunchy"
|
|
162
|
+
version = "0.2.4"
|
|
163
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
164
|
+
checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
|
|
165
|
+
|
|
166
|
+
[[package]]
|
|
167
|
+
name = "either"
|
|
168
|
+
version = "1.17.0"
|
|
169
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
170
|
+
checksum = "9e5e8f6c15a24b9a3ee5efec809ccd006d3b30e8b3bb63c39af737c7f87daa1d"
|
|
171
|
+
|
|
172
|
+
[[package]]
|
|
173
|
+
name = "fastmurmur3"
|
|
174
|
+
version = "0.2.0"
|
|
175
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
176
|
+
checksum = "2d7e9bc68be4cdabbb8938140b01a8b5bc1191937f2c7e7ecc2fcebbe2d749df"
|
|
177
|
+
|
|
178
|
+
[[package]]
|
|
179
|
+
name = "find-msvc-tools"
|
|
180
|
+
version = "0.1.10"
|
|
181
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
182
|
+
checksum = "26b73573e6edcd2af0cdf47bd6cb58f0b3839491263c314eaad1ccf24430e1de"
|
|
183
|
+
|
|
184
|
+
[[package]]
|
|
185
|
+
name = "half"
|
|
186
|
+
version = "2.7.1"
|
|
187
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
188
|
+
checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b"
|
|
189
|
+
dependencies = [
|
|
190
|
+
"cfg-if",
|
|
191
|
+
"crunchy",
|
|
192
|
+
"zerocopy",
|
|
193
|
+
]
|
|
194
|
+
|
|
195
|
+
[[package]]
|
|
196
|
+
name = "hashcodecs"
|
|
197
|
+
version = "0.1.0"
|
|
198
|
+
dependencies = [
|
|
199
|
+
"base64",
|
|
200
|
+
"base64-turbo",
|
|
201
|
+
"criterion",
|
|
202
|
+
"fastmurmur3",
|
|
203
|
+
"mimalloc",
|
|
204
|
+
"mm3h",
|
|
205
|
+
"murmur3",
|
|
206
|
+
"murmurs",
|
|
207
|
+
"pyo3",
|
|
208
|
+
]
|
|
209
|
+
|
|
210
|
+
[[package]]
|
|
211
|
+
name = "heck"
|
|
212
|
+
version = "0.5.0"
|
|
213
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
214
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
215
|
+
|
|
216
|
+
[[package]]
|
|
217
|
+
name = "itertools"
|
|
218
|
+
version = "0.13.0"
|
|
219
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
220
|
+
checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
|
|
221
|
+
dependencies = [
|
|
222
|
+
"either",
|
|
223
|
+
]
|
|
224
|
+
|
|
225
|
+
[[package]]
|
|
226
|
+
name = "itoa"
|
|
227
|
+
version = "1.0.18"
|
|
228
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
229
|
+
checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
|
|
230
|
+
|
|
231
|
+
[[package]]
|
|
232
|
+
name = "libc"
|
|
233
|
+
version = "0.2.189"
|
|
234
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
235
|
+
checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
|
|
236
|
+
|
|
237
|
+
[[package]]
|
|
238
|
+
name = "libmimalloc-sys"
|
|
239
|
+
version = "0.1.49"
|
|
240
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
241
|
+
checksum = "6a45a52f43e1c16f667ccfe4dd8c85b7f7c204fd5e3bf46c5b0db9a5c3c0b8e9"
|
|
242
|
+
dependencies = [
|
|
243
|
+
"cc",
|
|
244
|
+
]
|
|
245
|
+
|
|
246
|
+
[[package]]
|
|
247
|
+
name = "memchr"
|
|
248
|
+
version = "2.8.3"
|
|
249
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
250
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
251
|
+
|
|
252
|
+
[[package]]
|
|
253
|
+
name = "mimalloc"
|
|
254
|
+
version = "0.1.52"
|
|
255
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
256
|
+
checksum = "2d4139bb28d14ad1facf21d5eb8825051b326e172d216b39f6d31df53cc97862"
|
|
257
|
+
dependencies = [
|
|
258
|
+
"libmimalloc-sys",
|
|
259
|
+
]
|
|
260
|
+
|
|
261
|
+
[[package]]
|
|
262
|
+
name = "mm3h"
|
|
263
|
+
version = "0.1.3"
|
|
264
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
265
|
+
checksum = "dabd035e027dc9b9c31e0e35d87886736c693cdf5280eb53b9674e5e9de0f761"
|
|
266
|
+
|
|
267
|
+
[[package]]
|
|
268
|
+
name = "murmur3"
|
|
269
|
+
version = "0.5.2"
|
|
270
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
271
|
+
checksum = "9252111cf132ba0929b6f8e030cac2a24b507f3a4d6db6fb2896f27b354c714b"
|
|
272
|
+
|
|
273
|
+
[[package]]
|
|
274
|
+
name = "murmurs"
|
|
275
|
+
version = "1.0.5"
|
|
276
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
277
|
+
checksum = "6ea0b737f98d2c1e90f6f86e0a906f9e1d59aeb6846b8663bc21cafb14602d47"
|
|
278
|
+
|
|
279
|
+
[[package]]
|
|
280
|
+
name = "num-traits"
|
|
281
|
+
version = "0.2.19"
|
|
282
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
283
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
284
|
+
dependencies = [
|
|
285
|
+
"autocfg",
|
|
286
|
+
]
|
|
287
|
+
|
|
288
|
+
[[package]]
|
|
289
|
+
name = "once_cell"
|
|
290
|
+
version = "1.21.4"
|
|
291
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
292
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
293
|
+
|
|
294
|
+
[[package]]
|
|
295
|
+
name = "oorandom"
|
|
296
|
+
version = "11.1.5"
|
|
297
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
298
|
+
checksum = "d6790f58c7ff633d8771f42965289203411a5e5c68388703c06e14f24770b41e"
|
|
299
|
+
|
|
300
|
+
[[package]]
|
|
301
|
+
name = "page_size"
|
|
302
|
+
version = "0.6.0"
|
|
303
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
304
|
+
checksum = "30d5b2194ed13191c1999ae0704b7839fb18384fa22e49b57eeaa97d79ce40da"
|
|
305
|
+
dependencies = [
|
|
306
|
+
"libc",
|
|
307
|
+
"winapi",
|
|
308
|
+
]
|
|
309
|
+
|
|
310
|
+
[[package]]
|
|
311
|
+
name = "portable-atomic"
|
|
312
|
+
version = "1.14.0"
|
|
313
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
314
|
+
checksum = "3d20d5497ef88037a52ff98267d066e7f11fcc5e99bbfbd58a42336193aacec3"
|
|
315
|
+
|
|
316
|
+
[[package]]
|
|
317
|
+
name = "proc-macro2"
|
|
318
|
+
version = "1.0.107"
|
|
319
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
320
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
321
|
+
dependencies = [
|
|
322
|
+
"unicode-ident",
|
|
323
|
+
]
|
|
324
|
+
|
|
325
|
+
[[package]]
|
|
326
|
+
name = "pyo3"
|
|
327
|
+
version = "0.29.2"
|
|
328
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
329
|
+
checksum = "4688ddedf473e32662b9b067670129a8afb8c18e351482c70d62ba4a88171e8b"
|
|
330
|
+
dependencies = [
|
|
331
|
+
"libc",
|
|
332
|
+
"once_cell",
|
|
333
|
+
"portable-atomic",
|
|
334
|
+
"pyo3-build-config",
|
|
335
|
+
"pyo3-ffi",
|
|
336
|
+
"pyo3-macros",
|
|
337
|
+
]
|
|
338
|
+
|
|
339
|
+
[[package]]
|
|
340
|
+
name = "pyo3-build-config"
|
|
341
|
+
version = "0.29.2"
|
|
342
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
343
|
+
checksum = "f41027e41b4bd03f6e60f9f417fe24a6341a6bb744edd62b6f709f2a52ea30e9"
|
|
344
|
+
dependencies = [
|
|
345
|
+
"target-lexicon",
|
|
346
|
+
]
|
|
347
|
+
|
|
348
|
+
[[package]]
|
|
349
|
+
name = "pyo3-ffi"
|
|
350
|
+
version = "0.29.2"
|
|
351
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
352
|
+
checksum = "e591a95526fead067432c3b3a33fc74770b87b1e04e73671090d9c2055a2b327"
|
|
353
|
+
dependencies = [
|
|
354
|
+
"libc",
|
|
355
|
+
"pyo3-build-config",
|
|
356
|
+
]
|
|
357
|
+
|
|
358
|
+
[[package]]
|
|
359
|
+
name = "pyo3-macros"
|
|
360
|
+
version = "0.29.2"
|
|
361
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
362
|
+
checksum = "73225868fc1cd84eef2c3c230ddb91273bf1de46aeb8a4248da76d32a0924a1c"
|
|
363
|
+
dependencies = [
|
|
364
|
+
"proc-macro2",
|
|
365
|
+
"pyo3-macros-backend",
|
|
366
|
+
"quote",
|
|
367
|
+
"syn 2.0.119",
|
|
368
|
+
]
|
|
369
|
+
|
|
370
|
+
[[package]]
|
|
371
|
+
name = "pyo3-macros-backend"
|
|
372
|
+
version = "0.29.2"
|
|
373
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
374
|
+
checksum = "571575aa3749fa6216757dd47d2a3e7ef360f329a40f0666a9fbd14889024952"
|
|
375
|
+
dependencies = [
|
|
376
|
+
"heck",
|
|
377
|
+
"proc-macro2",
|
|
378
|
+
"quote",
|
|
379
|
+
"syn 2.0.119",
|
|
380
|
+
]
|
|
381
|
+
|
|
382
|
+
[[package]]
|
|
383
|
+
name = "quote"
|
|
384
|
+
version = "1.0.47"
|
|
385
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
386
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
387
|
+
dependencies = [
|
|
388
|
+
"proc-macro2",
|
|
389
|
+
]
|
|
390
|
+
|
|
391
|
+
[[package]]
|
|
392
|
+
name = "regex"
|
|
393
|
+
version = "1.13.1"
|
|
394
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
395
|
+
checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
|
|
396
|
+
dependencies = [
|
|
397
|
+
"aho-corasick",
|
|
398
|
+
"memchr",
|
|
399
|
+
"regex-automata",
|
|
400
|
+
"regex-syntax",
|
|
401
|
+
]
|
|
402
|
+
|
|
403
|
+
[[package]]
|
|
404
|
+
name = "regex-automata"
|
|
405
|
+
version = "0.4.18"
|
|
406
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
407
|
+
checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
|
|
408
|
+
dependencies = [
|
|
409
|
+
"aho-corasick",
|
|
410
|
+
"memchr",
|
|
411
|
+
"regex-syntax",
|
|
412
|
+
]
|
|
413
|
+
|
|
414
|
+
[[package]]
|
|
415
|
+
name = "regex-syntax"
|
|
416
|
+
version = "0.8.11"
|
|
417
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
418
|
+
checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
|
|
419
|
+
|
|
420
|
+
[[package]]
|
|
421
|
+
name = "same-file"
|
|
422
|
+
version = "1.0.6"
|
|
423
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
424
|
+
checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
|
|
425
|
+
dependencies = [
|
|
426
|
+
"winapi-util",
|
|
427
|
+
]
|
|
428
|
+
|
|
429
|
+
[[package]]
|
|
430
|
+
name = "serde"
|
|
431
|
+
version = "1.0.229"
|
|
432
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
433
|
+
checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
|
|
434
|
+
dependencies = [
|
|
435
|
+
"serde_core",
|
|
436
|
+
"serde_derive",
|
|
437
|
+
]
|
|
438
|
+
|
|
439
|
+
[[package]]
|
|
440
|
+
name = "serde_core"
|
|
441
|
+
version = "1.0.229"
|
|
442
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
443
|
+
checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
|
|
444
|
+
dependencies = [
|
|
445
|
+
"serde_derive",
|
|
446
|
+
]
|
|
447
|
+
|
|
448
|
+
[[package]]
|
|
449
|
+
name = "serde_derive"
|
|
450
|
+
version = "1.0.229"
|
|
451
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
452
|
+
checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
453
|
+
dependencies = [
|
|
454
|
+
"proc-macro2",
|
|
455
|
+
"quote",
|
|
456
|
+
"syn 3.0.3",
|
|
457
|
+
]
|
|
458
|
+
|
|
459
|
+
[[package]]
|
|
460
|
+
name = "serde_json"
|
|
461
|
+
version = "1.0.151"
|
|
462
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
463
|
+
checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
|
|
464
|
+
dependencies = [
|
|
465
|
+
"itoa",
|
|
466
|
+
"memchr",
|
|
467
|
+
"serde",
|
|
468
|
+
"serde_core",
|
|
469
|
+
"zmij",
|
|
470
|
+
]
|
|
471
|
+
|
|
472
|
+
[[package]]
|
|
473
|
+
name = "shlex"
|
|
474
|
+
version = "2.0.1"
|
|
475
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
476
|
+
checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
|
|
477
|
+
|
|
478
|
+
[[package]]
|
|
479
|
+
name = "syn"
|
|
480
|
+
version = "2.0.119"
|
|
481
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
482
|
+
checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
|
|
483
|
+
dependencies = [
|
|
484
|
+
"proc-macro2",
|
|
485
|
+
"quote",
|
|
486
|
+
"unicode-ident",
|
|
487
|
+
]
|
|
488
|
+
|
|
489
|
+
[[package]]
|
|
490
|
+
name = "syn"
|
|
491
|
+
version = "3.0.3"
|
|
492
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
493
|
+
checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
|
|
494
|
+
dependencies = [
|
|
495
|
+
"proc-macro2",
|
|
496
|
+
"quote",
|
|
497
|
+
"unicode-ident",
|
|
498
|
+
]
|
|
499
|
+
|
|
500
|
+
[[package]]
|
|
501
|
+
name = "target-lexicon"
|
|
502
|
+
version = "0.13.5"
|
|
503
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
504
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
505
|
+
|
|
506
|
+
[[package]]
|
|
507
|
+
name = "tinytemplate"
|
|
508
|
+
version = "1.2.1"
|
|
509
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
510
|
+
checksum = "be4d6b5f19ff7664e8c98d03e2139cb510db9b0a60b55f8e8709b689d939b6bc"
|
|
511
|
+
dependencies = [
|
|
512
|
+
"serde",
|
|
513
|
+
"serde_json",
|
|
514
|
+
]
|
|
515
|
+
|
|
516
|
+
[[package]]
|
|
517
|
+
name = "unicode-ident"
|
|
518
|
+
version = "1.0.24"
|
|
519
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
520
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
521
|
+
|
|
522
|
+
[[package]]
|
|
523
|
+
name = "walkdir"
|
|
524
|
+
version = "2.5.0"
|
|
525
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
526
|
+
checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
|
|
527
|
+
dependencies = [
|
|
528
|
+
"same-file",
|
|
529
|
+
"winapi-util",
|
|
530
|
+
]
|
|
531
|
+
|
|
532
|
+
[[package]]
|
|
533
|
+
name = "winapi"
|
|
534
|
+
version = "0.3.9"
|
|
535
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
536
|
+
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
|
537
|
+
dependencies = [
|
|
538
|
+
"winapi-i686-pc-windows-gnu",
|
|
539
|
+
"winapi-x86_64-pc-windows-gnu",
|
|
540
|
+
]
|
|
541
|
+
|
|
542
|
+
[[package]]
|
|
543
|
+
name = "winapi-i686-pc-windows-gnu"
|
|
544
|
+
version = "0.4.0"
|
|
545
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
546
|
+
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
|
547
|
+
|
|
548
|
+
[[package]]
|
|
549
|
+
name = "winapi-util"
|
|
550
|
+
version = "0.1.11"
|
|
551
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
552
|
+
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
|
|
553
|
+
dependencies = [
|
|
554
|
+
"windows-sys",
|
|
555
|
+
]
|
|
556
|
+
|
|
557
|
+
[[package]]
|
|
558
|
+
name = "winapi-x86_64-pc-windows-gnu"
|
|
559
|
+
version = "0.4.0"
|
|
560
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
561
|
+
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
|
562
|
+
|
|
563
|
+
[[package]]
|
|
564
|
+
name = "windows-link"
|
|
565
|
+
version = "0.2.1"
|
|
566
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
567
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
568
|
+
|
|
569
|
+
[[package]]
|
|
570
|
+
name = "windows-sys"
|
|
571
|
+
version = "0.61.2"
|
|
572
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
573
|
+
checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
|
|
574
|
+
dependencies = [
|
|
575
|
+
"windows-link",
|
|
576
|
+
]
|
|
577
|
+
|
|
578
|
+
[[package]]
|
|
579
|
+
name = "zerocopy"
|
|
580
|
+
version = "0.8.56"
|
|
581
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
582
|
+
checksum = "556764e583adb45a9f8d413c2a147fa7e8d821e48e12b14fd560b607998b75eb"
|
|
583
|
+
dependencies = [
|
|
584
|
+
"zerocopy-derive",
|
|
585
|
+
]
|
|
586
|
+
|
|
587
|
+
[[package]]
|
|
588
|
+
name = "zerocopy-derive"
|
|
589
|
+
version = "0.8.56"
|
|
590
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
591
|
+
checksum = "f2ab42fc20575779bd240faa45f94a74256f755c0fa9e89f0ede20d91d0cdfc1"
|
|
592
|
+
dependencies = [
|
|
593
|
+
"proc-macro2",
|
|
594
|
+
"quote",
|
|
595
|
+
"syn 2.0.119",
|
|
596
|
+
]
|
|
597
|
+
|
|
598
|
+
[[package]]
|
|
599
|
+
name = "zmij"
|
|
600
|
+
version = "1.0.23"
|
|
601
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
602
|
+
checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "hashcodecs"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2024"
|
|
5
|
+
rust-version = "1.85"
|
|
6
|
+
description = "SIMD-accelerated Base64 codecs and fast MurmurHash3 implementations"
|
|
7
|
+
license = "MIT OR Apache-2.0"
|
|
8
|
+
repository = "https://github.com/kozistr/hashcodecs-rs"
|
|
9
|
+
publish = false
|
|
10
|
+
keywords = ["base64", "simd", "murmur3", "python"]
|
|
11
|
+
categories = ["encoding", "algorithms"]
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
|
|
14
|
+
[lib]
|
|
15
|
+
name = "hashcodecs"
|
|
16
|
+
crate-type = ["rlib", "cdylib"]
|
|
17
|
+
|
|
18
|
+
[features]
|
|
19
|
+
python = ["dep:pyo3"]
|
|
20
|
+
extension-module = ["python", "pyo3/extension-module"]
|
|
21
|
+
|
|
22
|
+
[dependencies]
|
|
23
|
+
mimalloc = "0.1.52"
|
|
24
|
+
pyo3 = { version = "0.29.2", features = ["abi3-py310"], optional = true }
|
|
25
|
+
|
|
26
|
+
[dev-dependencies]
|
|
27
|
+
base64 = "0.23.1"
|
|
28
|
+
base64-turbo = "0.2.0"
|
|
29
|
+
criterion = { version = "0.8.2", default-features = false, features = ["cargo_bench_support"] }
|
|
30
|
+
fastmurmur3 = "0.2.0"
|
|
31
|
+
mm3h = "0.1.3"
|
|
32
|
+
murmur3 = "0.5"
|
|
33
|
+
murmurs = "1.0.5"
|
|
34
|
+
|
|
35
|
+
[[bench]]
|
|
36
|
+
name = "base64"
|
|
37
|
+
harness = false
|
|
38
|
+
|
|
39
|
+
[[bench]]
|
|
40
|
+
name = "murmur3"
|
|
41
|
+
harness = false
|
|
42
|
+
|
|
43
|
+
[profile.release]
|
|
44
|
+
codegen-units = 1
|
|
45
|
+
lto = "fat"
|
|
46
|
+
opt-level = 3
|
|
47
|
+
|
|
48
|
+
[profile.bench]
|
|
49
|
+
codegen-units = 1
|
|
50
|
+
lto = "fat"
|
|
51
|
+
opt-level = 3
|