refresh_machines 0.7.3

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5f95d6a6ab2e9b7c994a88e313075774d055cfce3af0154174684fbec6debb38
4
+ data.tar.gz: 3c91c13fa1305c9dd5225be154835a1fbfe9e4ea727005a96a6efc35eebbc63e
5
+ SHA512:
6
+ metadata.gz: 2f24c88c6df0b69dd602ced759d49136aaac8ff442e9ff41dd97418f9a614229b239a779d981c52b584f5110657629910d013bb20fceb937823debbdb6498e3a
7
+ data.tar.gz: '00096268da90efacaf946324b31d65c3f50bc2277e0e15659918b2e5cc273bfb8b9e702e684859d91a04c58995cc8cb784fbb813cb01767eff41835cdce3198a'
data/CHANGELOG.md ADDED
@@ -0,0 +1,109 @@
1
+ # Changelog
2
+
3
+ ## [0.7.3](https://github.com/seuros/refresh_machines/compare/refresh_machines/v0.7.2...refresh_machines/v0.7.3) (2026-11-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * accept every instant the gem returns ([9420a3d](https://github.com/seuros/refresh_machines/commit/9420a3d73340ad8d7d4299325ac616c91c6fd21c))
9
+
10
+ ## [0.7.2](https://github.com/seuros/refresh_machines/compare/refresh_machines/v0.7.1...refresh_machines/v0.7.2) (2026-11-16)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * fix wrapped classes at load so building a value runs no Ruby ([d8531d6](https://github.com/seuros/refresh_machines/commit/d8531d6f7180c96632fe8f3fe19b914e840371d0))
16
+
17
+ ## [0.7.1](https://github.com/seuros/refresh_machines/compare/refresh_machines/v0.7.0...refresh_machines/v0.7.1) (2026-11-16)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * refresher core drops slot indexing for slot references ([f0ebbce](https://github.com/seuros/refresh_machines/commit/f0ebbce39e8414127b8a9ee3718397046ed63b60))
23
+
24
+ ## [0.7.0](https://github.com/seuros/refresh_machines/compare/refresh_machines/v0.6.1...refresh_machines/v0.7.0) (2026-11-14)
25
+
26
+
27
+ ### ⚠ BREAKING CHANGES
28
+
29
+ * refresh revalidation reads through symbol_or_fields
30
+
31
+ ### Features
32
+
33
+ * refresh revalidation reads through symbol_or_fields ([5ea9be7](https://github.com/seuros/refresh_machines/commit/5ea9be7d8a5b652e4a1ba32fddfdc9529f643b91))
34
+
35
+ ## [0.6.1](https://github.com/seuros/refresh_machines/compare/refresh_machines/v0.6.0...refresh_machines/v0.6.1) (2026-11-14)
36
+
37
+
38
+ ### Bug Fixes
39
+
40
+ * **deps:** require matryona-machines >= 0.3 and read revalidation with which ([92860cb](https://github.com/seuros/refresh_machines/commit/92860cb8bf82a4159e45c4a0301590c6e185120d))
41
+
42
+ ## [0.6.0](https://github.com/seuros/refresh_machines/compare/refresh_machines/v0.5.0...refresh_machines/v0.6.0) (2026-11-14)
43
+
44
+
45
+ ### ⚠ BREAKING CHANGES
46
+
47
+ * adopt matryona-machines 0.2: hooks name their field, instant for answered ages, symbols! tables, exact Policy fields
48
+
49
+ ### Features
50
+
51
+ * adopt matryona-machines 0.2: hooks name their field, instant for answered ages, symbols! tables, exact Policy fields ([c0d3932](https://github.com/seuros/refresh_machines/commit/c0d393265f5f0b0306cc82a8ea31f125346cc776))
52
+
53
+ ## [0.5.0](https://github.com/seuros/refresh_machines/compare/refresh_machines/v0.4.0...refresh_machines/v0.5.0) (2026-11-14)
54
+
55
+
56
+ ### ⚠ BREAKING CHANGES
57
+
58
+ * seal values, native Policy and Stale checks by exact class, clone-then-keep decide/sweep/poll/drain
59
+
60
+ ### Features
61
+
62
+ * seal values, native Policy and Stale checks by exact class, clone-then-keep decide/sweep/poll/drain ([5a6b1f8](https://github.com/seuros/refresh_machines/commit/5a6b1f8ac6907696939d2ad443836d8336f03365))
63
+
64
+ ## [0.4.0](https://github.com/seuros/refresh_machines/compare/refresh_machines/v0.3.0...refresh_machines/v0.4.0) (2026-11-13)
65
+
66
+
67
+ ### ⚠ BREAKING CHANGES
68
+
69
+ * leases, waiter ids and flight ids of a refresher share one sequence, so a handle rebuilt as the wrong kind names nothing. Requires coalesce-machines >= 0.6. Raw lease numbers change; capacity is checked before the sequence.
70
+
71
+ ### Features
72
+
73
+ * scope ids through periscope-machines and draw leases from the coalescer's sequence; add resumed and issued ([9a9537b](https://github.com/seuros/refresh_machines/commit/9a9537beef8a10e1be244167f4713698dfaa3f1a))
74
+
75
+ ## [0.3.0](https://github.com/seuros/refresh_machines/compare/refresh_machines/v0.2.0...refresh_machines/v0.3.0) (2026-11-13)
76
+
77
+
78
+ ### ⚠ BREAKING CHANGES
79
+
80
+ * see CONVENTIONS: one exhaustive Refusal per crate, Result from every mutator, honoured idempotent repeats only when provable, Duration time, Ruby mirrors the core. No compatibility aliases. Requires coalesce-machines >= 0.5. Ruby times are Integer nanoseconds; the Refused alias is gone.
81
+
82
+ ### Features
83
+
84
+ * Duration instants and spans, Wait names its flight, forget answers Forgetting, Ruby mirrors Decision and Revalidation ([f275b16](https://github.com/seuros/refresh_machines/commit/f275b1663bed9b658d6477a5542886c230946b90))
85
+
86
+ ## [0.2.0](https://github.com/seuros/refresh_machines/compare/refresh_machines/v0.1.2...refresh_machines/v0.2.0) (2026-11-13)
87
+
88
+
89
+ ### ⚠ BREAKING CHANGES
90
+
91
+ * Refresher::drain takes &mut [Notification] and sweep takes &mut [u64] instead of Option slices; RefreshMachines::Notification gains flight_id as its second field. Refused is kept as a deprecated alias of Refusal. Requires coalesce-machines >= 0.4.
92
+
93
+ ### Features
94
+
95
+ * map leases to flights, carry flight_id in notifications, plain output buffers ([0564a61](https://github.com/seuros/refresh_machines/commit/0564a61d8588cbe390248eab537e67bce7b1a45e))
96
+
97
+ ## [0.1.2](https://github.com/seuros/refresh_machines/compare/refresh_machines/v0.1.1...refresh_machines/v0.1.2) (2026-11-13)
98
+
99
+
100
+ ### Features
101
+
102
+ * scope leases and waiter ids so separate refreshers never share one ([66940fb](https://github.com/seuros/refresh_machines/commit/66940fbca88d4e28e6045ef3ec21c8daf0c1325d))
103
+
104
+ ## [0.1.1](https://github.com/seuros/refresh_machines/compare/refresh_machines-v0.1.0...refresh_machines/v0.1.1) (2026-11-12)
105
+
106
+
107
+ ### Features
108
+
109
+ * initial extraction ([38f59b3](https://github.com/seuros/refresh_machines/commit/38f59b36131d87ca31a0ad348a9052a62045541d))
data/Cargo.lock ADDED
@@ -0,0 +1,325 @@
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 = "bindgen"
16
+ version = "0.72.1"
17
+ source = "registry+https://github.com/rust-lang/crates.io-index"
18
+ checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
19
+ dependencies = [
20
+ "bitflags",
21
+ "cexpr",
22
+ "clang-sys",
23
+ "itertools",
24
+ "proc-macro2",
25
+ "quote",
26
+ "regex",
27
+ "rustc-hash",
28
+ "shlex",
29
+ "syn",
30
+ ]
31
+
32
+ [[package]]
33
+ name = "bitflags"
34
+ version = "2.13.2"
35
+ source = "registry+https://github.com/rust-lang/crates.io-index"
36
+ checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
37
+
38
+ [[package]]
39
+ name = "bytes"
40
+ version = "1.12.1"
41
+ source = "registry+https://github.com/rust-lang/crates.io-index"
42
+ checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
43
+
44
+ [[package]]
45
+ name = "cexpr"
46
+ version = "0.6.0"
47
+ source = "registry+https://github.com/rust-lang/crates.io-index"
48
+ checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
49
+ dependencies = [
50
+ "nom",
51
+ ]
52
+
53
+ [[package]]
54
+ name = "cfg-if"
55
+ version = "1.0.5"
56
+ source = "registry+https://github.com/rust-lang/crates.io-index"
57
+ checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
58
+
59
+ [[package]]
60
+ name = "clang-sys"
61
+ version = "1.9.1"
62
+ source = "registry+https://github.com/rust-lang/crates.io-index"
63
+ checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a"
64
+ dependencies = [
65
+ "glob",
66
+ "libc",
67
+ "libloading",
68
+ ]
69
+
70
+ [[package]]
71
+ name = "coalesce-machines"
72
+ version = "0.8.1"
73
+ source = "registry+https://github.com/rust-lang/crates.io-index"
74
+ checksum = "f843cc25a1cc33189656db5f513b97715c12c54ff93fafa68504a6b6ff37bd34"
75
+ dependencies = [
76
+ "periscope-machines",
77
+ ]
78
+
79
+ [[package]]
80
+ name = "either"
81
+ version = "1.19.0"
82
+ source = "registry+https://github.com/rust-lang/crates.io-index"
83
+ checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
84
+
85
+ [[package]]
86
+ name = "glob"
87
+ version = "0.3.4"
88
+ source = "registry+https://github.com/rust-lang/crates.io-index"
89
+ checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
90
+
91
+ [[package]]
92
+ name = "itertools"
93
+ version = "0.13.0"
94
+ source = "registry+https://github.com/rust-lang/crates.io-index"
95
+ checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
96
+ dependencies = [
97
+ "either",
98
+ ]
99
+
100
+ [[package]]
101
+ name = "lazy_static"
102
+ version = "1.5.1"
103
+ source = "registry+https://github.com/rust-lang/crates.io-index"
104
+ checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb"
105
+
106
+ [[package]]
107
+ name = "libc"
108
+ version = "0.2.191"
109
+ source = "registry+https://github.com/rust-lang/crates.io-index"
110
+ checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
111
+
112
+ [[package]]
113
+ name = "libloading"
114
+ version = "0.8.9"
115
+ source = "registry+https://github.com/rust-lang/crates.io-index"
116
+ checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
117
+ dependencies = [
118
+ "cfg-if",
119
+ "windows-link",
120
+ ]
121
+
122
+ [[package]]
123
+ name = "magnus"
124
+ version = "0.9.3"
125
+ source = "registry+https://github.com/rust-lang/crates.io-index"
126
+ checksum = "40ef424404d166cbb71c8b8d19c9c589c748c4547c1afa1928c5504299f6c713"
127
+ dependencies = [
128
+ "bytes",
129
+ "magnus-macros",
130
+ "rb-sys",
131
+ "rb-sys-env",
132
+ "seq-macro",
133
+ ]
134
+
135
+ [[package]]
136
+ name = "magnus-macros"
137
+ version = "0.9.1"
138
+ source = "registry+https://github.com/rust-lang/crates.io-index"
139
+ checksum = "9dafde2eeb66f090e0f326112323eb8324b12cb32b5d1210e541d3df6b0ce77e"
140
+ dependencies = [
141
+ "proc-macro2",
142
+ "quote",
143
+ "syn",
144
+ ]
145
+
146
+ [[package]]
147
+ name = "matryona-machines"
148
+ version = "0.6.0"
149
+ source = "registry+https://github.com/rust-lang/crates.io-index"
150
+ checksum = "cf8a06ab02efd767270815a1f515a40bbf3bfc77038e9360676ebe8d47833b07"
151
+ dependencies = [
152
+ "magnus",
153
+ ]
154
+
155
+ [[package]]
156
+ name = "memchr"
157
+ version = "2.8.3"
158
+ source = "registry+https://github.com/rust-lang/crates.io-index"
159
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
160
+
161
+ [[package]]
162
+ name = "minimal-lexical"
163
+ version = "0.2.1"
164
+ source = "registry+https://github.com/rust-lang/crates.io-index"
165
+ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
166
+
167
+ [[package]]
168
+ name = "nom"
169
+ version = "7.1.3"
170
+ source = "registry+https://github.com/rust-lang/crates.io-index"
171
+ checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
172
+ dependencies = [
173
+ "memchr",
174
+ "minimal-lexical",
175
+ ]
176
+
177
+ [[package]]
178
+ name = "periscope-machines"
179
+ version = "0.5.0"
180
+ source = "registry+https://github.com/rust-lang/crates.io-index"
181
+ checksum = "1602a0bb66b4ba9529244868a2344cc39282c62c8ae4df357244adf49347bf51"
182
+
183
+ [[package]]
184
+ name = "proc-macro2"
185
+ version = "1.0.107"
186
+ source = "registry+https://github.com/rust-lang/crates.io-index"
187
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
188
+ dependencies = [
189
+ "unicode-ident",
190
+ ]
191
+
192
+ [[package]]
193
+ name = "quote"
194
+ version = "1.0.47"
195
+ source = "registry+https://github.com/rust-lang/crates.io-index"
196
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
197
+ dependencies = [
198
+ "proc-macro2",
199
+ ]
200
+
201
+ [[package]]
202
+ name = "rb-sys"
203
+ version = "0.9.130"
204
+ source = "registry+https://github.com/rust-lang/crates.io-index"
205
+ checksum = "02faf625bb10ba893e3ae620f19c9fb1b5f8fcae0fe4eb86bb3f2230fad75edb"
206
+ dependencies = [
207
+ "rb-sys-build",
208
+ ]
209
+
210
+ [[package]]
211
+ name = "rb-sys-build"
212
+ version = "0.9.130"
213
+ source = "registry+https://github.com/rust-lang/crates.io-index"
214
+ checksum = "05be6f9c86fe5482808162826f6c047d093b3670582296c770de1d94f8066694"
215
+ dependencies = [
216
+ "bindgen",
217
+ "lazy_static",
218
+ "proc-macro2",
219
+ "quote",
220
+ "regex",
221
+ "shell-words",
222
+ "syn",
223
+ ]
224
+
225
+ [[package]]
226
+ name = "rb-sys-env"
227
+ version = "0.2.3"
228
+ source = "registry+https://github.com/rust-lang/crates.io-index"
229
+ checksum = "cca7ad6a7e21e72151d56fe2495a259b5670e204c3adac41ee7ef676ea08117a"
230
+
231
+ [[package]]
232
+ name = "refresh-machines"
233
+ version = "0.8.1"
234
+ dependencies = [
235
+ "coalesce-machines",
236
+ "matryona-machines",
237
+ "periscope-machines",
238
+ ]
239
+
240
+ [[package]]
241
+ name = "refresh_machines_native"
242
+ version = "0.1.8"
243
+ dependencies = [
244
+ "magnus",
245
+ "matryona-machines",
246
+ "periscope-machines",
247
+ "rb-sys",
248
+ "refresh-machines",
249
+ ]
250
+
251
+ [[package]]
252
+ name = "regex"
253
+ version = "1.13.1"
254
+ source = "registry+https://github.com/rust-lang/crates.io-index"
255
+ checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
256
+ dependencies = [
257
+ "aho-corasick",
258
+ "memchr",
259
+ "regex-automata",
260
+ "regex-syntax",
261
+ ]
262
+
263
+ [[package]]
264
+ name = "regex-automata"
265
+ version = "0.4.18"
266
+ source = "registry+https://github.com/rust-lang/crates.io-index"
267
+ checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
268
+ dependencies = [
269
+ "aho-corasick",
270
+ "memchr",
271
+ "regex-syntax",
272
+ ]
273
+
274
+ [[package]]
275
+ name = "regex-syntax"
276
+ version = "0.8.11"
277
+ source = "registry+https://github.com/rust-lang/crates.io-index"
278
+ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
279
+
280
+ [[package]]
281
+ name = "rustc-hash"
282
+ version = "2.1.3"
283
+ source = "registry+https://github.com/rust-lang/crates.io-index"
284
+ checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
285
+
286
+ [[package]]
287
+ name = "seq-macro"
288
+ version = "0.3.6"
289
+ source = "registry+https://github.com/rust-lang/crates.io-index"
290
+ checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
291
+
292
+ [[package]]
293
+ name = "shell-words"
294
+ version = "1.1.1"
295
+ source = "registry+https://github.com/rust-lang/crates.io-index"
296
+ checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
297
+
298
+ [[package]]
299
+ name = "shlex"
300
+ version = "1.3.0"
301
+ source = "registry+https://github.com/rust-lang/crates.io-index"
302
+ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
303
+
304
+ [[package]]
305
+ name = "syn"
306
+ version = "2.0.119"
307
+ source = "registry+https://github.com/rust-lang/crates.io-index"
308
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
309
+ dependencies = [
310
+ "proc-macro2",
311
+ "quote",
312
+ "unicode-ident",
313
+ ]
314
+
315
+ [[package]]
316
+ name = "unicode-ident"
317
+ version = "1.0.27"
318
+ source = "registry+https://github.com/rust-lang/crates.io-index"
319
+ checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
320
+
321
+ [[package]]
322
+ name = "windows-link"
323
+ version = "0.2.1"
324
+ source = "registry+https://github.com/rust-lang/crates.io-index"
325
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
data/Cargo.toml ADDED
@@ -0,0 +1,29 @@
1
+ [workspace]
2
+ members = ["ext/refresh_machines_native/core", "ext/refresh_machines_native/ffi"]
3
+ default-members = ["ext/refresh_machines_native/core"]
4
+ resolver = "3"
5
+
6
+ [workspace.package]
7
+ edition = "2024"
8
+ rust-version = "1.99"
9
+ license = "MIT"
10
+
11
+ [workspace.dependencies]
12
+ refresh-machines = { path = "ext/refresh_machines_native/core" }
13
+ matryona-machines = { version = ">=0.6", default-features = false }
14
+ magnus = { version = "0.9.3", default-features = false }
15
+ coalesce-machines = ">=0.8.1"
16
+ periscope-machines = ">=0.5"
17
+ rb-sys = { version = "0.9.130", default-features = false, features = ["stable-api-compiled-fallback"] }
18
+
19
+ [workspace.lints.rust]
20
+ unsafe_code = "deny"
21
+ unused_must_use = "warn"
22
+ missing_docs = "warn"
23
+
24
+ [workspace.lints.clippy]
25
+ all = { level = "warn", priority = -1 }
26
+ pedantic = { level = "warn", priority = -1 }
27
+ nursery = { level = "warn", priority = -1 }
28
+ unwrap_used = "deny"
29
+ expect_used = "deny"
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Abdelkader Boudih
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.