1
0
Fork 0
ruma/crates/ruma-state-res
Jason Volk 9c9dccc93f
state-res: Reserve mainline-position for events with no PL ancestor
The spec defines i = ∞ for events with no mainline ancestor, so under
"x < y if x.position > y.position" they sort before all chain-rooted
events. With 0-based real positions, 0 collided with the sentinel and
the two classes tied on the primary sort key. The mainline map is now
keyed on `NonZero<usize>` and the sentinel becomes `None`.
2026-05-07 10:48:13 +02:00
..
benches state-res: Create EventIdMap 2026-04-12 14:17:01 +02:00
src state-res: Reserve mainline-position for events with no PL ancestor 2026-05-07 10:48:13 +02:00
tests/it state-res: Create EventIdMap 2026-04-12 14:17:01 +02:00
.clippy.toml Add reasons, replacements to disallowed types and methods in .clippy.toml 2025-07-13 23:09:45 +02:00
build.rs state-res: Replace unstable-exhaustive-types cargo feature by cfg setting 2024-12-09 11:06:07 +01:00
Cargo.toml Release ruma-state-res 0.16.0 2026-04-26 14:41:25 +02:00
CHANGELOG.md state-res: Reserve mainline-position for events with no PL ancestor 2026-05-07 10:48:13 +02:00
README.md state-res: Clean up and improve docs 2025-06-19 13:53:35 +02:00

ruma-state-res

crates.io page docs.rs page license: MIT

State resolution and checks on incoming PDUs according to the Matrix specification that can be used by server code.