Jonas Platte
57cbe491f0
Move RoomVersionId::V7 out of unstable-pre-spec
...
Matrix v1.1 stabilized room version 7.
2021-12-17 18:51:38 +01:00
Jonas Platte
7e3b727d04
Fix / silence clippy lints
2021-12-09 15:50:42 +01:00
Jonas Platte
96374a7517
state-res: Rename RoomVersion::VERSION{num} to RoomVersion::V{num}
2021-12-04 18:59:39 +01:00
Jonas Platte
a1cf04076c
state-res: Remove unused RoomVersion::version field
2021-12-04 18:58:38 +01:00
Devin Ragotzy
7f0913ccd7
state-res: Add membership check for Knock behind unstable feature
2021-12-04 18:48:03 +01:00
Jonas Platte
16f031fabb
state-res: Make the API generic over the event ID storage
2021-11-27 23:18:34 +01:00
Jonas Platte
a9c12f0909
state-res: Remove EventMap type alias
2021-11-27 22:44:34 +01:00
Jonas Platte
399bd7d82d
state-res: Rename generic parameter
2021-11-27 18:13:32 +01:00
Jonas Platte
9ed75241a6
state-res: Refactor lexicographical_topological_sort
...
Gets rid of unnecessary copying and makes things more explicit by using
a struct with named fields instead of a tuple for tie breaking.
Co-authored-by: Jonathan de Jong <jonathan@automatia.nl>
2021-11-26 20:22:57 +01:00
Jonas Platte
6b76d7813e
identifiers: Shorten RoomVersionId variant names
2021-11-26 01:07:26 +01:00
Jonas Platte
3ce578f384
identifiers: Make UserId a DST
2021-11-26 00:40:40 +01:00
Jonas Platte
2d4dbfe42f
identifiers: Make RoomId a DST
2021-11-26 00:04:28 +01:00
Jonas Platte
52608cc72c
identifiers: Make EventId a DST
2021-11-25 22:34:40 +01:00
Devin Ragotzy
7fbfe59091
state-res: Minor fixes & doc updates
2021-11-15 23:08:12 +01:00
Devin Ragotzy
44db63657f
state-res: Change most RoomVersion constructor functions to constants
2021-11-15 23:04:47 +01:00
Devin Ragotzy
bdce12b07e
state-res: Add some docs and fix a typo
2021-11-12 14:40:43 +01:00
Devin Ragotzy
0e1cf5b3f6
state-res: Add info for room version 7, 8, and 9
2021-11-12 14:40:26 +01:00
Jonas Platte
56801780b6
Fix clippy lints
2021-10-29 23:11:24 +02:00
Jonas Platte
aa5fdf9d22
Merge serde attributes and improve docs
2021-10-08 12:49:13 +02:00
Jonas Platte
04080085f9
events: Include all event type segments in Rust type names
2021-10-02 21:25:21 +02:00
Jonas Platte
de2b415020
state-res: Silence buggy clippy lint
2021-09-30 21:49:39 +02:00
Amanda Graven
3b5f3cb5a6
events: Move JoinRulesEventContent.allow into JoinRules
2021-09-28 13:39:58 +00:00
Jonas Platte
c6144c2299
state-res: Fix state-res tests
...
Before, they wouldn't compile with the unstable-exhaustive-types feature
active on ruma-state-res, but not on ruma-events.
2021-09-28 14:27:42 +02:00
Jonas Platte
69a97232b9
state-res: Clean up test code
2021-09-17 23:52:28 +02:00
Jonas Platte
a9985d7763
events / state-res: Use RawJsonValue over JsonValue for event content
2021-09-15 20:58:42 +02:00
Jonas Platte
9cb9b1104a
state-res: Remove unused Event trait methods
2021-09-15 18:15:01 +02:00
Jonas Platte
c94f9d5c88
state-res: Remove unnecessary .iter()
call
2021-09-14 10:14:51 +02:00
Jonas Platte
a6a1224652
state-res: Make functions more general
...
Don't require different parameters to use the same impl Event.
2021-09-13 19:02:36 +02:00
Jonas Platte
0999e420ae
state-res: Return borrowed content in Event method
2021-09-13 19:02:36 +02:00
Jonas Platte
e49f76b4be
state-res: Implement Event for &T where T: Event
2021-09-13 19:02:36 +02:00
Jonas Platte
889406b6c2
state-res: Make resolve more general by using impl IntoIterator for state_sets
2021-09-13 19:02:36 +02:00
Jonas Platte
3830dcddc2
state-res: Simplify tests a bit
2021-09-13 19:02:36 +02:00
Jonas Platte
717fd1198d
state-res: Remove unnecessary unwrap call
2021-09-13 19:02:36 +02:00
Jonas Platte
f566cd4486
state-res: Remove unneeded rebuilding of collection for logging
2021-09-13 19:02:36 +02:00
Jonas Platte
118aa8fc4a
state-res: Make usage of Arc optional
2021-09-13 19:02:36 +02:00
Jonas Platte
a4b8f3bc90
state-res: Implement Event for Arc<T> where T: Event
2021-09-13 19:02:36 +02:00
Jonas Platte
f0cd82dae7
state-res: Refactor test_utils
2021-09-13 19:02:36 +02:00
Jonas Platte
279322862c
state-res: Reduce public API to what Conduit uses
2021-09-13 19:02:36 +02:00
Jonas Platte
bc1e7eb1fc
state-res: Remove unused code from test_utils
2021-09-13 19:02:36 +02:00
Jonas Platte
3c0493bddf
state-res: Move tests into the crate and make test_utils private
2021-09-13 19:02:36 +02:00
Jonas Platte
2b7ab82401
state-res: Remove unneeded .as_deref()
call
2021-09-13 19:02:36 +02:00
Jonas Platte
d60b7bf814
state-res: Filter out None
s from conflicted_state earlier
2021-09-13 19:02:35 +02:00
Jonas Platte
b31065827b
state-res: Allocate less when computing all_conflicted
2021-09-13 19:02:35 +02:00
Jonas Platte
6559681095
state-res: Rewrite get_auth_chain_diff algorithm
2021-09-13 19:02:35 +02:00
Jonas Platte
00a59d0528
state-res: Reduce unnecessary Arc usage
2021-09-13 19:02:35 +02:00
Jonas Platte
2d83cf9a03
state-res: Remove unused functions
2021-09-13 19:02:35 +02:00
Jonas Platte
f65b8b63e2
state-res: Make most functions in event_auth private
2021-09-13 19:02:35 +02:00
Jonas Platte
355a493024
state-res: Fix some docs
2021-09-13 19:02:35 +02:00
Jonas Platte
0cd91ed61e
state-res: Don't import-rename crate root
2021-09-13 19:02:35 +02:00
Jonas Platte
0ed0a620a3
state-res: Refactor iterative_auth_check
2021-09-13 19:02:35 +02:00