2288 Commits

Author SHA1 Message Date
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
Devin Ragotzy
1060d63057 Use full type with Outgoing trait for request query deserialization 2020-08-07 00:48:01 +02:00
Devin Ragotzy
e783288ef0 Limit when RequestQuery impls Deserialize and impl Outgoing 2020-08-07 00:48:01 +02:00
Devin Ragotzy
770a68d49b Fix Outgoing derive missing lifetimes when branching for emitting code 2020-08-07 00:48:01 +02:00
Devin Ragotzy
7e3ebff089 Add tests testing failing Outgoing derive for query fields 2020-08-07 00:48:01 +02:00
Devin Ragotzy
5103baeb4b Add semicolons and the other possible syn::Type types 2020-08-07 00:48:01 +02:00
Devin Ragotzy
1336cd8c41 Handle tuple types in collect_lifetime_idents 2020-08-07 00:48:01 +02:00
Devin Ragotzy
4e2f1a19e1 Fix typo and rename copy_lifetime_ident -> collect_lifetime_ident 2020-08-07 00:48:01 +02:00
Devin Ragotzy
f67744bb4f Throw error if query_map has any ref types 2020-08-07 00:48:01 +02:00
Devin Ragotzy
588a6035f0 Use Outgoing trait in ruma_api_lifetime tests 2020-08-07 00:48:01 +02:00
Devin Ragotzy
80237d6dd1 Fix clippy warnings 2020-08-07 00:48:01 +02:00
Devin Ragotzy
2beaf450a3 Add a query_map field to ruma_api! lifetime test 2020-08-07 00:48:01 +02:00
Devin Ragotzy
c980644d77 Clean up and fix missing comma for request query map 2020-08-07 00:48:01 +02:00