2173 Commits

Author SHA1 Message Date
Jonas Platte
987d48666c
Split Endpoint trait into OutgoingRequest, IncomingRequest 2020-08-12 23:33:27 +02:00
Jonas Platte
abc34eeb7e
Move manual endpoint impl test into its own file 2020-08-12 23:33:27 +02:00
Jonas Platte
52f7546c47
Make most things in ruma_api::error actually public (no more #[doc(hidden)])
So people can implement their own endpoints without the macros and
without using undocumented parts of the API
2020-08-12 23:33:27 +02:00
Jonas Platte
edc38b340c
federation-api: Update origin field type 2020-08-12 22:40:43 +02:00
q-b
c6e625a85f
federation-api: Add backfill endopint 2020-08-12 22:15:47 +02:00
q-b
656dc723ad
appservice-api: Fix endpoint versioning 2020-08-12 21:33:07 +02:00
Jonas Platte
0a538b53df
Update CONTRIBUTING.md
* Fix broken links
* Improve "Tracking Changes" section
2020-08-12 19:07:59 +02:00
Jonas Platte
0a1a381e6c
federation-api: Fix types in create_join_event_template::v1 request & response 2020-08-12 14:36:03 +02:00
Timo
835c41ce28
Fix canonical alias type 2020-08-12 14:33:44 +02:00
Jonas Platte
835c721a12
Fix non-empty Void 2020-08-12 14:21:50 +02:00
Jonas Platte
eca333a9ec
Fix doc link 2020-08-12 14:14:06 +02:00
Devin Ragotzy
906465d0c3
Replace all ::ruma_api:: with the discovered crate name or $crate 2020-08-12 14:01:43 +02:00
florianjacob
467e7afd5e
Require std::error::Error for EndpointError
and implement it for ruma_api::error::FromHttpResponseError and Void.
This allows integrating EndpointErrors in the common rust error
ecosystem like thiserror and anyhow.
2020-08-12 14:00:44 +02:00
Devin Ragotzy
342181ab1a
Use proc_macro_crate name in the event_enum! macro code-gen 2020-08-11 23:47:34 +02:00
Devin Ragotzy
e2f84679b3
Use proc_macro_crate name in the event content derives 2020-08-11 23:47:34 +02:00
Devin Ragotzy
9bc257b19e
Use proc_macro_crate name in the Event derive 2020-08-11 23:47:34 +02:00
Devin Ragotzy
cfe62f27d0
Re-export ruma-events-macros and deps in ruma-events
This also adds the dependency and function to find crate name at macro
expansion time.
2020-08-11 23:47:34 +02:00
Amanda Graven
636cc503ed
Add get_keys endpoint and changelog entry 2020-08-11 15:58:38 +02:00
Jonas Platte
de337ecb8c
events: impl Display for room::message::MessageFormat 2020-08-11 15:09:25 +02:00
Amanda Graven
a3722ca08c
Add claim_keys endpoint and changelog entry 2020-08-11 14:39:52 +02:00
Jonas Platte
3454a0e750
Implement FromStr for identifier types 2020-08-11 02:15:14 +02:00
Jonas Platte
dffa60d70f
client-api: Update leave_room to new API conventions 2020-08-11 02:03:14 +02:00
Jonas Platte
abeb2160ad
Fix formatting 2020-08-11 01:57:53 +02:00
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