2100 Commits

Author SHA1 Message Date
Jonas Platte
aa3e7416a9
Update constructors in ruma_events::room::message 2020-08-11 01:54:23 +02:00
Jonas Platte
b20768c1b1
Integrate ruma-client 2020-08-11 01:41:23 +02:00
Jonas Platte
3a6bdd63bd Add 'ruma-client/' from commit 'fab0ef566f143c1926bff4af4a0a4751379eff1f'
git-subtree-dir: ruma-client
git-subtree-mainline: c4558774be98863015c51e0ec8f26b3fe3d4a103
git-subtree-split: fab0ef566f143c1926bff4af4a0a4751379eff1f
2020-08-10 23:49:55 +02:00
Devin Ragotzy
c4558774be Re-export ruma_api's pub api in the ruma crate 2020-08-10 23:49:14 +02:00
Devin Ragotzy
98ddf25ae2 Allow the main ruma crate to re-export the ruma-api-macro things 2020-08-10 23:49:14 +02:00
Devin Ragotzy
6877c2f38d Use ruma_api crate from ruma or if renamed or not in crate prelude 2020-08-10 23:49:14 +02:00
Amanda Graven
45aad4d10c
Add device info endpoint 2020-08-10 21:02:39 +02:00
q-b
a1426c9308
Clean up room version id tests 2020-08-10 20:44:02 +02:00
Amanda Graven
fdc15123b0
Reorganize encyption related code
Some types used for encryption related tasks need to be used across more
internal crates than expected, so a few have been moved and renamed for
clarity.

* Rename the key_algorithms module in ruma-identifiers-validation to crypto_algorithms
* Move ruma_events::Algorithm to ruma-identifiers-validation and rename it EventEncryptionAlgorithm
* Move DeviceKeys from ruma-client-api to ruma-common
2020-08-10 18:38:53 +02:00
Jonas Platte
585485831b
Make serde support in ruma-identifiers truly optional 2020-08-10 17:53:28 +02:00
Jonas Platte
9cf552f361
Add Endpoint::{IncomingRequest, IncomingResponse}
With these, it is no longer necessary to copy over the Endpoint trait's
where clauses whenever it is used as a bound
2020-08-09 03:18:14 +02:00
Devin Ragotzy
ddb1b48e71
Pass the attributes of any type deriving Outgoing to the Incoming type 2020-08-09 03:01:40 +02:00
Devin Ragotzy
f455d4c8ab
Remove Response lifetime generation code in ruma_api macro
… and enforce that there are no lifetimes in response {}
2020-08-09 03:01:19 +02:00
Jonas Platte
0cd87a6c07
Update ruma-common changelog 2020-08-09 00:57:06 +02:00
Jonas Platte
c3170c1182
Make all types in ruma_common::thirdparty non-exhaustive 2020-08-09 00:56:29 +02:00
Jonas Platte
da78e215f8
Use thirdparty network types into ruma_common 2020-08-09 00:45:35 +02:00
Jonas Platte
daf37063aa
Update ruma-appservice-api to new API conventions 2020-08-09 00:32:26 +02:00
Jonas Platte
a0a1987bbf
Small style fix 2020-08-09 00:01:50 +02:00
Jonas Platte
a183a6c801
Add from_parts constructors for DeviceKeyId and ServerKeyId 2020-08-08 22:37:37 +02:00
Jonas Platte
1f056b4ba7
Fix docs for DeviceId 2020-08-08 22:24:40 +02:00
Jonas Platte
1fbf05d71f
Fix some bad formatting 2020-08-08 21:52:58 +02:00
Jonas Platte
0366466792
Use toplevel imports in ruma_api! expansion 2020-08-08 21:23:07 +02:00
Jonas Platte
c39e9f5779
client-api: Move tests in get_public_rooms into tests module 2020-08-08 21:07:35 +02:00
Jonas Platte
f37fc6845f
Remove borrowing from API responses
To borrow these with correct lifetimes, we would need GATs
2020-08-08 21:04:45 +02:00
Jonas Platte
ade12dec47
Fix inversion of NonAuthEndpoint implementations 2020-08-08 20:05:44 +02:00
Jonas Platte
d6d84a9a70
Bump ruma-identifiers version 2020-08-08 18:28:23 +02:00
Jonas Platte
0f3478bf90
Rename serde dependency in ruma-identifiers
to be able to make the serde feature activate
ruma-identifiers-validation's serde feature
2020-08-08 18:16:31 +02:00
Jonas Platte
67154e2c31
Fix key algorithm serde (de)serialization 2020-08-08 18:11:14 +02:00
Jonas Platte
f7ac4e2080
Add tests for key_algorithm parsing 2020-08-08 18:05:54 +02:00
Jonas Platte
9384d24d04
Fix last commit not building with the unstable-pre-spec feature 2020-08-08 17:06:14 +02:00
Jonas Platte
a74dddd93b
Borrow strings and identifiers in more endpoints 2020-08-08 16:50:37 +02:00
Jonas Platte
6f805d2584
client-api: Simplify r0::room::create_room::CreationContent::into_event_content using the assign crate 2020-08-08 16:36:13 +02:00
Jonas Platte
a1916837f9
Bump ruma-identifiers version 2020-08-08 16:21:11 +02:00
Jonas Platte
e939f7049d
Update ruma-identifiers changelog 2020-08-08 16:20:05 +02:00
Jonas Platte
bc50230c8a
identifiers: Restore key algorithm (de)serialization with default features 2020-08-08 16:02:59 +02:00
Isaiah Inuwa
7eb945976c Use strong types in signatures fields 2020-08-08 15:54:31 +02:00
Isaiah Inuwa
7240184c1d Use DeviceKeyId and DeviceKeyAlgorithm from ruma-identifiers 2020-08-08 15:54:31 +02:00
Isaiah Inuwa
9fa96268b4 Add optional serde dependency. 2020-08-08 15:54:31 +02:00
Jonas Platte
d08fc02bc0
Update ruma-client-api changelog 2020-08-08 15:50:41 +02:00
Jonas Platte
349027f87d
Borrow strings and identifiers in send_state_event_* 2020-08-08 14:36:31 +02:00
Jonas Platte
2e683b2fd4
Borrow strings and identifiers in send_message_event 2020-08-08 14:28:07 +02:00
Jonas Platte
582cc9fe2a
Rename {create => send}_message_event, same for state 2020-08-08 14:27:00 +02:00
Jonas Platte
929cd8a8d0
Fix ruma-client-api changelog 2020-08-08 14:25:35 +02:00
Devin Ragotzy
478385f0f2
Add room::aliases endpoint 2020-08-08 14:07:03 +02:00
Jonas Platte
c2cf8682e6
Don't use * imports in ruma_api_lifetime test 2020-08-08 13:23:57 +02:00
Devin Ragotzy
7f0f5be1fe
Convert alias mod and get_public_rooms to use Outgoing trait 2020-08-07 22:08:03 +02:00
Jonas Platte
30e73186e7
Bump dependencies 2020-08-07 19:13:00 +02:00
Jonas Platte
f470afcb2a
Release ruma-identifiers 0.17.2 2020-08-07 18:35:01 +02:00
Faelar
5153279eba Fix missing RoomVersionId::Version6 try_from and tests 2020-08-07 18:06:44 +02:00
Devin Ragotzy
b2d45e4748 Rename generic_lifetime -> is_lifetime_generic 2020-08-07 00:48:01 +02:00