journal_machines 0.7.1

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: 2826860ee8d7b8ca6c5fbc9bf02d3205f4e0a2dbd902f324f8fb829cf8b2773a
4
+ data.tar.gz: ac6a3c699aa904e2c4fc054baa0b2fdbf41bdf8ea876499758a895503adcdeb1
5
+ SHA512:
6
+ metadata.gz: 54f831fe5545dbaa3778b1ccebaa2f128b6206ce49866ee0ee229791897d7a855356064fe8500fde7e8215751687de35b9d1ce69d6f657ea1edc8ac8bcf50a46
7
+ data.tar.gz: fe8353d002c26cbd69abc08e9741a99d07e2c7471cebc65c61f8b787c8c1d5aa09a087aa746c3b03cf2107d4b9a2e7fb9b1b04e25eb00b662c40fc446407de79
data/CHANGELOG.md ADDED
@@ -0,0 +1,95 @@
1
+ # Changelog
2
+
3
+ ## [0.7.1](https://github.com/seuros/journal_machines/compare/journal_machines/v0.7.0...journal_machines/v0.7.1) (2026-11-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * fix wrapped classes at load so building a handle runs no Ruby ([f87e049](https://github.com/seuros/journal_machines/commit/f87e049d521da4c49f9b160a5247c2a94307aaf5))
9
+
10
+ ## [0.7.0](https://github.com/seuros/journal_machines/compare/journal_machines/v0.6.1...journal_machines/v0.7.0) (2026-11-16)
11
+
12
+
13
+ ### ⚠ BREAKING CHANGES
14
+
15
+ * replace Segment pinned bool with a Retention enum
16
+
17
+ ### Features
18
+
19
+ * replace Segment pinned bool with a Retention enum ([98d6904](https://github.com/seuros/journal_machines/commit/98d690430cea94988b5ceb7389d7238999896dcd))
20
+
21
+ ## [0.6.1](https://github.com/seuros/journal_machines/compare/journal_machines/v0.6.0...journal_machines/v0.6.1) (2026-11-14)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * **deps:** require matryona-machines >= 0.4 and read the Segment replacement with optional_typed ([f318c31](https://github.com/seuros/journal_machines/commit/f318c317503a121503ce9865fd51f0289e6398c0))
27
+
28
+ ## [0.6.0](https://github.com/seuros/journal_machines/compare/journal_machines/v0.5.0...journal_machines/v0.6.0) (2026-11-14)
29
+
30
+
31
+ ### ⚠ BREAKING CHANGES
32
+
33
+ * adopt matryona 0.3: optional_positive, integer_in and boolean readers, names_only refusal table
34
+
35
+ ### Features
36
+
37
+ * adopt matryona 0.3: optional_positive, integer_in and boolean readers, names_only refusal table ([ab0f05d](https://github.com/seuros/journal_machines/commit/ab0f05dc11b473e24308f7696af71be55674ee11))
38
+
39
+ ## [0.5.0](https://github.com/seuros/journal_machines/compare/journal_machines/v0.4.0...journal_machines/v0.5.0) (2026-11-14)
40
+
41
+
42
+ ### ⚠ BREAKING CHANGES
43
+
44
+ * adopt matryona-machines 0.2: exact-class Pin/Replacement handles, positive thresholds, compiler-checked symbol tables
45
+
46
+ ### Features
47
+
48
+ * adopt matryona-machines 0.2: exact-class Pin/Replacement handles, positive thresholds, compiler-checked symbol tables ([53ef3b1](https://github.com/seuros/journal_machines/commit/53ef3b10ded3b1b994e2da14f04ecd5dcf5c7a7c))
49
+
50
+ ## [0.4.0](https://github.com/seuros/journal_machines/compare/journal_machines/v0.3.0...journal_machines/v0.4.0) (2026-11-14)
51
+
52
+
53
+ ### ⚠ BREAKING CHANGES
54
+
55
+ * validate values through the core, value handles, native answers, read Policy by exact class, clone-then-keep roll/reclaim
56
+
57
+ ### Features
58
+
59
+ * validate values through the core, value handles, native answers, read Policy by exact class, clone-then-keep roll/reclaim ([5b00d40](https://github.com/seuros/journal_machines/commit/5b00d406d92bdfb6f1ec331b60c61243ec013994))
60
+
61
+ ## [0.3.0](https://github.com/seuros/journal_machines/compare/journal_machines/v0.2.0...journal_machines/v0.3.0) (2026-11-13)
62
+
63
+
64
+ ### ⚠ BREAKING CHANGES
65
+
66
+ * handles are issued through periscope-machines. Every instance can be built with a scope; a handle from another scope is refused before any lookup; all handle kinds of an instance share one sequence; resumed restores the sequence after a restart. Handles of a journal no longer share raw values; release of a pin that is not held is Stale; the Ruby owner tag is gone.
67
+
68
+ ### Features
69
+
70
+ * draw segment ids, pin generations and attempts from one scoped periscope sequence; add Journal::resumed ([6a9b959](https://github.com/seuros/journal_machines/commit/6a9b9597aceffa452dee5d74903f99b184a15d2e))
71
+
72
+ ## [0.2.0](https://github.com/seuros/journal_machines/compare/journal_machines/v0.1.2...journal_machines/v0.2.0) (2026-11-13)
73
+
74
+
75
+ ### ⚠ BREAKING CHANGES
76
+
77
+ * 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 offset-machines >= 0.3. A repeated confirm with another payload is Mismatch; releasing a pin that is not held is Stale.
78
+
79
+ ### Features
80
+
81
+ * one Refusal enum with Result everywhere, provable repeats only, Duration time, Ruby Policy and _from pin calls ([f820899](https://github.com/seuros/journal_machines/commit/f8208990722b8407f206f8714c5708720f72dc74))
82
+
83
+ ## [0.1.2](https://github.com/seuros/journal_machines/compare/journal_machines/v0.1.1...journal_machines/v0.1.2) (2026-11-13)
84
+
85
+
86
+ ### Features
87
+
88
+ * add pin_checkpoint_from and checkpoint_from to the Ruby journal ([a42f1da](https://github.com/seuros/journal_machines/commit/a42f1dace271d39d47264133d63bcd3d1101e441))
89
+
90
+ ## [0.1.1](https://github.com/seuros/journal_machines/compare/journal_machines-v0.1.0...journal_machines/v0.1.1) (2026-11-12)
91
+
92
+
93
+ ### Features
94
+
95
+ * initial extraction ([1e4f7a9](https://github.com/seuros/journal_machines/commit/1e4f7a9c3344bd27293fc3f51ee66e22d266e183))
data/Cargo.lock ADDED
@@ -0,0 +1,321 @@
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 = "either"
72
+ version = "1.19.0"
73
+ source = "registry+https://github.com/rust-lang/crates.io-index"
74
+ checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
75
+
76
+ [[package]]
77
+ name = "glob"
78
+ version = "0.3.4"
79
+ source = "registry+https://github.com/rust-lang/crates.io-index"
80
+ checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
81
+
82
+ [[package]]
83
+ name = "itertools"
84
+ version = "0.13.0"
85
+ source = "registry+https://github.com/rust-lang/crates.io-index"
86
+ checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
87
+ dependencies = [
88
+ "either",
89
+ ]
90
+
91
+ [[package]]
92
+ name = "journal-machines"
93
+ version = "0.8.1"
94
+ dependencies = [
95
+ "matryona-machines",
96
+ "offset-machines",
97
+ "periscope-machines",
98
+ ]
99
+
100
+ [[package]]
101
+ name = "journal_machines_native"
102
+ version = "0.1.8"
103
+ dependencies = [
104
+ "journal-machines",
105
+ "magnus",
106
+ "matryona-machines",
107
+ "rb-sys",
108
+ ]
109
+
110
+ [[package]]
111
+ name = "lazy_static"
112
+ version = "1.5.1"
113
+ source = "registry+https://github.com/rust-lang/crates.io-index"
114
+ checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb"
115
+
116
+ [[package]]
117
+ name = "libc"
118
+ version = "0.2.191"
119
+ source = "registry+https://github.com/rust-lang/crates.io-index"
120
+ checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
121
+
122
+ [[package]]
123
+ name = "libloading"
124
+ version = "0.8.9"
125
+ source = "registry+https://github.com/rust-lang/crates.io-index"
126
+ checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
127
+ dependencies = [
128
+ "cfg-if",
129
+ "windows-link",
130
+ ]
131
+
132
+ [[package]]
133
+ name = "magnus"
134
+ version = "0.9.3"
135
+ source = "registry+https://github.com/rust-lang/crates.io-index"
136
+ checksum = "40ef424404d166cbb71c8b8d19c9c589c748c4547c1afa1928c5504299f6c713"
137
+ dependencies = [
138
+ "bytes",
139
+ "magnus-macros",
140
+ "rb-sys",
141
+ "rb-sys-env",
142
+ "seq-macro",
143
+ ]
144
+
145
+ [[package]]
146
+ name = "magnus-macros"
147
+ version = "0.9.1"
148
+ source = "registry+https://github.com/rust-lang/crates.io-index"
149
+ checksum = "9dafde2eeb66f090e0f326112323eb8324b12cb32b5d1210e541d3df6b0ce77e"
150
+ dependencies = [
151
+ "proc-macro2",
152
+ "quote",
153
+ "syn",
154
+ ]
155
+
156
+ [[package]]
157
+ name = "matryona-machines"
158
+ version = "0.6.0"
159
+ source = "registry+https://github.com/rust-lang/crates.io-index"
160
+ checksum = "cf8a06ab02efd767270815a1f515a40bbf3bfc77038e9360676ebe8d47833b07"
161
+ dependencies = [
162
+ "magnus",
163
+ ]
164
+
165
+ [[package]]
166
+ name = "memchr"
167
+ version = "2.8.3"
168
+ source = "registry+https://github.com/rust-lang/crates.io-index"
169
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
170
+
171
+ [[package]]
172
+ name = "minimal-lexical"
173
+ version = "0.2.1"
174
+ source = "registry+https://github.com/rust-lang/crates.io-index"
175
+ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
176
+
177
+ [[package]]
178
+ name = "nom"
179
+ version = "7.1.3"
180
+ source = "registry+https://github.com/rust-lang/crates.io-index"
181
+ checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
182
+ dependencies = [
183
+ "memchr",
184
+ "minimal-lexical",
185
+ ]
186
+
187
+ [[package]]
188
+ name = "offset-machines"
189
+ version = "0.6.0"
190
+ source = "registry+https://github.com/rust-lang/crates.io-index"
191
+ checksum = "41d5e7a0879d8875861b4042ea94e3126413ebe022ea0cd017f6cd80bb8ef1e5"
192
+
193
+ [[package]]
194
+ name = "periscope-machines"
195
+ version = "0.5.0"
196
+ source = "registry+https://github.com/rust-lang/crates.io-index"
197
+ checksum = "1602a0bb66b4ba9529244868a2344cc39282c62c8ae4df357244adf49347bf51"
198
+
199
+ [[package]]
200
+ name = "proc-macro2"
201
+ version = "1.0.107"
202
+ source = "registry+https://github.com/rust-lang/crates.io-index"
203
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
204
+ dependencies = [
205
+ "unicode-ident",
206
+ ]
207
+
208
+ [[package]]
209
+ name = "quote"
210
+ version = "1.0.47"
211
+ source = "registry+https://github.com/rust-lang/crates.io-index"
212
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
213
+ dependencies = [
214
+ "proc-macro2",
215
+ ]
216
+
217
+ [[package]]
218
+ name = "rb-sys"
219
+ version = "0.9.130"
220
+ source = "registry+https://github.com/rust-lang/crates.io-index"
221
+ checksum = "02faf625bb10ba893e3ae620f19c9fb1b5f8fcae0fe4eb86bb3f2230fad75edb"
222
+ dependencies = [
223
+ "rb-sys-build",
224
+ ]
225
+
226
+ [[package]]
227
+ name = "rb-sys-build"
228
+ version = "0.9.130"
229
+ source = "registry+https://github.com/rust-lang/crates.io-index"
230
+ checksum = "05be6f9c86fe5482808162826f6c047d093b3670582296c770de1d94f8066694"
231
+ dependencies = [
232
+ "bindgen",
233
+ "lazy_static",
234
+ "proc-macro2",
235
+ "quote",
236
+ "regex",
237
+ "shell-words",
238
+ "syn",
239
+ ]
240
+
241
+ [[package]]
242
+ name = "rb-sys-env"
243
+ version = "0.2.3"
244
+ source = "registry+https://github.com/rust-lang/crates.io-index"
245
+ checksum = "cca7ad6a7e21e72151d56fe2495a259b5670e204c3adac41ee7ef676ea08117a"
246
+
247
+ [[package]]
248
+ name = "regex"
249
+ version = "1.13.1"
250
+ source = "registry+https://github.com/rust-lang/crates.io-index"
251
+ checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
252
+ dependencies = [
253
+ "aho-corasick",
254
+ "memchr",
255
+ "regex-automata",
256
+ "regex-syntax",
257
+ ]
258
+
259
+ [[package]]
260
+ name = "regex-automata"
261
+ version = "0.4.18"
262
+ source = "registry+https://github.com/rust-lang/crates.io-index"
263
+ checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
264
+ dependencies = [
265
+ "aho-corasick",
266
+ "memchr",
267
+ "regex-syntax",
268
+ ]
269
+
270
+ [[package]]
271
+ name = "regex-syntax"
272
+ version = "0.8.11"
273
+ source = "registry+https://github.com/rust-lang/crates.io-index"
274
+ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
275
+
276
+ [[package]]
277
+ name = "rustc-hash"
278
+ version = "2.1.3"
279
+ source = "registry+https://github.com/rust-lang/crates.io-index"
280
+ checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
281
+
282
+ [[package]]
283
+ name = "seq-macro"
284
+ version = "0.3.6"
285
+ source = "registry+https://github.com/rust-lang/crates.io-index"
286
+ checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
287
+
288
+ [[package]]
289
+ name = "shell-words"
290
+ version = "1.1.1"
291
+ source = "registry+https://github.com/rust-lang/crates.io-index"
292
+ checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
293
+
294
+ [[package]]
295
+ name = "shlex"
296
+ version = "1.3.0"
297
+ source = "registry+https://github.com/rust-lang/crates.io-index"
298
+ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
299
+
300
+ [[package]]
301
+ name = "syn"
302
+ version = "2.0.119"
303
+ source = "registry+https://github.com/rust-lang/crates.io-index"
304
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
305
+ dependencies = [
306
+ "proc-macro2",
307
+ "quote",
308
+ "unicode-ident",
309
+ ]
310
+
311
+ [[package]]
312
+ name = "unicode-ident"
313
+ version = "1.0.27"
314
+ source = "registry+https://github.com/rust-lang/crates.io-index"
315
+ checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
316
+
317
+ [[package]]
318
+ name = "windows-link"
319
+ version = "0.2.1"
320
+ source = "registry+https://github.com/rust-lang/crates.io-index"
321
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
data/Cargo.toml ADDED
@@ -0,0 +1,25 @@
1
+ [workspace]
2
+ members = ["ext/journal_machines_native/core", "ext/journal_machines_native/ffi"]
3
+ default-members = ["ext/journal_machines_native/core"]
4
+ resolver = "3"
5
+ [workspace.package]
6
+ edition = "2024"
7
+ rust-version = "1.99"
8
+ license = "MIT"
9
+ [workspace.dependencies]
10
+ journal-machines = { path = "ext/journal_machines_native/core" }
11
+ magnus = { version = "0.9.3", default-features = false }
12
+ rb-sys = { version = "0.9.130", default-features = false, features = ["stable-api-compiled-fallback"] }
13
+ offset-machines = ">=0.6"
14
+ periscope-machines = ">=0.5"
15
+ matryona-machines = { version = ">=0.6", default-features = false }
16
+ [workspace.lints.rust]
17
+ unsafe_code = "deny"
18
+ unused_must_use = "warn"
19
+ missing_docs = "warn"
20
+ [workspace.lints.clippy]
21
+ all = { level = "warn", priority = -1 }
22
+ pedantic = { level = "warn", priority = -1 }
23
+ nursery = { level = "warn", priority = -1 }
24
+ unwrap_used = "deny"
25
+ 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.