outbox_machines 0.8.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: 8323a979d2e8b192f50709460fc896413fc2f7f6628fb6b60291148994368dc0
4
+ data.tar.gz: 28e81b1731311fb3214606d34992103f7477a736318d82d5ec9a866a23a075c6
5
+ SHA512:
6
+ metadata.gz: 76aee3b13dd0b81ada280700477b3806217a2963342254b77155d7304b966b53ee0a5e724792c3d54a0f1d18a1d31f88d74ddbe2ae5eb2c0d4dc987609c62958
7
+ data.tar.gz: 0b3b5660daed952b27806880efe849251200e4aa16eae60ce12ef6d75f86a8a2a60a70a00a04babcefb622340f45a1d1f75160b2c0c344039fbd651f8982ec61
data/CHANGELOG.md ADDED
@@ -0,0 +1,106 @@
1
+ # Changelog
2
+
3
+ ## [0.8.1](https://github.com/seuros/outbox_machines/compare/outbox_machines/v0.8.0...outbox_machines/v0.8.1) (2026-11-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * fix wrapped classes at load so building a value runs no Ruby ([0aecf34](https://github.com/seuros/outbox_machines/commit/0aecf34e6c76d99fffdceeeb1b1d6bebdb498b68))
9
+
10
+ ## [0.8.0](https://github.com/seuros/outbox_machines/compare/outbox_machines/v0.7.0...outbox_machines/v0.8.0) (2026-11-16)
11
+
12
+
13
+ ### ⚠ BREAKING CHANGES
14
+
15
+ * rename Sweep::written to Sweep::expired; times take full Duration
16
+
17
+ ### Features
18
+
19
+ * rename Sweep::written to Sweep::expired; times take full Duration ([6ed9a94](https://github.com/seuros/outbox_machines/commit/6ed9a94383a1f48efcbd0074900b2d79c717d425))
20
+
21
+ ## [0.7.0](https://github.com/seuros/outbox_machines/compare/outbox_machines/v0.6.1...outbox_machines/v0.7.0) (2026-11-14)
22
+
23
+
24
+ ### ⚠ BREAKING CHANGES
25
+
26
+ * read dispositions with symbol_or_fields under one message
27
+
28
+ ### Features
29
+
30
+ * read dispositions with symbol_or_fields under one message ([e688077](https://github.com/seuros/outbox_machines/commit/e688077d680a0141eb8e637bc3043cd2b58b4486))
31
+
32
+ ## [0.6.1](https://github.com/seuros/outbox_machines/compare/outbox_machines/v0.6.0...outbox_machines/v0.6.1) (2026-11-14)
33
+
34
+
35
+ ### Bug Fixes
36
+
37
+ * **deps:** require matryona-machines >= 0.3 ([8f99e68](https://github.com/seuros/outbox_machines/commit/8f99e681d265f29452b81a86ec67adcf4b309931))
38
+
39
+ ## [0.6.0](https://github.com/seuros/outbox_machines/compare/outbox_machines/v0.5.0...outbox_machines/v0.6.0) (2026-11-14)
40
+
41
+
42
+ ### ⚠ BREAKING CHANGES
43
+
44
+ * adopt matryona-machines 0.2 and check frozen before converting arguments
45
+
46
+ ### Features
47
+
48
+ * adopt matryona-machines 0.2 and check frozen before converting arguments ([06553b9](https://github.com/seuros/outbox_machines/commit/06553b93b8b47b79289cb85c1da24b44248146a0))
49
+
50
+ ## [0.5.0](https://github.com/seuros/outbox_machines/compare/outbox_machines/v0.4.0...outbox_machines/v0.5.0) (2026-11-14)
51
+
52
+
53
+ ### ⚠ BREAKING CHANGES
54
+
55
+ * build the binding on matryona-machines; accept a genuine value whose singleton class was opened; name every argument in conversion errors
56
+
57
+ ### Features
58
+
59
+ * build the binding on matryona-machines; accept a genuine value whose singleton class was opened; name every argument in conversion errors ([79e565c](https://github.com/seuros/outbox_machines/commit/79e565c2859fd02c7ca7fc99057b0cca410aa988))
60
+
61
+ ## [0.4.0](https://github.com/seuros/outbox_machines/compare/outbox_machines/v0.3.0...outbox_machines/v0.4.0) (2026-11-14)
62
+
63
+
64
+ ### ⚠ BREAKING CHANGES
65
+
66
+ * private value fields, drop the enqueue sequence, Pass replaces the sweep flag, sealed exact-class values, clone-then-keep claim/fail/expire
67
+
68
+ ### Features
69
+
70
+ * private value fields, drop the enqueue sequence, Pass replaces the sweep flag, sealed exact-class values, clone-then-keep claim/fail/expire ([e6c66dc](https://github.com/seuros/outbox_machines/commit/e6c66dcb726d2a211785504a9fff6ad1daa19611))
71
+
72
+ ## [0.3.0](https://github.com/seuros/outbox_machines/compare/outbox_machines/v0.2.0...outbox_machines/v0.3.0) (2026-11-13)
73
+
74
+
75
+ ### ⚠ BREAKING CHANGES
76
+
77
+ * 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. An attempt from another outbox, or one this outbox never issued, answers Stale.
78
+
79
+ ### Features
80
+
81
+ * scope attempt identities through periscope-machines, refuse attempts never issued, add Outbox::resumed ([f47285b](https://github.com/seuros/outbox_machines/commit/f47285b5304cbc21d6378b7f448badca23f32196))
82
+
83
+ ## [0.2.0](https://github.com/seuros/outbox_machines/compare/outbox_machines/v0.1.2...outbox_machines/v0.2.0) (2026-11-13)
84
+
85
+
86
+ ### ⚠ BREAKING CHANGES
87
+
88
+ * see CONVENTIONS: one exhaustive Refusal per crate, Result from every mutator, honoured idempotent repeats, Ruby mirrors the core. No compatibility aliases. Claimed and Expired carry a u64 attempt instead of a per-record generation; refused or repeated calls never advance the clock; the Error alias is gone; Ruby times are Integer nanoseconds and values mirror the core.
89
+
90
+ ### Features
91
+
92
+ * never reissue attempt identities, honour repeated confirm, fail and forget, Full and Mismatch refusals ([12af815](https://github.com/seuros/outbox_machines/commit/12af815e86a5ac549ec5149642afe35c91ff7a75))
93
+
94
+ ## [0.1.2](https://github.com/seuros/outbox_machines/compare/outbox_machines/v0.1.1...outbox_machines/v0.1.2) (2026-11-13)
95
+
96
+
97
+ ### Features
98
+
99
+ * rename Error to Refusal and implement Default for Expired ([6f70b82](https://github.com/seuros/outbox_machines/commit/6f70b82ebad6b6f66ea67e520bbb54fcde79550a))
100
+
101
+ ## [0.1.1](https://github.com/seuros/outbox_machines/compare/outbox_machines-v0.1.0...outbox_machines/v0.1.1) (2026-11-12)
102
+
103
+
104
+ ### Features
105
+
106
+ * initial extraction ([1f6f6ac](https://github.com/seuros/outbox_machines/commit/1f6f6ac855f31b4f1da27c3709f71bc1f0d4522c))
data/Cargo.lock ADDED
@@ -0,0 +1,314 @@
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 = "lazy_static"
93
+ version = "1.5.1"
94
+ source = "registry+https://github.com/rust-lang/crates.io-index"
95
+ checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb"
96
+
97
+ [[package]]
98
+ name = "libc"
99
+ version = "0.2.191"
100
+ source = "registry+https://github.com/rust-lang/crates.io-index"
101
+ checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
102
+
103
+ [[package]]
104
+ name = "libloading"
105
+ version = "0.8.9"
106
+ source = "registry+https://github.com/rust-lang/crates.io-index"
107
+ checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
108
+ dependencies = [
109
+ "cfg-if",
110
+ "windows-link",
111
+ ]
112
+
113
+ [[package]]
114
+ name = "magnus"
115
+ version = "0.9.3"
116
+ source = "registry+https://github.com/rust-lang/crates.io-index"
117
+ checksum = "40ef424404d166cbb71c8b8d19c9c589c748c4547c1afa1928c5504299f6c713"
118
+ dependencies = [
119
+ "bytes",
120
+ "magnus-macros",
121
+ "rb-sys",
122
+ "rb-sys-env",
123
+ "seq-macro",
124
+ ]
125
+
126
+ [[package]]
127
+ name = "magnus-macros"
128
+ version = "0.9.1"
129
+ source = "registry+https://github.com/rust-lang/crates.io-index"
130
+ checksum = "9dafde2eeb66f090e0f326112323eb8324b12cb32b5d1210e541d3df6b0ce77e"
131
+ dependencies = [
132
+ "proc-macro2",
133
+ "quote",
134
+ "syn",
135
+ ]
136
+
137
+ [[package]]
138
+ name = "matryona-machines"
139
+ version = "0.6.0"
140
+ source = "registry+https://github.com/rust-lang/crates.io-index"
141
+ checksum = "cf8a06ab02efd767270815a1f515a40bbf3bfc77038e9360676ebe8d47833b07"
142
+ dependencies = [
143
+ "magnus",
144
+ ]
145
+
146
+ [[package]]
147
+ name = "memchr"
148
+ version = "2.8.3"
149
+ source = "registry+https://github.com/rust-lang/crates.io-index"
150
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
151
+
152
+ [[package]]
153
+ name = "minimal-lexical"
154
+ version = "0.2.1"
155
+ source = "registry+https://github.com/rust-lang/crates.io-index"
156
+ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
157
+
158
+ [[package]]
159
+ name = "nom"
160
+ version = "7.1.3"
161
+ source = "registry+https://github.com/rust-lang/crates.io-index"
162
+ checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
163
+ dependencies = [
164
+ "memchr",
165
+ "minimal-lexical",
166
+ ]
167
+
168
+ [[package]]
169
+ name = "outbox-machines"
170
+ version = "0.9.0"
171
+ dependencies = [
172
+ "matryona-machines",
173
+ "periscope-machines",
174
+ ]
175
+
176
+ [[package]]
177
+ name = "outbox_machines_native"
178
+ version = "0.1.8"
179
+ dependencies = [
180
+ "magnus",
181
+ "matryona-machines",
182
+ "outbox-machines",
183
+ "rb-sys",
184
+ ]
185
+
186
+ [[package]]
187
+ name = "periscope-machines"
188
+ version = "0.5.0"
189
+ source = "registry+https://github.com/rust-lang/crates.io-index"
190
+ checksum = "1602a0bb66b4ba9529244868a2344cc39282c62c8ae4df357244adf49347bf51"
191
+
192
+ [[package]]
193
+ name = "proc-macro2"
194
+ version = "1.0.107"
195
+ source = "registry+https://github.com/rust-lang/crates.io-index"
196
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
197
+ dependencies = [
198
+ "unicode-ident",
199
+ ]
200
+
201
+ [[package]]
202
+ name = "quote"
203
+ version = "1.0.47"
204
+ source = "registry+https://github.com/rust-lang/crates.io-index"
205
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
206
+ dependencies = [
207
+ "proc-macro2",
208
+ ]
209
+
210
+ [[package]]
211
+ name = "rb-sys"
212
+ version = "0.9.130"
213
+ source = "registry+https://github.com/rust-lang/crates.io-index"
214
+ checksum = "02faf625bb10ba893e3ae620f19c9fb1b5f8fcae0fe4eb86bb3f2230fad75edb"
215
+ dependencies = [
216
+ "rb-sys-build",
217
+ ]
218
+
219
+ [[package]]
220
+ name = "rb-sys-build"
221
+ version = "0.9.130"
222
+ source = "registry+https://github.com/rust-lang/crates.io-index"
223
+ checksum = "05be6f9c86fe5482808162826f6c047d093b3670582296c770de1d94f8066694"
224
+ dependencies = [
225
+ "bindgen",
226
+ "lazy_static",
227
+ "proc-macro2",
228
+ "quote",
229
+ "regex",
230
+ "shell-words",
231
+ "syn",
232
+ ]
233
+
234
+ [[package]]
235
+ name = "rb-sys-env"
236
+ version = "0.2.3"
237
+ source = "registry+https://github.com/rust-lang/crates.io-index"
238
+ checksum = "cca7ad6a7e21e72151d56fe2495a259b5670e204c3adac41ee7ef676ea08117a"
239
+
240
+ [[package]]
241
+ name = "regex"
242
+ version = "1.13.1"
243
+ source = "registry+https://github.com/rust-lang/crates.io-index"
244
+ checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
245
+ dependencies = [
246
+ "aho-corasick",
247
+ "memchr",
248
+ "regex-automata",
249
+ "regex-syntax",
250
+ ]
251
+
252
+ [[package]]
253
+ name = "regex-automata"
254
+ version = "0.4.18"
255
+ source = "registry+https://github.com/rust-lang/crates.io-index"
256
+ checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
257
+ dependencies = [
258
+ "aho-corasick",
259
+ "memchr",
260
+ "regex-syntax",
261
+ ]
262
+
263
+ [[package]]
264
+ name = "regex-syntax"
265
+ version = "0.8.11"
266
+ source = "registry+https://github.com/rust-lang/crates.io-index"
267
+ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
268
+
269
+ [[package]]
270
+ name = "rustc-hash"
271
+ version = "2.1.3"
272
+ source = "registry+https://github.com/rust-lang/crates.io-index"
273
+ checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
274
+
275
+ [[package]]
276
+ name = "seq-macro"
277
+ version = "0.3.6"
278
+ source = "registry+https://github.com/rust-lang/crates.io-index"
279
+ checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
280
+
281
+ [[package]]
282
+ name = "shell-words"
283
+ version = "1.1.1"
284
+ source = "registry+https://github.com/rust-lang/crates.io-index"
285
+ checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
286
+
287
+ [[package]]
288
+ name = "shlex"
289
+ version = "1.3.0"
290
+ source = "registry+https://github.com/rust-lang/crates.io-index"
291
+ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
292
+
293
+ [[package]]
294
+ name = "syn"
295
+ version = "2.0.119"
296
+ source = "registry+https://github.com/rust-lang/crates.io-index"
297
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
298
+ dependencies = [
299
+ "proc-macro2",
300
+ "quote",
301
+ "unicode-ident",
302
+ ]
303
+
304
+ [[package]]
305
+ name = "unicode-ident"
306
+ version = "1.0.27"
307
+ source = "registry+https://github.com/rust-lang/crates.io-index"
308
+ checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
309
+
310
+ [[package]]
311
+ name = "windows-link"
312
+ version = "0.2.1"
313
+ source = "registry+https://github.com/rust-lang/crates.io-index"
314
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
data/Cargo.toml ADDED
@@ -0,0 +1,28 @@
1
+ [workspace]
2
+ members = ["ext/outbox_machines_native/core", "ext/outbox_machines_native/ffi"]
3
+ default-members = ["ext/outbox_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
+ outbox-machines = { path = "ext/outbox_machines_native/core" }
13
+ periscope-machines = ">=0.5"
14
+ matryona-machines = { version = ">=0.6", default-features = false }
15
+ magnus = { version = "0.9.3", default-features = false }
16
+ rb-sys = { version = "0.9.130", default-features = false, features = ["stable-api-compiled-fallback"] }
17
+
18
+ [workspace.lints.rust]
19
+ unsafe_code = "deny"
20
+ unused_must_use = "warn"
21
+ missing_docs = "warn"
22
+
23
+ [workspace.lints.clippy]
24
+ all = { level = "warn", priority = -1 }
25
+ pedantic = { level = "warn", priority = -1 }
26
+ nursery = { level = "warn", priority = -1 }
27
+ unwrap_used = "deny"
28
+ 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.