Commit Graph

4308 Commits

Author SHA1 Message Date
Jonas Platte
38eedef9c1 client: Remove unused file 2021-08-10 23:55:11 +02:00
Jonas Platte
7bed18c358 Disable problematic clippy configuration 2021-08-10 15:48:34 +02:00
Jonas Platte
3c76fa1492 signatures: Fix verify_json and sign_json enforcing PDU size limits
These functions are used for request signatures too.
2021-08-10 15:22:47 +02:00
Devin Ragotzy
b7d0970335 state-res: Remove dead code and stale comments 2021-08-10 15:22:47 +02:00
Devin Ragotzy
318f3186ad state-res: Replace unwraps with expect or errors 2021-08-10 15:22:47 +02:00
Devin Ragotzy
01515aea41 state-res: Fix clippy warnings 2021-08-10 15:22:47 +02:00
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
Adam
63411165da Move RoomName to ruma-identifiers and use it more 2021-08-10 15:22:47 +02:00
Timo Kösters
57266bf284 client-api: Add serde(default) for generate_blurhash 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
gnieto
5085f3b8fe client-api: Fix inconsistent types on RoomEventFilter
`rooms` and `not_rooms` contained `String` and `RoomId` respectively and
the types have been change to use always `RoomId` as it's more concrete
and is more consistent with the other fields (like `senders` and
`not_senders`).
2021-08-10 15:22:46 +02:00
Jonas Platte
8f4f7d8060 identifiers: Fix unused import without serde feature 2021-08-10 15:22:46 +02:00
Devin Ragotzy
245fe4deea Enable clippy exhaustive_enums lint workspace-wide 2021-08-10 15:22:46 +02:00
Jonas Platte
6ee3955483 Remove most deprecated items 2021-08-10 15:22:46 +02:00
Jonas Platte
d213ee4718 events: Remove / replace previous error types 2021-08-10 15:22:45 +02:00
Adam
976f90a1a2 events: Add RoomName struct to room::name 2021-08-10 15:22:26 +02:00
Devin Ragotzy
ab3d48b576 client-api: Make all pub enums non_exhaustive 2021-08-10 15:22:26 +02:00
Devin Ragotzy
1489b5e1f1 federation/push: Make all pub enums non_exhaustive 2021-08-10 15:22:26 +02:00
Devin Ragotzy
c55dab7122 misc-errors: Allow or make error enums non_exhaustive 2021-08-10 15:22:26 +02:00
Devin Ragotzy
fd310e5b6e identifiers: Make RoomVersionId 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
Devin Ragotzy
96567a295e signatures: Fix canonical json functions to now return Result
signatures: Fix canonical json functions to now return Result
2021-08-10 15:22:26 +02:00
Devin Ragotzy
db755f994e events: Make all pub enums non_exhaustive 2021-08-10 15:22:26 +02:00
Devin Ragotzy
74b6a4c9d8 common: Make all pub enums non_exhaustive 2021-08-10 15:22:26 +02:00
Jonas Platte
28e3d0f277 events: Remove key::verification::start::SasV1Content verification 2021-08-10 15:22:26 +02:00
Jonas Platte
7a61c9cd8c Remove trait derives other than Debug from Init structs 2021-08-10 15:22:26 +02:00
Adam
2577225ba5 Add client secret and session ID types 2021-08-10 15:22:24 +02:00
Jonas Platte
ef96b0f381 Add missing Debug implementations 2021-08-10 15:22:04 +02:00
Jonas Platte
0f1c52aaab Update changelogs 2021-08-10 15:21:47 +02:00
Jonas Platte
cff68ad05a api: Update changelog 2021-08-10 12:50:13 +02:00
Jonas Platte
99ab5f80c0 Release ruma-client-api 0.11.2 2021-08-10 12:48:21 +02:00
Jonas Platte
f83849f942 Release ruma-api 0.17.2
This is the same as the previously-released ruma-api 0.18.0; releasing
it with that version number was an error and it has been yanked.
2021-08-10 12:42:26 +02:00
Jonas Platte
70b7240be5 Release ruma-client-api 0.11.1 2021-08-10 12:39:26 +02:00
Jonas Platte
65195cad0d Release ruma-api 0.18.0 2021-08-10 12:38:12 +02:00
Jonas Platte
4e68509faf client-api: Work around another Element bug 2021-08-10 12:31:08 +02:00
Jonas Platte
565793a37e events: Add StaticEventContent trait 2021-08-10 01:26:20 +02:00
Jonas Platte
40d3b552da Release ruma-serde 0.4.2 2021-08-09 19:43:40 +02:00
Jonas Platte
fdf7af442c serde: Make Raw deserialization methods more general 2021-08-09 19:34:50 +02:00
Jonas Platte
165729fe71 client-api: Clean up changelog 2021-08-05 21:06:12 +02:00
Adam Blanchet
13af2e235d client-api: Implement reasons for leaving a room 2021-08-05 21:04:14 +02:00
Jonas Platte
696c9fba4e api-macros: Move ruma_api! trait impl generation into derive macros 2021-08-05 21:00:43 +02:00
Jonas Platte
fae75410a9 ci: Revert running CI on pushes to any branch
This cause PRs within the repo to run CI twice.
2021-08-05 21:00:07 +02:00
Jonas Platte
273c63b1ab ci: Deploy docs to separate repo 2021-08-05 20:59:01 +02:00
Jonas Platte
b4254e237d ci: Fix condition for deploying docs 2021-08-05 20:58:38 +02:00
Jonas Platte
020da913de Remove extraneous newlines 2021-08-05 13:29:36 +02:00
Jonas Platte
c6c89596bb serde: Allow specifying full paths in incoming_derive 2021-08-05 13:29:36 +02:00