Jonas Platte
8f1eae97ce
common: Remove unnecessary bound from FlattenedJson::from_raw
2022-02-12 01:44:57 +01:00
Kévin Commaille
757419df13
common: Move reaction pushrule to unstable-msc2677 feature
2022-02-11 10:28:56 +01:00
Kévin Commaille
e5d07e90c5
common: Add link to matrix-doc issue for ProtocolInstance's instance_id field
2022-02-11 10:28:26 +01:00
Kévin Commaille
3813449b29
common: Move SignedKey::new_fallback out of unstable-pre-spec
2022-02-11 10:26:45 +01:00
Jonas Platte
932fe4fa38
common: Skip serializing empty default_payload in PusherData, simplify type
2022-02-09 18:47:24 +01:00
Jonas Platte
c4bccfe17e
common: Remove leftover feature gate
2022-02-02 21:17:07 +01:00
Jonas Platte
62f3d4a649
client-api: Move keys route changes out of unstable-pre-spec
2022-02-02 21:10:11 +01:00
Jonathan de Jong
8348b97091
Improve Synapse compatibility w.r.t. power levels
2022-02-01 15:26:30 +01:00
Jonas Platte
4c859c5aeb
Introduce a Base64 type and use it where applicable
2022-01-13 16:22:21 +01:00
Jonas Platte
ee977b48f0
Make the inner type of _Custom enum variants unusable
...
The variant itself would be private if possible, this is the solution
closest to that.
2022-01-13 11:38:48 +01:00
Jonas Platte
9621b83d49
Use doc_auto_cfg for automatic cfg documentation
2022-01-02 19:22:42 +01:00
Jonas Platte
7ebe660402
common: Add compatibility hack for empty-string canonical_alias
2021-12-09 12:38:30 +01:00
Damir Jelić
caa3c05db3
client-api: Add support for fallback keys
...
This implements support for MSC2732[1], fallback keys. Only support to
upload and get notifications about fallback keys via `/sync` is
implemented.
[1]: https://github.com/matrix-org/matrix-doc/pull/2732
2021-12-06 11:26:14 +01:00
Jonas Platte
3ce578f384
identifiers: Make UserId a DST
2021-11-26 00:40:40 +01:00
Jonas Platte
2d4dbfe42f
identifiers: Make RoomId a DST
2021-11-26 00:04:28 +01:00
Jonas Platte
b0db5e94e1
identifiers: Make RoomAliasId a DST
2021-11-26 00:04:28 +01:00
Jonas Platte
ec605a0959
identifiers: Make MxcUri a DST
2021-11-26 00:04:28 +01:00
Jonas Platte
c73eb7dce3
identifiers: Make DeviceKeyId a DST
2021-11-25 21:07:14 +01:00
Jonas Platte
438efee143
identifiers: Remove Box<$id> aliases
2021-11-25 21:07:14 +01:00
Jonas Platte
ac6ecc3e5e
push-gateway-api: Make data field of Device not an Option
...
All fields of the inner type are optional themselves.
2021-11-05 12:57:26 +01:00
Jonas Platte
103b9df6c2
common: Add unstable support for default_payload field in PusherData
2021-11-05 12:49:43 +01:00
Jonas Platte
a2570e1648
common: Fix unnecessary .to_string()
call
2021-10-29 23:00:37 +02:00
Jonas Platte
aa5fdf9d22
Merge serde attributes and improve docs
2021-10-08 12:49:13 +02:00
Jonas Platte
271491732e
Remove now-redundant doc(cfg) attributes
...
They are now implied:
https://github.com/rust-lang/rust/pull/89596
2021-10-08 11:52:18 +02:00
Devin Ragotzy
bdcfc12ac7
Update client-server spec links
2021-10-06 10:48:08 +02:00
Jonas Platte
46c7e3f811
Clean up and rewrap documentation comments
2021-08-27 21:32:02 +02:00
Adam
63411165da
Move RoomName
to ruma-identifiers
and use it more
2021-08-10 15:22:47 +02:00
Devin Ragotzy
74b6a4c9d8
common: Make all pub enums non_exhaustive
2021-08-10 15:22:26 +02:00
Devin Ragotzy
626b5a5d06
common: Make all pub structs non_exhaustive
2021-06-18 11:00:35 +00:00
Timo Kösters
c198cf6e9f
federation-api: Improve claim_keys endpoint
2021-06-17 19:43:22 +02:00
Julian Sparber
9d34524442
common: Add instance-id field to ProtocolInstance
...
It's not included in the specs.
See https://github.com/matrix-org/matrix-doc/issues/3203
2021-06-09 21:47:02 +02:00
Jonas Platte
13e3b45070
Move ThirdPartyIdentifier(Init) from client-api to common
...
While it's not currently used in any other crates in this repo,
synapse-admin-api does use it and it seems logical for it to be defined
alongside the other thirdparty types in common.
2021-06-01 21:53:58 +02:00
Julian Sparber
8a147f08d1
ruma-common: Add getters to [Milli]SecondsSinceUnixEpoch
2021-05-21 15:37:39 +00:00
Timo Kösters
a238a0dda5
federation-api: Improve get_keys
2021-05-21 12:37:41 +02:00
Jonas Platte
4dd9baa238
Improve consistency in docs
2021-05-16 23:38:19 +02:00
Jonas Platte
c34d570fff
common: Introduce SecondsSinceUnixEpoch, MilliSecondsSinceUnixEpoch
2021-05-13 01:06:04 +02:00
Kévin Commaille
dd940f810e
common: Use ruma-serde derives for ReceiptType
2021-05-11 10:11:02 +02:00
Kévin Commaille
6a2c028cfb
events: Change receipt::Receipts struct to a BTreeMap<ReceiptType, UserReceipts>
2021-05-11 10:11:02 +02:00
Devin Ragotzy
5090c11843
Enable non-default clippy lints
2021-05-06 11:07:31 +00:00
Devin Ragotzy
c6aa2e0428
Fix clippy warnings across workspace
2021-05-06 06:16:28 -04:00
Jonas Platte
cf291bd5ba
Clean up lint attributes
2021-05-05 23:39:52 +02:00
Jonas Platte
3db0ea7026
Move all crates into a new crates directory
2021-05-03 15:50:27 +02:00