causal_machines 0.6.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: 7bbaf763061b7f7c4334b1957a594fd90a8ddebbbc0f012c7cead0da573f6c4a
4
+ data.tar.gz: e84b04b1bdcd611ed90968caf6cd054b550a71d25f0e841ea45eacf513855dfc
5
+ SHA512:
6
+ metadata.gz: 1a44c48fc3e02750cceaf1c498bbd366ed26eac6663fed78e4c8c2a87e904989eecc7fc67d32b1da9597214b8d4afcca298b2566a53fb4de49973b7734282e4e
7
+ data.tar.gz: 4fb83d249f63b65feef77d97ddd3c5d44fff3c7f6a0d71142d5933fbdb7fd3b67be08aa389ff3ca1084cf168a474598ac33ce1b17f69fa12ebd7e16745d08882
data/CHANGELOG.md ADDED
@@ -0,0 +1,84 @@
1
+ # Changelog
2
+
3
+ ## [0.6.1](https://github.com/seuros/causal_machines/compare/causal_machines/v0.6.0...causal_machines/v0.6.1) (2026-11-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * fix wrapped classes at load so building a value runs no Ruby ([f94dbaf](https://github.com/seuros/causal_machines/commit/f94dbaf0302fe295327dcaf133830caf33551cc2))
9
+
10
+ ## [0.6.0](https://github.com/seuros/causal_machines/compare/causal_machines/v0.5.1...causal_machines/v0.6.0) (2026-11-16)
11
+
12
+
13
+ ### ⚠ BREAKING CHANGES
14
+
15
+ * make Stamp fields private and rename Page::written to gaps
16
+
17
+ ### Features
18
+
19
+ * make Stamp fields private and rename Page::written to gaps ([72e7251](https://github.com/seuros/causal_machines/commit/72e72511df535122c04c82b59293b7fbb7634063))
20
+
21
+ ## [0.5.1](https://github.com/seuros/causal_machines/compare/causal_machines/v0.5.0...causal_machines/v0.5.1) (2026-11-14)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * **deps:** require matryona-machines >= 0.4 ([c0738ff](https://github.com/seuros/causal_machines/commit/c0738ffd0a2e4f98d60d7ad36d0b5fa4506107b5))
27
+
28
+ ## [0.5.0](https://github.com/seuros/causal_machines/compare/causal_machines/v0.4.0...causal_machines/v0.5.0) (2026-11-14)
29
+
30
+
31
+ ### ⚠ BREAKING CHANGES
32
+
33
+ * adopt matryona 0.3 integer_in for the missing limit
34
+
35
+ ### Features
36
+
37
+ * adopt matryona 0.3 integer_in for the missing limit ([af296fc](https://github.com/seuros/causal_machines/commit/af296fc8d2d545e22594a39cf4f3bb271dd6cefc))
38
+
39
+ ## [0.4.0](https://github.com/seuros/causal_machines/compare/causal_machines/v0.3.0...causal_machines/v0.4.0) (2026-11-14)
40
+
41
+
42
+ ### ⚠ BREAKING CHANGES
43
+
44
+ * adopt matryona-machines 0.2: exact readers, symbols! tables, struct-only field reads
45
+
46
+ ### Features
47
+
48
+ * adopt matryona-machines 0.2: exact readers, symbols! tables, struct-only field reads ([929e75f](https://github.com/seuros/causal_machines/commit/929e75f291a4e87ee25226b0c6e05e99f284339d))
49
+
50
+ ## [0.3.0](https://github.com/seuros/causal_machines/compare/causal_machines/v0.2.0...causal_machines/v0.3.0) (2026-11-14)
51
+
52
+
53
+ ### ⚠ BREAKING CHANGES
54
+
55
+ * validate Page and Gap in the core, refuse unissued missing cursors, seal values, clone-then-keep stamp/release
56
+
57
+ ### Features
58
+
59
+ * validate Page and Gap in the core, refuse unissued missing cursors, seal values, clone-then-keep stamp/release ([87b24f6](https://github.com/seuros/causal_machines/commit/87b24f6c6c4c295e142fdafa01de7ab5e2dee17b))
60
+
61
+ ## [0.2.0](https://github.com/seuros/causal_machines/compare/causal_machines/v0.1.2...causal_machines/v0.2.0) (2026-11-13)
62
+
63
+
64
+ ### ⚠ BREAKING CHANGES
65
+
66
+ * see CONVENTIONS: one exhaustive Refusal per crate, Result from every mutator, honoured idempotent repeats, Ruby mirrors the core. No compatibility aliases. check and missing can answer Conflict; the Ruby class is Causal; release answers Deliver or Obsolete values.
67
+
68
+ ### Features
69
+
70
+ * check conflicts on every receive path, Conflict and Full are refusals, forget answers Forgetting ([b2867a8](https://github.com/seuros/causal_machines/commit/b2867a83677cdc2180e9b771ce36eb4ed78624a9))
71
+
72
+ ## [0.1.2](https://github.com/seuros/causal_machines/compare/causal_machines/v0.1.1...causal_machines/v0.1.2) (2026-11-13)
73
+
74
+
75
+ ### Features
76
+
77
+ * implement Default for Gap ([5aa1b2c](https://github.com/seuros/causal_machines/commit/5aa1b2c5029d9d45da2f1f8ca3fdfd19a659b8f7))
78
+
79
+ ## [0.1.1](https://github.com/seuros/causal_machines/compare/causal_machines-v0.1.0...causal_machines/v0.1.1) (2026-11-12)
80
+
81
+
82
+ ### Features
83
+
84
+ * initial extraction ([cc9d39b](https://github.com/seuros/causal_machines/commit/cc9d39b5451f58f4762377dfa5dee280be0cbd9f))
data/Cargo.lock ADDED
@@ -0,0 +1,307 @@
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 = "causal-machines"
46
+ version = "0.7.0"
47
+ dependencies = [
48
+ "matryona-machines",
49
+ ]
50
+
51
+ [[package]]
52
+ name = "causal_machines_native"
53
+ version = "0.1.6"
54
+ dependencies = [
55
+ "causal-machines",
56
+ "magnus",
57
+ "matryona-machines",
58
+ "rb-sys",
59
+ ]
60
+
61
+ [[package]]
62
+ name = "cexpr"
63
+ version = "0.6.0"
64
+ source = "registry+https://github.com/rust-lang/crates.io-index"
65
+ checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
66
+ dependencies = [
67
+ "nom",
68
+ ]
69
+
70
+ [[package]]
71
+ name = "cfg-if"
72
+ version = "1.0.5"
73
+ source = "registry+https://github.com/rust-lang/crates.io-index"
74
+ checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
75
+
76
+ [[package]]
77
+ name = "clang-sys"
78
+ version = "1.9.1"
79
+ source = "registry+https://github.com/rust-lang/crates.io-index"
80
+ checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a"
81
+ dependencies = [
82
+ "glob",
83
+ "libc",
84
+ "libloading",
85
+ ]
86
+
87
+ [[package]]
88
+ name = "either"
89
+ version = "1.19.0"
90
+ source = "registry+https://github.com/rust-lang/crates.io-index"
91
+ checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
92
+
93
+ [[package]]
94
+ name = "glob"
95
+ version = "0.3.4"
96
+ source = "registry+https://github.com/rust-lang/crates.io-index"
97
+ checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
98
+
99
+ [[package]]
100
+ name = "itertools"
101
+ version = "0.13.0"
102
+ source = "registry+https://github.com/rust-lang/crates.io-index"
103
+ checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
104
+ dependencies = [
105
+ "either",
106
+ ]
107
+
108
+ [[package]]
109
+ name = "lazy_static"
110
+ version = "1.5.1"
111
+ source = "registry+https://github.com/rust-lang/crates.io-index"
112
+ checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb"
113
+
114
+ [[package]]
115
+ name = "libc"
116
+ version = "0.2.191"
117
+ source = "registry+https://github.com/rust-lang/crates.io-index"
118
+ checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
119
+
120
+ [[package]]
121
+ name = "libloading"
122
+ version = "0.8.9"
123
+ source = "registry+https://github.com/rust-lang/crates.io-index"
124
+ checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
125
+ dependencies = [
126
+ "cfg-if",
127
+ "windows-link",
128
+ ]
129
+
130
+ [[package]]
131
+ name = "magnus"
132
+ version = "0.9.3"
133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
134
+ checksum = "40ef424404d166cbb71c8b8d19c9c589c748c4547c1afa1928c5504299f6c713"
135
+ dependencies = [
136
+ "bytes",
137
+ "magnus-macros",
138
+ "rb-sys",
139
+ "rb-sys-env",
140
+ "seq-macro",
141
+ ]
142
+
143
+ [[package]]
144
+ name = "magnus-macros"
145
+ version = "0.9.1"
146
+ source = "registry+https://github.com/rust-lang/crates.io-index"
147
+ checksum = "9dafde2eeb66f090e0f326112323eb8324b12cb32b5d1210e541d3df6b0ce77e"
148
+ dependencies = [
149
+ "proc-macro2",
150
+ "quote",
151
+ "syn",
152
+ ]
153
+
154
+ [[package]]
155
+ name = "matryona-machines"
156
+ version = "0.6.0"
157
+ source = "registry+https://github.com/rust-lang/crates.io-index"
158
+ checksum = "cf8a06ab02efd767270815a1f515a40bbf3bfc77038e9360676ebe8d47833b07"
159
+ dependencies = [
160
+ "magnus",
161
+ ]
162
+
163
+ [[package]]
164
+ name = "memchr"
165
+ version = "2.8.3"
166
+ source = "registry+https://github.com/rust-lang/crates.io-index"
167
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
168
+
169
+ [[package]]
170
+ name = "minimal-lexical"
171
+ version = "0.2.1"
172
+ source = "registry+https://github.com/rust-lang/crates.io-index"
173
+ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
174
+
175
+ [[package]]
176
+ name = "nom"
177
+ version = "7.1.3"
178
+ source = "registry+https://github.com/rust-lang/crates.io-index"
179
+ checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
180
+ dependencies = [
181
+ "memchr",
182
+ "minimal-lexical",
183
+ ]
184
+
185
+ [[package]]
186
+ name = "proc-macro2"
187
+ version = "1.0.107"
188
+ source = "registry+https://github.com/rust-lang/crates.io-index"
189
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
190
+ dependencies = [
191
+ "unicode-ident",
192
+ ]
193
+
194
+ [[package]]
195
+ name = "quote"
196
+ version = "1.0.47"
197
+ source = "registry+https://github.com/rust-lang/crates.io-index"
198
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
199
+ dependencies = [
200
+ "proc-macro2",
201
+ ]
202
+
203
+ [[package]]
204
+ name = "rb-sys"
205
+ version = "0.9.130"
206
+ source = "registry+https://github.com/rust-lang/crates.io-index"
207
+ checksum = "02faf625bb10ba893e3ae620f19c9fb1b5f8fcae0fe4eb86bb3f2230fad75edb"
208
+ dependencies = [
209
+ "rb-sys-build",
210
+ ]
211
+
212
+ [[package]]
213
+ name = "rb-sys-build"
214
+ version = "0.9.130"
215
+ source = "registry+https://github.com/rust-lang/crates.io-index"
216
+ checksum = "05be6f9c86fe5482808162826f6c047d093b3670582296c770de1d94f8066694"
217
+ dependencies = [
218
+ "bindgen",
219
+ "lazy_static",
220
+ "proc-macro2",
221
+ "quote",
222
+ "regex",
223
+ "shell-words",
224
+ "syn",
225
+ ]
226
+
227
+ [[package]]
228
+ name = "rb-sys-env"
229
+ version = "0.2.3"
230
+ source = "registry+https://github.com/rust-lang/crates.io-index"
231
+ checksum = "cca7ad6a7e21e72151d56fe2495a259b5670e204c3adac41ee7ef676ea08117a"
232
+
233
+ [[package]]
234
+ name = "regex"
235
+ version = "1.13.1"
236
+ source = "registry+https://github.com/rust-lang/crates.io-index"
237
+ checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
238
+ dependencies = [
239
+ "aho-corasick",
240
+ "memchr",
241
+ "regex-automata",
242
+ "regex-syntax",
243
+ ]
244
+
245
+ [[package]]
246
+ name = "regex-automata"
247
+ version = "0.4.18"
248
+ source = "registry+https://github.com/rust-lang/crates.io-index"
249
+ checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
250
+ dependencies = [
251
+ "aho-corasick",
252
+ "memchr",
253
+ "regex-syntax",
254
+ ]
255
+
256
+ [[package]]
257
+ name = "regex-syntax"
258
+ version = "0.8.11"
259
+ source = "registry+https://github.com/rust-lang/crates.io-index"
260
+ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
261
+
262
+ [[package]]
263
+ name = "rustc-hash"
264
+ version = "2.1.3"
265
+ source = "registry+https://github.com/rust-lang/crates.io-index"
266
+ checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
267
+
268
+ [[package]]
269
+ name = "seq-macro"
270
+ version = "0.3.6"
271
+ source = "registry+https://github.com/rust-lang/crates.io-index"
272
+ checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
273
+
274
+ [[package]]
275
+ name = "shell-words"
276
+ version = "1.1.1"
277
+ source = "registry+https://github.com/rust-lang/crates.io-index"
278
+ checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
279
+
280
+ [[package]]
281
+ name = "shlex"
282
+ version = "1.3.0"
283
+ source = "registry+https://github.com/rust-lang/crates.io-index"
284
+ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
285
+
286
+ [[package]]
287
+ name = "syn"
288
+ version = "2.0.119"
289
+ source = "registry+https://github.com/rust-lang/crates.io-index"
290
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
291
+ dependencies = [
292
+ "proc-macro2",
293
+ "quote",
294
+ "unicode-ident",
295
+ ]
296
+
297
+ [[package]]
298
+ name = "unicode-ident"
299
+ version = "1.0.27"
300
+ source = "registry+https://github.com/rust-lang/crates.io-index"
301
+ checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
302
+
303
+ [[package]]
304
+ name = "windows-link"
305
+ version = "0.2.1"
306
+ source = "registry+https://github.com/rust-lang/crates.io-index"
307
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
data/Cargo.toml ADDED
@@ -0,0 +1,27 @@
1
+ [workspace]
2
+ members = ["ext/causal_machines_native/core", "ext/causal_machines_native/ffi"]
3
+ default-members = ["ext/causal_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
+ causal-machines = { path = "ext/causal_machines_native/core" }
13
+ matryona-machines = { version = ">=0.6", default-features = false }
14
+ magnus = { version = "0.9.3", default-features = false }
15
+ rb-sys = { version = "0.9.130", default-features = false, features = ["stable-api-compiled-fallback"] }
16
+
17
+ [workspace.lints.rust]
18
+ unsafe_code = "deny"
19
+ unused_must_use = "warn"
20
+ missing_docs = "warn"
21
+
22
+ [workspace.lints.clippy]
23
+ all = { level = "warn", priority = -1 }
24
+ pedantic = { level = "warn", priority = -1 }
25
+ nursery = { level = "warn", priority = -1 }
26
+ unwrap_used = "deny"
27
+ 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.