205 Commits

Author SHA1 Message Date
Timo Kösters
e31b4d5c98
state-res: Add more information to warnings 2021-08-10 15:22:47 +02:00
Timo Kösters
3a0ee7740f
state-res: Change BTreeMap/Set to HashMap/Set 2021-08-10 15:22:47 +02:00
Timo Kösters
d970501c85
state-res: Revert calculating the auth chain in ruma
In a previous commit I moved the auth chain calculation code to ruma
because I thought I could optimize it by only taking auth chains from
conflicted events instead of all events. It turned out that was wrong
and now I removed that algorithm again (the full auth chains are now
passed in as an argument to state_res::resolve again).
2021-08-10 15:22:47 +02:00
Timo Kösters
17afbabd92
state-res: Calculate auth_events and fix bug when calculating common events 2021-08-10 15:22:46 +02:00
Devin Ragotzy
b8c54d8e2b
state-res: Pass fetch_event closure as owned F not &F 2021-08-10 15:22:46 +02:00
Devin Ragotzy
c55dab7122
misc-errors: Allow or make error enums non_exhaustive 2021-08-10 15:22:26 +02:00
Devin Ragotzy
dc7e0091f6
state-res: Make some room_version enums non_exhaustive 2021-08-10 15:22:26 +02:00
Devin Ragotzy
a4e6cc7c42
state-res: Use closure to fetch unknown events during state-res
state-res: Remove event_map arg from all functions

state-res: Remove get_or_load_event helper func and fix resolve docs
2021-08-10 15:22:26 +02:00
Jonas Platte
40d3b552da
Release ruma-serde 0.4.2 2021-08-09 19:43:40 +02:00
Jonas Platte
020da913de
Remove extraneous newlines 2021-08-05 13:29:36 +02:00
Jonas Platte
2bd2d18db9
Release ruma-events 0.23.3 2021-07-26 15:06:13 +02:00
Devin Ragotzy
3101be1f99
Add macro-braces, disallowed-type and import-rename clippy lints 2021-07-22 14:34:30 +02:00
Jonas Platte
4dfaad104b
Enable clippy lint str_to_string 2021-07-02 23:02:50 +02:00
Jonas Platte
752c4808fd
Release ruma-events 0.23.2 2021-06-29 10:37:09 +02:00
Jonas Platte
b5f963229c
Release ruma-events 0.23.1 2021-06-24 13:43:04 +02:00
Jonas Platte
dfd8c60b89
Release ruma-identifiers 0.19.4 2021-06-24 13:38:05 +02:00
Jonas Platte
be4584b475
Release ruma-serde 0.4.1 2021-06-24 13:17:55 +02:00
Jonas Platte
5a1192f158
Release ruma-state-res 0.2.0 2021-06-21 18:03:39 +02:00
Jonas Platte
9f9c3d74f2
Remove unused dependencies 2021-06-21 17:35:51 +02:00
Jonas Platte
55a7dd4828
Release ruma-events 0.23.0 2021-06-21 16:53:46 +02:00
Devin Ragotzy
337b1e26ef misc: Allow exhaustive for non api related structs 2021-06-18 22:44:00 +02:00
Devin Ragotzy
fae5385753 state-res: Make all pub structs non_exhaustive 2021-06-18 20:53:06 +02:00
Jonas Platte
4312085b4a
Release ruma-common 0.5.4 2021-06-18 20:27:32 +02:00
Jonas Platte
ff03f4c805
Release ruma-identifiers 0.19.3 2021-06-18 13:42:32 +02:00
Jonas Platte
e622803679
Use bool::then to simplify some code 2021-06-17 19:43:22 +02:00
Devin Ragotzy
ce6fd1e65e
state-res: Use unique over dedup, remove Vec -> BTreeSet conversions 2021-06-17 19:43:21 +02:00
Jonas Platte
5fe1876643
Release ruma-identifiers 0.19.2 2021-06-10 15:27:09 +02:00
Jonas Platte
3a46a5837d
Release ruma-common 0.5.3 2021-06-10 15:25:13 +02:00
Jonas Platte
d2d286bf29
Release ruma-signatures 0.7.2 2021-06-01 22:04:36 +02:00
Jonas Platte
c49eec9867
Release ruma-common 0.5.2 2021-06-01 21:57:37 +02:00
Amanda Graven
97937d384c Typo corrections
The "comforming" typo in the function name at
crates/ruma-identifiers-validation/src/user_id.rs:22:26
was not corrected as that would be a breaking change.
2021-06-01 12:45:34 +02:00
Jonas Platte
6d253c6038
Add missing docs.rs metadata to Cargo manifests 2021-06-01 12:32:29 +02:00
Jonas Platte
958d3a5812
Release ruma-events 0.22.2 2021-05-20 18:45:52 +02:00
Devin Ragotzy
9d0cdb8c0e
state-res: Make comments consistent and remove nested ifs 2021-05-19 17:25:28 +02:00
Jonas Platte
085f082c5b
Release ruma-events 0.22.1 2021-05-17 16:58:57 +02:00
Jonas Platte
e5e2cde421
Release ruma-state-res 0.1.0 2021-05-17 01:50:19 +02:00
Jonas Platte
6f8d43ccbb
state-res: Prepare for publishing 2021-05-17 01:48:28 +02:00
Jonas Platte
68250ae726
Release ruma-events 0.22.0 2021-05-17 00:51:09 +02:00
Jonas Platte
0ad480a163
Release ruma-common 0.5.1 2021-05-16 23:12:23 +02:00
Jonas Platte
48cf21e37c
Release ruma-signatures 0.7.1 2021-05-16 22:55:03 +02:00
Jonas Platte
305b527ae9
Release ruma-identifiers 0.19.1 2021-05-16 21:54:03 +02:00
Jonas Platte
da6b513788
state-res: Fix test utils
Was broken by recent exhaustiveness change.
2021-05-15 21:43:42 +02:00
Jonas Platte
566e03abc1
Release ruma-serde 0.4.0 2021-05-15 19:26:09 +02:00
Jonas Platte
9e9696f091
Re-run cargo fmt 2021-05-15 15:41:23 +02:00
Jonas Platte
60d4ea027f
Use serde_json::Result alias 2021-05-15 15:02:02 +02:00
Jonas Platte
6c167fca38
state-res: Get rid of static mut 2021-05-14 01:40:23 +02:00
Jonas Platte
fe68bf0e07
Clean up json! formatting 2021-05-14 01:13:42 +02:00
Jonas Platte
5710d2740c
Replace uses of SystemTime with new UInt-based timestamp types 2021-05-14 01:13:17 +02:00
Devin Ragotzy
dcff455c19
ci: Enforce sorted dependencies with cargo-sort 2021-05-11 19:59:44 +00:00
Jonas Platte
71686ce8a4
state-res: Re-export RoomVersion from crate root 2021-05-08 01:34:27 +02:00