2474 Commits

Author SHA1 Message Date
Fredrik Lanker
68ba3049ea
Implement debug for identifier types 2020-12-27 22:38:02 +01:00
Isaiah Inuwa
4831585223 Move TokenType to ruma-common 2020-12-26 21:46:29 +01:00
Isaiah Inuwa
7bfeddf40e Add Identity Service authentication module 2020-12-26 21:46:29 +01:00
Jonas Platte
19ae6ff347
Remove lots of Copy implementations
so we don't have do breaking releases once they can't be Copy anymore.
2020-12-24 02:51:08 +01:00
Jonas Platte
25d283fa81
serde: Small code style change 2020-12-24 02:49:55 +01:00
Jonas Platte
0ae5786c6b
Add missing whitespace 2020-12-24 02:49:25 +01:00
Jonas Platte
042c33283c
Add more dots to docs 2020-12-24 02:49:00 +01:00
Jonas Platte
f55e2b2cc6
Bump dependency requirements 2020-12-24 02:48:01 +01:00
Jonas Platte
132a7b86ec
client-api: Allow custom values for get_content_thumbnail::Method 2020-12-24 02:34:09 +01:00
Jonas Platte
48348edc7e
client: Small readability improvement 2020-12-24 02:25:24 +01:00
Jonas Platte
520bab2900
identifiers: Clean up dependencies
* Get rid of strum, now all crypto algorithms use ruma-serde's string / enum
  conversion code
* Make the dependency on ruma-serde optional and only activate it through the
  serde feature
