2288 Commits

Author SHA1 Message Date
Jonas Platte
b4b96e44fd
Borrow things in more endpoint requests 2020-08-13 22:01:12 +02:00
Jonas Platte
a00129fcfb
Borrow strings and identifiers in membership::ThirdPartySigned and dependent endpoints 2020-08-13 21:21:57 +02:00
Jonas Platte
4a1b6d5607
Use DeviceIdBox in ruma-events, ruma-*-api 2020-08-13 21:19:41 +02:00
Jonas Platte
f210f91611
Borrow strings and identifiers in uiaa::AuthData and dependent endpoints 2020-08-13 21:19:38 +02:00
Jonas Platte
a842c5ccdc
identifiers: Add DeviceIdBox and ServerNameBox 2020-08-13 20:42:03 +02:00
Jonas Platte
662ce82bc2
Add "(Type) Privacy and Forwards Compatiblity" to CONTRIBUTING.md 2020-08-13 20:40:22 +02:00
Jonas Platte
ed767d253b
Fix missing title case in CONTRIBUTING.md 2020-08-13 20:32:24 +02:00
Jonas Platte
5c025da37d
Add to ruma-events change log 2020-08-13 20:03:57 +02:00
Jonas Platte
b470d4d681
Fix ruma-events change log 2020-08-13 19:56:23 +02:00
Jonas Platte
221befe401
Add constructors to MessageEventContent 2020-08-13 19:51:02 +02:00
Jonas Platte
d36dcdb202
Add NoticeMessageEventContent::html and TextMessageEventContent::html 2020-08-13 19:46:05 +02:00
Jonas Platte
4a5272e37b
Fix doc typo 2020-08-13 19:45:03 +02:00
Florian Jacob
3dadd0a772
ruma: Export serde helpers for custom api creation 2020-08-13 18:08:19 +02:00
Florian Jacob
a719174592
serde: Repair minor docs typo 2020-08-13 18:08:18 +02:00
Jonas Platte
c1b4b77bbd
api: Update change log 2020-08-12 23:43:57 +02:00
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