election_machines 0.1.5 → 0.5.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 280d87432c4bb945291b1a804fb690e94886adef86720e4cb7bc78a4b8967808
4
- data.tar.gz: 413925e9d82a374a269bc9f5718d354a507a0775bf65f96ce8d0662961bd2eb9
3
+ metadata.gz: d601a0e92b4e9707d3b8e33202bf9171aefb8df27732a757af8be1f83d6e8715
4
+ data.tar.gz: 6d5f0efb52ab74283405d24eea2b7b18e86fde99c07a65ea86cfb8f662ddfd4b
5
5
  SHA512:
6
- metadata.gz: e8fff2087448de2e665d69c0dc28409c658764b26f9c3f23e134635b61c37e26a5047607bd90d4218c65585a00ecdad714ec03a38b443f06fc8099232d840db8
7
- data.tar.gz: 69a3fcdbf2d8870101053a4aad8a4fbed843251b53aa0e7a41b1c08862b695c2b6f535d5309d5dbd74e2660d2bd66ada395f4004ae6252c3ac6ef978878b1b1a
6
+ metadata.gz: 87cdc0ecdd24a032cd9886657f49f92243fd094578ea8622e3af4617c4a72bf845b562c14429f83b0aca742fd7ecc9d667229ab09ca853d9563b1050c441d3f2
7
+ data.tar.gz: 6d8c5e04c5ea1fd882e5d0d876b7f0e9fe9b8fb833abbff7f3f141d2b8a7b3f4e7016aeb6ce68019f3adbfd31613a498f02d0c148b5fa94efc594e1a497e4c5a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,70 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.2](https://github.com/seuros/election_machines/compare/election_machines/v0.5.1...election_machines/v0.5.2) (2026-11-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * fix wrapped classes at load so building a value runs no Ruby ([098786d](https://github.com/seuros/election_machines/commit/098786dd4a933eea2390ec28e489ac7599086e51))
9
+
10
+ ## [0.5.1](https://github.com/seuros/election_machines/compare/election_machines/v0.5.0...election_machines/v0.5.1) (2026-11-16)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * elect queries the live incumbent before acquiring ([c27843a](https://github.com/seuros/election_machines/commit/c27843a2259b44bd6f642ad6c717bd84bcbff813))
16
+
17
+ ## [0.5.0](https://github.com/seuros/election_machines/compare/election_machines/v0.4.1...election_machines/v0.5.0) (2026-11-14)
18
+
19
+
20
+ ### ⚠ BREAKING CHANGES
21
+
22
+ * read sibling tokens, leases and checkpoints with own_or_sibling and delegate lease refusal names
23
+
24
+ ### Features
25
+
26
+ * read sibling tokens, leases and checkpoints with own_or_sibling and delegate lease refusal names ([1b7c5a9](https://github.com/seuros/election_machines/commit/1b7c5a99ae0720478b984cc2693afd6b28c5a26a))
27
+
28
+ ## [0.4.1](https://github.com/seuros/election_machines/compare/election_machines/v0.4.0...election_machines/v0.4.1) (2026-11-14)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **deps:** require matryona-machines >= 0.3 and build exact-field messages lazily ([2af60e9](https://github.com/seuros/election_machines/commit/2af60e9b11cd79bf3a387edce8e26a442d94b10e))
34
+
35
+ ## [0.4.0](https://github.com/seuros/election_machines/compare/election_machines/v0.3.0...election_machines/v0.4.0) (2026-11-14)
36
+
37
+
38
+ ### ⚠ BREAKING CHANGES
39
+
40
+ * adopt matryona-machines 0.2: shared instant, exact field reads, compiler-checked symbol tables
41
+
42
+ ### Features
43
+
44
+ * adopt matryona-machines 0.2: shared instant, exact field reads, compiler-checked symbol tables ([b7cbfd2](https://github.com/seuros/election_machines/commit/b7cbfd2adb6edd2a7c5dce7e57c501d7f29a8c2b))
45
+
46
+ ## [0.3.0](https://github.com/seuros/election_machines/compare/election_machines/v0.2.0...election_machines/v0.3.0) (2026-11-14)
47
+
48
+
49
+ ### ⚠ BREAKING CHANGES
50
+
51
+ * validate every value through the core, seal values, exact-class reads, clone-then-keep elect/heartbeat/resign
52
+
53
+ ### Features
54
+
55
+ * validate every value through the core, seal values, exact-class reads, clone-then-keep elect/heartbeat/resign ([43bbf42](https://github.com/seuros/election_machines/commit/43bbf42813a6cc4ca663764c6ee1186eeff626ec))
56
+
57
+ ## [0.2.0](https://github.com/seuros/election_machines/compare/election_machines/v0.1.5...election_machines/v0.2.0) (2026-11-13)
58
+
59
+
60
+ ### ⚠ BREAKING CHANGES
61
+
62
+ * converted to the fleet conventions. One exhaustive Refusal per crate, Result from every operation that can refuse, a refusal changes nothing, provable idempotent repeats are honoured, Ruby mirrors the core. No compatibility aliases. Requires lease-machines >= 0.4. Refusal is { NoCandidates, Lease(LeaseRefusal) }; elect returns Result<Leadership, Refusal>; Ruby answers values and symbols instead of string tuples.
63
+
64
+ ### Features
65
+
66
+ * carry the lease refusal whole, honour a live incumbent, scoped restorable elections and Integer-nanosecond Ruby values ([7c23feb](https://github.com/seuros/election_machines/commit/7c23feb24c50da07795646ae7b37f7f04072f318))
67
+
3
68
  ## [0.1.5](https://github.com/seuros/election_machines/compare/election_machines/v0.1.4...election_machines/v0.1.5) (2026-11-06)
4
69
 
5
70
 
data/Cargo.lock ADDED
@@ -0,0 +1,323 @@
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 = "election-machines"
78
+ version = "0.5.1"
79
+ dependencies = [
80
+ "lease-machines",
81
+ "matryona-machines",
82
+ ]
83
+
84
+ [[package]]
85
+ name = "election_machines_native"
86
+ version = "0.1.7"
87
+ dependencies = [
88
+ "election-machines",
89
+ "magnus",
90
+ "matryona-machines",
91
+ "rb-sys",
92
+ ]
93
+
94
+ [[package]]
95
+ name = "glob"
96
+ version = "0.3.4"
97
+ source = "registry+https://github.com/rust-lang/crates.io-index"
98
+ checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
99
+
100
+ [[package]]
101
+ name = "itertools"
102
+ version = "0.13.0"
103
+ source = "registry+https://github.com/rust-lang/crates.io-index"
104
+ checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
105
+ dependencies = [
106
+ "either",
107
+ ]
108
+
109
+ [[package]]
110
+ name = "lazy_static"
111
+ version = "1.5.1"
112
+ source = "registry+https://github.com/rust-lang/crates.io-index"
113
+ checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb"
114
+
115
+ [[package]]
116
+ name = "lease-machines"
117
+ version = "0.7.0"
118
+ source = "registry+https://github.com/rust-lang/crates.io-index"
119
+ checksum = "f88ccbff5d41f0f557a6868ae796a0760c4f4557d158dbd1b032e97a886b11ee"
120
+ dependencies = [
121
+ "periscope-machines",
122
+ ]
123
+
124
+ [[package]]
125
+ name = "libc"
126
+ version = "0.2.191"
127
+ source = "registry+https://github.com/rust-lang/crates.io-index"
128
+ checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
129
+
130
+ [[package]]
131
+ name = "libloading"
132
+ version = "0.8.9"
133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
134
+ checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
135
+ dependencies = [
136
+ "cfg-if",
137
+ "windows-link",
138
+ ]
139
+
140
+ [[package]]
141
+ name = "magnus"
142
+ version = "0.9.3"
143
+ source = "registry+https://github.com/rust-lang/crates.io-index"
144
+ checksum = "40ef424404d166cbb71c8b8d19c9c589c748c4547c1afa1928c5504299f6c713"
145
+ dependencies = [
146
+ "bytes",
147
+ "magnus-macros",
148
+ "rb-sys",
149
+ "rb-sys-env",
150
+ "seq-macro",
151
+ ]
152
+
153
+ [[package]]
154
+ name = "magnus-macros"
155
+ version = "0.9.1"
156
+ source = "registry+https://github.com/rust-lang/crates.io-index"
157
+ checksum = "9dafde2eeb66f090e0f326112323eb8324b12cb32b5d1210e541d3df6b0ce77e"
158
+ dependencies = [
159
+ "proc-macro2",
160
+ "quote",
161
+ "syn",
162
+ ]
163
+
164
+ [[package]]
165
+ name = "matryona-machines"
166
+ version = "0.6.0"
167
+ source = "registry+https://github.com/rust-lang/crates.io-index"
168
+ checksum = "cf8a06ab02efd767270815a1f515a40bbf3bfc77038e9360676ebe8d47833b07"
169
+ dependencies = [
170
+ "magnus",
171
+ ]
172
+
173
+ [[package]]
174
+ name = "memchr"
175
+ version = "2.8.3"
176
+ source = "registry+https://github.com/rust-lang/crates.io-index"
177
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
178
+
179
+ [[package]]
180
+ name = "minimal-lexical"
181
+ version = "0.2.1"
182
+ source = "registry+https://github.com/rust-lang/crates.io-index"
183
+ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
184
+
185
+ [[package]]
186
+ name = "nom"
187
+ version = "7.1.3"
188
+ source = "registry+https://github.com/rust-lang/crates.io-index"
189
+ checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
190
+ dependencies = [
191
+ "memchr",
192
+ "minimal-lexical",
193
+ ]
194
+
195
+ [[package]]
196
+ name = "periscope-machines"
197
+ version = "0.5.0"
198
+ source = "registry+https://github.com/rust-lang/crates.io-index"
199
+ checksum = "1602a0bb66b4ba9529244868a2344cc39282c62c8ae4df357244adf49347bf51"
200
+
201
+ [[package]]
202
+ name = "proc-macro2"
203
+ version = "1.0.107"
204
+ source = "registry+https://github.com/rust-lang/crates.io-index"
205
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
206
+ dependencies = [
207
+ "unicode-ident",
208
+ ]
209
+
210
+ [[package]]
211
+ name = "quote"
212
+ version = "1.0.47"
213
+ source = "registry+https://github.com/rust-lang/crates.io-index"
214
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
215
+ dependencies = [
216
+ "proc-macro2",
217
+ ]
218
+
219
+ [[package]]
220
+ name = "rb-sys"
221
+ version = "0.9.130"
222
+ source = "registry+https://github.com/rust-lang/crates.io-index"
223
+ checksum = "02faf625bb10ba893e3ae620f19c9fb1b5f8fcae0fe4eb86bb3f2230fad75edb"
224
+ dependencies = [
225
+ "rb-sys-build",
226
+ ]
227
+
228
+ [[package]]
229
+ name = "rb-sys-build"
230
+ version = "0.9.130"
231
+ source = "registry+https://github.com/rust-lang/crates.io-index"
232
+ checksum = "05be6f9c86fe5482808162826f6c047d093b3670582296c770de1d94f8066694"
233
+ dependencies = [
234
+ "bindgen",
235
+ "lazy_static",
236
+ "proc-macro2",
237
+ "quote",
238
+ "regex",
239
+ "shell-words",
240
+ "syn",
241
+ ]
242
+
243
+ [[package]]
244
+ name = "rb-sys-env"
245
+ version = "0.2.3"
246
+ source = "registry+https://github.com/rust-lang/crates.io-index"
247
+ checksum = "cca7ad6a7e21e72151d56fe2495a259b5670e204c3adac41ee7ef676ea08117a"
248
+
249
+ [[package]]
250
+ name = "regex"
251
+ version = "1.13.1"
252
+ source = "registry+https://github.com/rust-lang/crates.io-index"
253
+ checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
254
+ dependencies = [
255
+ "aho-corasick",
256
+ "memchr",
257
+ "regex-automata",
258
+ "regex-syntax",
259
+ ]
260
+
261
+ [[package]]
262
+ name = "regex-automata"
263
+ version = "0.4.18"
264
+ source = "registry+https://github.com/rust-lang/crates.io-index"
265
+ checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
266
+ dependencies = [
267
+ "aho-corasick",
268
+ "memchr",
269
+ "regex-syntax",
270
+ ]
271
+
272
+ [[package]]
273
+ name = "regex-syntax"
274
+ version = "0.8.11"
275
+ source = "registry+https://github.com/rust-lang/crates.io-index"
276
+ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
277
+
278
+ [[package]]
279
+ name = "rustc-hash"
280
+ version = "2.1.3"
281
+ source = "registry+https://github.com/rust-lang/crates.io-index"
282
+ checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
283
+
284
+ [[package]]
285
+ name = "seq-macro"
286
+ version = "0.3.6"
287
+ source = "registry+https://github.com/rust-lang/crates.io-index"
288
+ checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
289
+
290
+ [[package]]
291
+ name = "shell-words"
292
+ version = "1.1.1"
293
+ source = "registry+https://github.com/rust-lang/crates.io-index"
294
+ checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
295
+
296
+ [[package]]
297
+ name = "shlex"
298
+ version = "1.3.0"
299
+ source = "registry+https://github.com/rust-lang/crates.io-index"
300
+ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
301
+
302
+ [[package]]
303
+ name = "syn"
304
+ version = "2.0.119"
305
+ source = "registry+https://github.com/rust-lang/crates.io-index"
306
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
307
+ dependencies = [
308
+ "proc-macro2",
309
+ "quote",
310
+ "unicode-ident",
311
+ ]
312
+
313
+ [[package]]
314
+ name = "unicode-ident"
315
+ version = "1.0.27"
316
+ source = "registry+https://github.com/rust-lang/crates.io-index"
317
+ checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
318
+
319
+ [[package]]
320
+ name = "windows-link"
321
+ version = "0.2.1"
322
+ source = "registry+https://github.com/rust-lang/crates.io-index"
323
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
data/Cargo.toml CHANGED
@@ -10,7 +10,8 @@ license = "MIT"
10
10
  election-machines = { path = "ext/election_machines_native/core" }
11
11
  magnus = { version = "0.9.3", default-features = false }
12
12
  rb-sys = { version = "0.9.130", default-features = false, features = ["stable-api-compiled-fallback"] }
13
- lease-machines = ">=0.3"
13
+ lease-machines = ">=0.7"
14
+ matryona-machines = { version = ">=0.6", default-features = false }
14
15
  [workspace.lints.rust]
15
16
  unsafe_code = "deny"
16
17
  unused_must_use = "warn"