django-vcache 2.1.0__tar.gz → 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.
- {django_vcache-2.1.0 → django_vcache-2.2.0}/Cargo.lock +157 -84
- django_vcache-2.2.0/Cargo.toml +21 -0
- {django_vcache-2.1.0 → django_vcache-2.2.0}/PKG-INFO +1 -1
- django_vcache-2.2.0/crates/vcache-core/Cargo.toml +14 -0
- django_vcache-2.2.0/crates/vcache-core/examples/standalone.rs +29 -0
- {django_vcache-2.1.0 → django_vcache-2.2.0/crates/vcache-core}/src/connection.rs +120 -25
- django_vcache-2.2.0/crates/vcache-core/src/lib.rs +22 -0
- django_vcache-2.2.0/crates/vcache-core/src/result.rs +21 -0
- django_vcache-2.2.0/crates/vcache-core/src/runtime.rs +54 -0
- django_vcache-2.2.0/crates/vcache-pyo3/Cargo.toml +25 -0
- {django_vcache-2.1.0 → django_vcache-2.2.0/crates/vcache-pyo3}/src/async_bridge.rs +55 -134
- {django_vcache-2.1.0 → django_vcache-2.2.0/crates/vcache-pyo3}/src/client.rs +87 -12
- django_vcache-2.2.0/crates/vcache-pyo3/src/lib.rs +26 -0
- {django_vcache-2.1.0 → django_vcache-2.2.0}/django_vcache/backend.py +206 -6
- {django_vcache-2.1.0 → django_vcache-2.2.0}/pyproject.toml +2 -1
- django_vcache-2.1.0/.dockerignore +0 -4
- django_vcache-2.1.0/.gitignore +0 -23
- django_vcache-2.1.0/.gitlab-ci.yml +0 -149
- django_vcache-2.1.0/AGENTS.md +0 -122
- django_vcache-2.1.0/CHANGELOG.md +0 -101
- django_vcache-2.1.0/CLAUDE.md +0 -122
- django_vcache-2.1.0/Cargo.toml +0 -19
- django_vcache-2.1.0/Dockerfile +0 -36
- django_vcache-2.1.0/bench_asgi.sh +0 -87
- django_vcache-2.1.0/bench_compare.py +0 -453
- django_vcache-2.1.0/bench_slowpath.sh +0 -75
- django_vcache-2.1.0/benchmark.py +0 -209
- django_vcache-2.1.0/compose.bench.yml +0 -6
- django_vcache-2.1.0/compose.cluster.yml +0 -34
- django_vcache-2.1.0/compose.sentinel.yml +0 -13
- django_vcache-2.1.0/compose.tls.yml +0 -24
- django_vcache-2.1.0/compose.yml +0 -22
- django_vcache-2.1.0/docs/benchmarks.md +0 -56
- django_vcache-2.1.0/docs/configuration.md +0 -105
- django_vcache-2.1.0/docs/contributing.md +0 -54
- django_vcache-2.1.0/docs/getting-started.md +0 -52
- django_vcache-2.1.0/docs/guide.md +0 -38
- django_vcache-2.1.0/docs/index.md +0 -37
- django_vcache-2.1.0/docs/overrides/extra.css +0 -27
- django_vcache-2.1.0/docs/overrides/main.html +0 -33
- django_vcache-2.1.0/manage.py +0 -23
- django_vcache-2.1.0/mkdocs.yml +0 -40
- django_vcache-2.1.0/sample/__init__.py +0 -0
- django_vcache-2.1.0/sample/asgi.py +0 -16
- django_vcache-2.1.0/sample/management/__init__.py +0 -0
- django_vcache-2.1.0/sample/management/commands/__init__.py +0 -0
- django_vcache-2.1.0/sample/management/commands/benchmark.py +0 -196
- django_vcache-2.1.0/sample/management/commands/memtest.py +0 -211
- django_vcache-2.1.0/sample/settings.py +0 -32
- django_vcache-2.1.0/sample/settings_bench.py +0 -3
- django_vcache-2.1.0/sample/settings_django.py +0 -12
- django_vcache-2.1.0/sample/settings_dvalkey.py +0 -16
- django_vcache-2.1.0/sample/settings_v1.py +0 -14
- django_vcache-2.1.0/sample/test_sentinel_blocking.py +0 -26
- django_vcache-2.1.0/sample/tests.py +0 -468
- django_vcache-2.1.0/sample/tests_chaos.py +0 -380
- django_vcache-2.1.0/sample/tests_exceptions.py +0 -241
- django_vcache-2.1.0/sample/tests_fork.py +0 -212
- django_vcache-2.1.0/sample/urls.py +0 -22
- django_vcache-2.1.0/sample/views.py +0 -298
- django_vcache-2.1.0/sample/wsgi.py +0 -7
- django_vcache-2.1.0/src/lib.rs +0 -16
- django_vcache-2.1.0/tls/generate-certs.sh +0 -46
- django_vcache-2.1.0/uv.lock +0 -507
- {django_vcache-2.1.0 → django_vcache-2.2.0}/LICENSE +0 -0
- {django_vcache-2.1.0 → django_vcache-2.2.0}/README.md +0 -0
- {django_vcache-2.1.0 → django_vcache-2.2.0}/django_vcache/__init__.py +0 -0
|
@@ -10,9 +10,9 @@ checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
|
|
|
10
10
|
|
|
11
11
|
[[package]]
|
|
12
12
|
name = "arc-swap"
|
|
13
|
-
version = "1.
|
|
13
|
+
version = "1.9.1"
|
|
14
14
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
-
checksum = "
|
|
15
|
+
checksum = "6a3a1fd6f75306b68087b831f025c712524bcb19aad54e557b1129cfa0a2b207"
|
|
16
16
|
dependencies = [
|
|
17
17
|
"rustversion",
|
|
18
18
|
]
|
|
@@ -23,6 +23,17 @@ version = "1.2.0"
|
|
|
23
23
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
24
|
checksum = "03918c3dbd7701a85c6b9887732e2921175f26c350b4563841d0958c21d57e6d"
|
|
25
25
|
|
|
26
|
+
[[package]]
|
|
27
|
+
name = "async-lock"
|
|
28
|
+
version = "3.4.2"
|
|
29
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
30
|
+
checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311"
|
|
31
|
+
dependencies = [
|
|
32
|
+
"event-listener",
|
|
33
|
+
"event-listener-strategy",
|
|
34
|
+
"pin-project-lite",
|
|
35
|
+
]
|
|
36
|
+
|
|
26
37
|
[[package]]
|
|
27
38
|
name = "autocfg"
|
|
28
39
|
version = "1.5.0"
|
|
@@ -31,9 +42,9 @@ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
|
|
31
42
|
|
|
32
43
|
[[package]]
|
|
33
44
|
name = "aws-lc-rs"
|
|
34
|
-
version = "1.16.
|
|
45
|
+
version = "1.16.2"
|
|
35
46
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
36
|
-
checksum = "
|
|
47
|
+
checksum = "a054912289d18629dc78375ba2c3726a3afe3ff71b4edba9dedfca0e3446d1fc"
|
|
37
48
|
dependencies = [
|
|
38
49
|
"aws-lc-sys",
|
|
39
50
|
"zeroize",
|
|
@@ -41,9 +52,9 @@ dependencies = [
|
|
|
41
52
|
|
|
42
53
|
[[package]]
|
|
43
54
|
name = "aws-lc-sys"
|
|
44
|
-
version = "0.
|
|
55
|
+
version = "0.39.1"
|
|
45
56
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
46
|
-
checksum = "
|
|
57
|
+
checksum = "83a25cf98105baa966497416dbd42565ce3a8cf8dbfd59803ec9ad46f3126399"
|
|
47
58
|
dependencies = [
|
|
48
59
|
"cc",
|
|
49
60
|
"cmake",
|
|
@@ -74,9 +85,9 @@ checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
|
|
|
74
85
|
|
|
75
86
|
[[package]]
|
|
76
87
|
name = "cc"
|
|
77
|
-
version = "1.2.
|
|
88
|
+
version = "1.2.59"
|
|
78
89
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
79
|
-
checksum = "
|
|
90
|
+
checksum = "b7a4d3ec6524d28a329fc53654bbadc9bdd7b0431f5d65f1a56ffb28a1ee5283"
|
|
80
91
|
dependencies = [
|
|
81
92
|
"find-msvc-tools",
|
|
82
93
|
"jobserver",
|
|
@@ -92,9 +103,9 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
|
92
103
|
|
|
93
104
|
[[package]]
|
|
94
105
|
name = "cmake"
|
|
95
|
-
version = "0.1.
|
|
106
|
+
version = "0.1.58"
|
|
96
107
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
97
|
-
checksum = "
|
|
108
|
+
checksum = "c0f78a02292a74a88ac736019ab962ece0bc380e3f977bf72e376c5d78ff0678"
|
|
98
109
|
dependencies = [
|
|
99
110
|
"cc",
|
|
100
111
|
]
|
|
@@ -113,6 +124,15 @@ dependencies = [
|
|
|
113
124
|
"tokio-util",
|
|
114
125
|
]
|
|
115
126
|
|
|
127
|
+
[[package]]
|
|
128
|
+
name = "concurrent-queue"
|
|
129
|
+
version = "2.5.0"
|
|
130
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
131
|
+
checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973"
|
|
132
|
+
dependencies = [
|
|
133
|
+
"crossbeam-utils",
|
|
134
|
+
]
|
|
135
|
+
|
|
116
136
|
[[package]]
|
|
117
137
|
name = "core-foundation"
|
|
118
138
|
version = "0.10.1"
|
|
@@ -135,6 +155,12 @@ version = "0.4.0"
|
|
|
135
155
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
136
156
|
checksum = "338089f42c427b86394a5ee60ff321da23a5c89c9d89514c829687b26359fcff"
|
|
137
157
|
|
|
158
|
+
[[package]]
|
|
159
|
+
name = "crossbeam-utils"
|
|
160
|
+
version = "0.8.21"
|
|
161
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
162
|
+
checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
|
|
163
|
+
|
|
138
164
|
[[package]]
|
|
139
165
|
name = "displaydoc"
|
|
140
166
|
version = "0.2.5"
|
|
@@ -146,16 +172,6 @@ dependencies = [
|
|
|
146
172
|
"syn",
|
|
147
173
|
]
|
|
148
174
|
|
|
149
|
-
[[package]]
|
|
150
|
-
name = "django-vcache"
|
|
151
|
-
version = "2.1.0"
|
|
152
|
-
dependencies = [
|
|
153
|
-
"pyo3",
|
|
154
|
-
"redis",
|
|
155
|
-
"rustls",
|
|
156
|
-
"tokio",
|
|
157
|
-
]
|
|
158
|
-
|
|
159
175
|
[[package]]
|
|
160
176
|
name = "dunce"
|
|
161
177
|
version = "1.0.5"
|
|
@@ -168,11 +184,32 @@ version = "1.0.2"
|
|
|
168
184
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
169
185
|
checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
|
170
186
|
|
|
187
|
+
[[package]]
|
|
188
|
+
name = "event-listener"
|
|
189
|
+
version = "5.4.1"
|
|
190
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
191
|
+
checksum = "e13b66accf52311f30a0db42147dadea9850cb48cd070028831ae5f5d4b856ab"
|
|
192
|
+
dependencies = [
|
|
193
|
+
"concurrent-queue",
|
|
194
|
+
"parking",
|
|
195
|
+
"pin-project-lite",
|
|
196
|
+
]
|
|
197
|
+
|
|
198
|
+
[[package]]
|
|
199
|
+
name = "event-listener-strategy"
|
|
200
|
+
version = "0.5.4"
|
|
201
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
202
|
+
checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93"
|
|
203
|
+
dependencies = [
|
|
204
|
+
"event-listener",
|
|
205
|
+
"pin-project-lite",
|
|
206
|
+
]
|
|
207
|
+
|
|
171
208
|
[[package]]
|
|
172
209
|
name = "fastrand"
|
|
173
|
-
version = "2.
|
|
210
|
+
version = "2.4.1"
|
|
174
211
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
175
|
-
checksum = "
|
|
212
|
+
checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6"
|
|
176
213
|
|
|
177
214
|
[[package]]
|
|
178
215
|
name = "find-msvc-tools"
|
|
@@ -283,12 +320,13 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
|
283
320
|
|
|
284
321
|
[[package]]
|
|
285
322
|
name = "icu_collections"
|
|
286
|
-
version = "2.
|
|
323
|
+
version = "2.2.0"
|
|
287
324
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
288
|
-
checksum = "
|
|
325
|
+
checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c"
|
|
289
326
|
dependencies = [
|
|
290
327
|
"displaydoc",
|
|
291
328
|
"potential_utf",
|
|
329
|
+
"utf8_iter",
|
|
292
330
|
"yoke",
|
|
293
331
|
"zerofrom",
|
|
294
332
|
"zerovec",
|
|
@@ -296,9 +334,9 @@ dependencies = [
|
|
|
296
334
|
|
|
297
335
|
[[package]]
|
|
298
336
|
name = "icu_locale_core"
|
|
299
|
-
version = "2.
|
|
337
|
+
version = "2.2.0"
|
|
300
338
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
301
|
-
checksum = "
|
|
339
|
+
checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29"
|
|
302
340
|
dependencies = [
|
|
303
341
|
"displaydoc",
|
|
304
342
|
"litemap",
|
|
@@ -309,9 +347,9 @@ dependencies = [
|
|
|
309
347
|
|
|
310
348
|
[[package]]
|
|
311
349
|
name = "icu_normalizer"
|
|
312
|
-
version = "2.
|
|
350
|
+
version = "2.2.0"
|
|
313
351
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
314
|
-
checksum = "
|
|
352
|
+
checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4"
|
|
315
353
|
dependencies = [
|
|
316
354
|
"icu_collections",
|
|
317
355
|
"icu_normalizer_data",
|
|
@@ -323,15 +361,15 @@ dependencies = [
|
|
|
323
361
|
|
|
324
362
|
[[package]]
|
|
325
363
|
name = "icu_normalizer_data"
|
|
326
|
-
version = "2.
|
|
364
|
+
version = "2.2.0"
|
|
327
365
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
328
|
-
checksum = "
|
|
366
|
+
checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38"
|
|
329
367
|
|
|
330
368
|
[[package]]
|
|
331
369
|
name = "icu_properties"
|
|
332
|
-
version = "2.
|
|
370
|
+
version = "2.2.0"
|
|
333
371
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
334
|
-
checksum = "
|
|
372
|
+
checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de"
|
|
335
373
|
dependencies = [
|
|
336
374
|
"icu_collections",
|
|
337
375
|
"icu_locale_core",
|
|
@@ -343,15 +381,15 @@ dependencies = [
|
|
|
343
381
|
|
|
344
382
|
[[package]]
|
|
345
383
|
name = "icu_properties_data"
|
|
346
|
-
version = "2.
|
|
384
|
+
version = "2.2.0"
|
|
347
385
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
348
|
-
checksum = "
|
|
386
|
+
checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14"
|
|
349
387
|
|
|
350
388
|
[[package]]
|
|
351
389
|
name = "icu_provider"
|
|
352
|
-
version = "2.
|
|
390
|
+
version = "2.2.0"
|
|
353
391
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
354
|
-
checksum = "
|
|
392
|
+
checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421"
|
|
355
393
|
dependencies = [
|
|
356
394
|
"displaydoc",
|
|
357
395
|
"icu_locale_core",
|
|
@@ -385,9 +423,9 @@ dependencies = [
|
|
|
385
423
|
|
|
386
424
|
[[package]]
|
|
387
425
|
name = "itoa"
|
|
388
|
-
version = "1.0.
|
|
426
|
+
version = "1.0.18"
|
|
389
427
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
390
|
-
checksum = "
|
|
428
|
+
checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
|
|
391
429
|
|
|
392
430
|
[[package]]
|
|
393
431
|
name = "jobserver"
|
|
@@ -401,15 +439,15 @@ dependencies = [
|
|
|
401
439
|
|
|
402
440
|
[[package]]
|
|
403
441
|
name = "libc"
|
|
404
|
-
version = "0.2.
|
|
442
|
+
version = "0.2.184"
|
|
405
443
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
406
|
-
checksum = "
|
|
444
|
+
checksum = "48f5d2a454e16a5ea0f4ced81bd44e4cfc7bd3a507b61887c99fd3538b28e4af"
|
|
407
445
|
|
|
408
446
|
[[package]]
|
|
409
447
|
name = "litemap"
|
|
410
|
-
version = "0.8.
|
|
448
|
+
version = "0.8.2"
|
|
411
449
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
412
|
-
checksum = "
|
|
450
|
+
checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"
|
|
413
451
|
|
|
414
452
|
[[package]]
|
|
415
453
|
name = "log"
|
|
@@ -434,9 +472,9 @@ checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
|
|
|
434
472
|
|
|
435
473
|
[[package]]
|
|
436
474
|
name = "mio"
|
|
437
|
-
version = "1.
|
|
475
|
+
version = "1.2.0"
|
|
438
476
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
439
|
-
checksum = "
|
|
477
|
+
checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1"
|
|
440
478
|
dependencies = [
|
|
441
479
|
"libc",
|
|
442
480
|
"wasi",
|
|
@@ -483,6 +521,12 @@ version = "0.2.1"
|
|
|
483
521
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
484
522
|
checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"
|
|
485
523
|
|
|
524
|
+
[[package]]
|
|
525
|
+
name = "parking"
|
|
526
|
+
version = "2.2.1"
|
|
527
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
528
|
+
checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
|
|
529
|
+
|
|
486
530
|
[[package]]
|
|
487
531
|
name = "percent-encoding"
|
|
488
532
|
version = "2.3.2"
|
|
@@ -503,9 +547,9 @@ checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
|
|
|
503
547
|
|
|
504
548
|
[[package]]
|
|
505
549
|
name = "potential_utf"
|
|
506
|
-
version = "0.1.
|
|
550
|
+
version = "0.1.5"
|
|
507
551
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
508
|
-
checksum = "
|
|
552
|
+
checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564"
|
|
509
553
|
dependencies = [
|
|
510
554
|
"zerovec",
|
|
511
555
|
]
|
|
@@ -530,9 +574,9 @@ dependencies = [
|
|
|
530
574
|
|
|
531
575
|
[[package]]
|
|
532
576
|
name = "pyo3"
|
|
533
|
-
version = "0.28.
|
|
577
|
+
version = "0.28.3"
|
|
534
578
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
535
|
-
checksum = "
|
|
579
|
+
checksum = "91fd8e38a3b50ed1167fb981cd6fd60147e091784c427b8f7183a7ee32c31c12"
|
|
536
580
|
dependencies = [
|
|
537
581
|
"libc",
|
|
538
582
|
"once_cell",
|
|
@@ -544,18 +588,18 @@ dependencies = [
|
|
|
544
588
|
|
|
545
589
|
[[package]]
|
|
546
590
|
name = "pyo3-build-config"
|
|
547
|
-
version = "0.28.
|
|
591
|
+
version = "0.28.3"
|
|
548
592
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
549
|
-
checksum = "
|
|
593
|
+
checksum = "e368e7ddfdeb98c9bca7f8383be1648fd84ab466bf2bc015e94008db6d35611e"
|
|
550
594
|
dependencies = [
|
|
551
595
|
"target-lexicon",
|
|
552
596
|
]
|
|
553
597
|
|
|
554
598
|
[[package]]
|
|
555
599
|
name = "pyo3-ffi"
|
|
556
|
-
version = "0.28.
|
|
600
|
+
version = "0.28.3"
|
|
557
601
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
558
|
-
checksum = "
|
|
602
|
+
checksum = "7f29e10af80b1f7ccaf7f69eace800a03ecd13e883acfacc1e5d0988605f651e"
|
|
559
603
|
dependencies = [
|
|
560
604
|
"libc",
|
|
561
605
|
"pyo3-build-config",
|
|
@@ -563,9 +607,9 @@ dependencies = [
|
|
|
563
607
|
|
|
564
608
|
[[package]]
|
|
565
609
|
name = "pyo3-macros"
|
|
566
|
-
version = "0.28.
|
|
610
|
+
version = "0.28.3"
|
|
567
611
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
568
|
-
checksum = "
|
|
612
|
+
checksum = "df6e520eff47c45997d2fc7dd8214b25dd1310918bbb2642156ef66a67f29813"
|
|
569
613
|
dependencies = [
|
|
570
614
|
"proc-macro2",
|
|
571
615
|
"pyo3-macros-backend",
|
|
@@ -575,9 +619,9 @@ dependencies = [
|
|
|
575
619
|
|
|
576
620
|
[[package]]
|
|
577
621
|
name = "pyo3-macros-backend"
|
|
578
|
-
version = "0.28.
|
|
622
|
+
version = "0.28.3"
|
|
579
623
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
580
|
-
checksum = "
|
|
624
|
+
checksum = "c4cdc218d835738f81c2338f822078af45b4afdf8b2e33cbb5916f108b813acb"
|
|
581
625
|
dependencies = [
|
|
582
626
|
"heck",
|
|
583
627
|
"proc-macro2",
|
|
@@ -632,12 +676,13 @@ dependencies = [
|
|
|
632
676
|
|
|
633
677
|
[[package]]
|
|
634
678
|
name = "redis"
|
|
635
|
-
version = "1.0
|
|
679
|
+
version = "1.2.0"
|
|
636
680
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
637
|
-
checksum = "
|
|
681
|
+
checksum = "f44e94c96d8870a387d88ce3de3fdd608cbfc0705f03cb343cdde91509d3e49a"
|
|
638
682
|
dependencies = [
|
|
639
683
|
"arc-swap",
|
|
640
684
|
"arcstr",
|
|
685
|
+
"async-lock",
|
|
641
686
|
"backon",
|
|
642
687
|
"bytes",
|
|
643
688
|
"cfg-if",
|
|
@@ -678,6 +723,14 @@ dependencies = [
|
|
|
678
723
|
"windows-sys 0.52.0",
|
|
679
724
|
]
|
|
680
725
|
|
|
726
|
+
[[package]]
|
|
727
|
+
name = "rlib-link-test"
|
|
728
|
+
version = "2.2.0"
|
|
729
|
+
dependencies = [
|
|
730
|
+
"pyo3",
|
|
731
|
+
"vcache-pyo3",
|
|
732
|
+
]
|
|
733
|
+
|
|
681
734
|
[[package]]
|
|
682
735
|
name = "rustls"
|
|
683
736
|
version = "0.23.37"
|
|
@@ -717,9 +770,9 @@ dependencies = [
|
|
|
717
770
|
|
|
718
771
|
[[package]]
|
|
719
772
|
name = "rustls-webpki"
|
|
720
|
-
version = "0.103.
|
|
773
|
+
version = "0.103.10"
|
|
721
774
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
722
|
-
checksum = "
|
|
775
|
+
checksum = "df33b2b81ac578cabaf06b89b0631153a3f416b0a886e8a7a1707fb51abbd1ef"
|
|
723
776
|
dependencies = [
|
|
724
777
|
"aws-lc-rs",
|
|
725
778
|
"ring",
|
|
@@ -876,9 +929,9 @@ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
|
876
929
|
|
|
877
930
|
[[package]]
|
|
878
931
|
name = "tinystr"
|
|
879
|
-
version = "0.8.
|
|
932
|
+
version = "0.8.3"
|
|
880
933
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
881
|
-
checksum = "
|
|
934
|
+
checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d"
|
|
882
935
|
dependencies = [
|
|
883
936
|
"displaydoc",
|
|
884
937
|
"zerovec",
|
|
@@ -886,9 +939,9 @@ dependencies = [
|
|
|
886
939
|
|
|
887
940
|
[[package]]
|
|
888
941
|
name = "tokio"
|
|
889
|
-
version = "1.
|
|
942
|
+
version = "1.51.0"
|
|
890
943
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
891
|
-
checksum = "
|
|
944
|
+
checksum = "2bd1c4c0fc4a7ab90fc15ef6daaa3ec3b893f004f915f2392557ed23237820cd"
|
|
892
945
|
dependencies = [
|
|
893
946
|
"libc",
|
|
894
947
|
"mio",
|
|
@@ -950,6 +1003,26 @@ version = "1.0.4"
|
|
|
950
1003
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
951
1004
|
checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
|
|
952
1005
|
|
|
1006
|
+
[[package]]
|
|
1007
|
+
name = "vcache-core"
|
|
1008
|
+
version = "2.2.0"
|
|
1009
|
+
dependencies = [
|
|
1010
|
+
"redis",
|
|
1011
|
+
"rustls",
|
|
1012
|
+
"tokio",
|
|
1013
|
+
]
|
|
1014
|
+
|
|
1015
|
+
[[package]]
|
|
1016
|
+
name = "vcache-pyo3"
|
|
1017
|
+
version = "2.2.0"
|
|
1018
|
+
dependencies = [
|
|
1019
|
+
"pyo3",
|
|
1020
|
+
"redis",
|
|
1021
|
+
"rustls",
|
|
1022
|
+
"tokio",
|
|
1023
|
+
"vcache-core",
|
|
1024
|
+
]
|
|
1025
|
+
|
|
953
1026
|
[[package]]
|
|
954
1027
|
name = "wasi"
|
|
955
1028
|
version = "0.11.1+wasi-snapshot-preview1"
|
|
@@ -1061,9 +1134,9 @@ checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5"
|
|
|
1061
1134
|
|
|
1062
1135
|
[[package]]
|
|
1063
1136
|
name = "writeable"
|
|
1064
|
-
version = "0.6.
|
|
1137
|
+
version = "0.6.3"
|
|
1065
1138
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1066
|
-
checksum = "
|
|
1139
|
+
checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"
|
|
1067
1140
|
|
|
1068
1141
|
[[package]]
|
|
1069
1142
|
name = "xxhash-rust"
|
|
@@ -1073,9 +1146,9 @@ checksum = "fdd20c5420375476fbd4394763288da7eb0cc0b8c11deed431a91562af7335d3"
|
|
|
1073
1146
|
|
|
1074
1147
|
[[package]]
|
|
1075
1148
|
name = "yoke"
|
|
1076
|
-
version = "0.8.
|
|
1149
|
+
version = "0.8.2"
|
|
1077
1150
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1078
|
-
checksum = "
|
|
1151
|
+
checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca"
|
|
1079
1152
|
dependencies = [
|
|
1080
1153
|
"stable_deref_trait",
|
|
1081
1154
|
"yoke-derive",
|
|
@@ -1084,9 +1157,9 @@ dependencies = [
|
|
|
1084
1157
|
|
|
1085
1158
|
[[package]]
|
|
1086
1159
|
name = "yoke-derive"
|
|
1087
|
-
version = "0.8.
|
|
1160
|
+
version = "0.8.2"
|
|
1088
1161
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1089
|
-
checksum = "
|
|
1162
|
+
checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
|
|
1090
1163
|
dependencies = [
|
|
1091
1164
|
"proc-macro2",
|
|
1092
1165
|
"quote",
|
|
@@ -1096,18 +1169,18 @@ dependencies = [
|
|
|
1096
1169
|
|
|
1097
1170
|
[[package]]
|
|
1098
1171
|
name = "zerocopy"
|
|
1099
|
-
version = "0.8.
|
|
1172
|
+
version = "0.8.48"
|
|
1100
1173
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1101
|
-
checksum = "
|
|
1174
|
+
checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9"
|
|
1102
1175
|
dependencies = [
|
|
1103
1176
|
"zerocopy-derive",
|
|
1104
1177
|
]
|
|
1105
1178
|
|
|
1106
1179
|
[[package]]
|
|
1107
1180
|
name = "zerocopy-derive"
|
|
1108
|
-
version = "0.8.
|
|
1181
|
+
version = "0.8.48"
|
|
1109
1182
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1110
|
-
checksum = "
|
|
1183
|
+
checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4"
|
|
1111
1184
|
dependencies = [
|
|
1112
1185
|
"proc-macro2",
|
|
1113
1186
|
"quote",
|
|
@@ -1116,18 +1189,18 @@ dependencies = [
|
|
|
1116
1189
|
|
|
1117
1190
|
[[package]]
|
|
1118
1191
|
name = "zerofrom"
|
|
1119
|
-
version = "0.1.
|
|
1192
|
+
version = "0.1.7"
|
|
1120
1193
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1121
|
-
checksum = "
|
|
1194
|
+
checksum = "69faa1f2a1ea75661980b013019ed6687ed0e83d069bc1114e2cc74c6c04c4df"
|
|
1122
1195
|
dependencies = [
|
|
1123
1196
|
"zerofrom-derive",
|
|
1124
1197
|
]
|
|
1125
1198
|
|
|
1126
1199
|
[[package]]
|
|
1127
1200
|
name = "zerofrom-derive"
|
|
1128
|
-
version = "0.1.
|
|
1201
|
+
version = "0.1.7"
|
|
1129
1202
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1130
|
-
checksum = "
|
|
1203
|
+
checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
|
|
1131
1204
|
dependencies = [
|
|
1132
1205
|
"proc-macro2",
|
|
1133
1206
|
"quote",
|
|
@@ -1143,9 +1216,9 @@ checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0"
|
|
|
1143
1216
|
|
|
1144
1217
|
[[package]]
|
|
1145
1218
|
name = "zerotrie"
|
|
1146
|
-
version = "0.2.
|
|
1219
|
+
version = "0.2.4"
|
|
1147
1220
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1148
|
-
checksum = "
|
|
1221
|
+
checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf"
|
|
1149
1222
|
dependencies = [
|
|
1150
1223
|
"displaydoc",
|
|
1151
1224
|
"yoke",
|
|
@@ -1154,9 +1227,9 @@ dependencies = [
|
|
|
1154
1227
|
|
|
1155
1228
|
[[package]]
|
|
1156
1229
|
name = "zerovec"
|
|
1157
|
-
version = "0.11.
|
|
1230
|
+
version = "0.11.6"
|
|
1158
1231
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1159
|
-
checksum = "
|
|
1232
|
+
checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239"
|
|
1160
1233
|
dependencies = [
|
|
1161
1234
|
"yoke",
|
|
1162
1235
|
"zerofrom",
|
|
@@ -1165,9 +1238,9 @@ dependencies = [
|
|
|
1165
1238
|
|
|
1166
1239
|
[[package]]
|
|
1167
1240
|
name = "zerovec-derive"
|
|
1168
|
-
version = "0.11.
|
|
1241
|
+
version = "0.11.3"
|
|
1169
1242
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1170
|
-
checksum = "
|
|
1243
|
+
checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555"
|
|
1171
1244
|
dependencies = [
|
|
1172
1245
|
"proc-macro2",
|
|
1173
1246
|
"quote",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[workspace]
|
|
2
|
+
resolver = "2"
|
|
3
|
+
members = ["crates/vcache-core", "crates/vcache-pyo3"]
|
|
4
|
+
|
|
5
|
+
[workspace.package]
|
|
6
|
+
version = "2.2.0"
|
|
7
|
+
edition = "2024"
|
|
8
|
+
|
|
9
|
+
[workspace.dependencies]
|
|
10
|
+
tokio = { version = "1", features = ["rt-multi-thread"] }
|
|
11
|
+
redis = { version = "1", features = ["tokio-comp", "connection-manager", "cluster", "cluster-async", "tokio-rustls-comp", "tls-rustls-insecure", "cache-aio"] }
|
|
12
|
+
rustls = { version = "0.23", features = ["ring"] }
|
|
13
|
+
# All current members are cdylibs that ship as Python extension modules;
|
|
14
|
+
# the `extension-module` feature skips libpython linking. If a future
|
|
15
|
+
# member is a bin or test harness that embeds Python, drop this feature
|
|
16
|
+
# and re-add it in each cdylib crate's own [dependencies] block.
|
|
17
|
+
pyo3 = { version = "0.28", features = ["extension-module"] }
|
|
18
|
+
|
|
19
|
+
[profile.release]
|
|
20
|
+
lto = true
|
|
21
|
+
strip = true
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "vcache-core"
|
|
3
|
+
version.workspace = true
|
|
4
|
+
edition.workspace = true
|
|
5
|
+
description = "Pure-Rust valkey/redis async driver core. Backs the django-vcache Python package and is reusable from other Rust crates that want to share its tokio runtime and connection types."
|
|
6
|
+
license = "MIT"
|
|
7
|
+
|
|
8
|
+
[lib]
|
|
9
|
+
name = "vcache_core"
|
|
10
|
+
|
|
11
|
+
[dependencies]
|
|
12
|
+
tokio.workspace = true
|
|
13
|
+
redis.workspace = true
|
|
14
|
+
rustls.workspace = true
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//! Pure-Rust smoke test: vcache-core is consumable without pyo3.
|
|
2
|
+
//!
|
|
3
|
+
//! Connects to VALKEY_URL (default redis://valkey:6379/1), does set/get/del.
|
|
4
|
+
//! CI runs this so a regression in vcache-core's pure-Rust surface (rename,
|
|
5
|
+
//! visibility change, feature-flag mistake) fails here, before downstream
|
|
6
|
+
//! crates hit it on the next bump.
|
|
7
|
+
|
|
8
|
+
use vcache_core::{connect_standard, get_runtime};
|
|
9
|
+
|
|
10
|
+
fn main() {
|
|
11
|
+
let url = std::env::var("VALKEY_URL").unwrap_or_else(|_| "redis://valkey:6379/1".into());
|
|
12
|
+
get_runtime().block_on(async move {
|
|
13
|
+
let mut conn = connect_standard(&url, None, None)
|
|
14
|
+
.await
|
|
15
|
+
.expect("connect failed");
|
|
16
|
+
conn.set_bytes("vcache_core_smoke", b"ok".to_vec(), Some(10))
|
|
17
|
+
.await
|
|
18
|
+
.expect("set failed");
|
|
19
|
+
let got = conn
|
|
20
|
+
.get_bytes("vcache_core_smoke")
|
|
21
|
+
.await
|
|
22
|
+
.expect("get failed")
|
|
23
|
+
.expect("missing value");
|
|
24
|
+
assert_eq!(got, b"ok", "round-trip mismatch");
|
|
25
|
+
let deleted = conn.del("vcache_core_smoke").await.expect("del failed");
|
|
26
|
+
assert_eq!(deleted, 1);
|
|
27
|
+
println!("vcache-core standalone smoke: OK");
|
|
28
|
+
});
|
|
29
|
+
}
|