2020-12-24 02:14:26 +01:00
Jonas Platte
7bf03efa6a
Fix tiny error in nightly CI script 2020-12-24 02:11:35 +01:00
Jonas Platte
168ac66b6f
Update ruma-serde-macros version to be in sync with ruma-serde 2020-12-24 02:05:50 +01:00
Jonas Platte
3989e52844
Upgrade js_int to 0.2.0 2020-12-24 01:53:30 +01:00
Jonas Platte
5cde37aa9d
Update nightly CI 2020-12-24 01:53:17 +01:00
Jonas Platte
527cc4b91c
Update .editorconfig 2020-12-24 01:51:48 +01:00
Jonas Platte
8ea4cf4862
client: Add support for rustls as the TLS backend 2020-12-24 01:43:14 +01:00
Jonas Platte
1129520290
client: Rename tls feature to tls-native 2020-12-24 01:29:19 +01:00
Fredrik Lanker
325b3eea34
Require user credentials for client example 2020-12-23 17:08:01 +01:00
Devin Ragotzy
45d0101155
Export the Verified enum in ruma-signatures 2020-12-21 10:39:17 +01:00
Jonas Platte
1f8384722f
client-api: Rewrap comments in uiaa 2020-12-15 18:24:14 +01:00
Jonas Platte
87e821094c
federation-api: Move Visitor declaration into deserialize function 2020-12-15 14:35:46 +01:00
Jonas Platte
212153ea5f
Mark macro-generated trait implementations as #[automatically_derived] 2020-12-13 13:29:03 +01:00
Jonas Platte
95d21552e0
Use a dedicated method for conversion from http::Request to Ruma request types 2020-12-13 12:59:21 +01:00
Jonas Platte
ac4446ab5b
api-macros: Improve readability of expand_all 2020-12-13 12:28:48 +01:00
Jonas Platte
b38ae1bb76
api: Improve docs for AuthScheme variants 2020-12-13 12:21:19 +01:00
Jonas Platte
e1d621ebd0
Re-apply "federation-api: Make pdus of transactions optional under unstable-pre-spec"
This reverts commit cf7718107267eb65cc2b87a60dd343ce46fd70c1.
2020-12-13 11:55:06 +01:00
Jonas Platte
ae6595339c
Stop stripping serde attributes
To still prevent 'unknown attribute' errors, the attribute is registered
using a dummy derive macro where needed.
2020-12-13 11:54:39 +01:00
Jonas Platte
e8b1e35714
serde: Optimize btreemap_int_or_string_to_int_values
Don't allocate a temporary `BTreeMap<T, IntWrap>`.
2020-12-12 17:57:51 +01:00
Jonas Platte
22ab60128a
serde: Fix int_or_string_to_int deserialization helper
It's unclear why the previous method didn't work, but this one definitely does.
2020-12-12 17:45:16 +01:00
Jonas Platte
d220ab0fbe
Outgoing derive: Copy cfg and cfg_attr attributes to Incoming type 2020-12-10 16:40:57 +01:00
Jonas Platte
cf77181072
Revert "federation-api: Make pdus of transactions optional under unstable-pre-spec"
This reverts commit 5a65634a28cd007416fa2d4b665ab60e5d46d920.
2020-12-10 16:40:33 +01:00
Timo Kösters
5a65634a28
federation-api: Make pdus of transactions optional under unstable-pre-spec 2020-12-10 15:42:14 +01:00
Devin Ragotzy
724a48d616
Add examples to the docs of Raw and the ruma-events module 2020-12-07 17:57:23 +01:00
Jonas Platte
ee814aa849
client-api: Fix issue ID for lazy load deserialization bug 2020-12-07 13:25:10 +01:00
Jonas Platte
c274431949
client-api: Fix deserialization of LazyLoadOptions when serde(flatten)ed 2020-12-07 13:24:03 +01:00
Jonas Platte
ff78ab87dd
filter: Import serde_json functions for tests 2020-12-07 13:24:03 +01:00
David Vo
1a4e9aa20a
Implement MSC2448: BlurHashes for media
This exposes the pre-FCP unstable prefixed fields in MSC2448.
2020-12-07 13:01:15 +01:00
strct
018adf0819
Fix typo in docs 2020-12-07 10:51:41 +01:00
Jonas Platte
cc07d26af6
Allow empty request / response if all body parameters are optional 2020-12-06 22:33:27 +01:00
Devin Ragotzy
f17c5fc619
Use Raw<Pdu> in get_event Response over Pdu 2020-12-06 12:20:48 +01:00
Jonas Platte
e8882fe814
events: Regroup crate-local imports 2020-12-04 21:05:48 +01:00
Damir Jelić
9b87fdda12
ruma-events: Allow encrypted megolm events to contain a relation 2020-12-04 19:53:46 +01:00
Damir Jelić
3216edc137
ruma-events: Add support for m.key.verification.done events 2020-12-04 19:53:46 +01:00
Damir Jelić
ce2ab39d71
ruma-events: Add support for m.key.verification.ready events 2020-12-04 19:53:46 +01:00
Damir Jelić
e0adcaa502
ruma-events: Add the key verification room message variant 2020-12-04 19:53:45 +01:00
Damir Jelić
4afafa8b37
ruma-events: Add the majority of in-room verification events
This patch adds equivalent in-room versions of the m.key.verfication.*
events we have for to-device events.

The MSC that adds this is found over here:
https://github.com/matrix-org/matrix-doc/pull/2241
2020-12-04 19:53:43 +01:00
Damir Jelić
7ec2b0b555
ruma-events: Create separate to-device content structs
While it's possible to share the content between different event types
in the usual case some event types have slightly different contents if
they are sent out as a to-device event vs a room message event.

The canonical example for this are key verification events where the
to-device version has a transaction id field but the room message
version uses event relationships for the same purpose.

This patch makes it possible for to-device events to have different
content structs. Type aliases are used where a common struct can be
used.
2020-12-04 19:48:34 +01:00
Jonas Platte
5828f7b3b5
Bring set_pushrule in line with API conventions 2020-12-03 23:57:20 +01:00
Jonas Platte
fd47563439
Remove needless uses of #[serde(default)] 2020-12-03 23:22:43 +01:00