Jonas Platte
fdd326edf7
Move Outgoing from ruma-api to ruma-common
...
The derive macro moves from ruma-api-macros to a new ruma-common-macros
crate likewise.
2020-09-22 21:35:10 +02:00
Jonas Platte
7b08dceb30
Fix formatting
2020-09-22 21:33:58 +02:00
Jonas Platte
c87ec49594
Update authors field in ruma-events-macros/Cargo.toml
2020-09-22 21:04:00 +02:00
Jonas Platte
7122720bfe
Add LICENSE file to ruma-events-macros
...
For some reason it was missing.
2020-09-22 21:03:02 +02:00
Jonas Platte
c10fb9b269
Remove leftover ruma-client/.builds
2020-09-22 20:55:43 +02:00
Jonas Platte
d36f82faeb
api: Use thiserror to derive many Display + Error implementations
2020-09-22 01:48:45 +02:00
Jonas Platte
bf27285766
api: Import-rename std::error::Error
2020-09-22 01:43:16 +02:00
Jonas Platte
c6d293e0e0
Drop #[non_exhaustive] attribute on RoomVersionId
...
With the _Custom variant being hidden, there is no point in additionally
making it non-exhaustive.
2020-09-22 01:15:38 +02:00
Jonas Platte
a01459e12b
identifiers: Hide RoomVersionId::Custom and CustomRoomVersion
2020-09-22 01:09:18 +02:00
Jonas Platte
91994015d2
identifiers: Remove RoomVersionId::{is_custom, is_official}
...
They were a forwards-compatibility hazard.
2020-09-22 01:03:30 +02:00
Jonas Platte
f0df31d42b
identifiers: Remove deprecated functions
2020-09-22 00:57:33 +02:00
Jonas Platte
e1bedc819c
Use ruma_identifiers::ServerName in more endpoints
...
Co-authored-by: Timo Kösters <timo@koesters.xyz>
2020-09-21 23:12:45 +02:00
Jonas Platte
2bd533c085
federation-api: Fix missing Raw<> for Pdu, Edu
2020-09-21 23:07:22 +02:00
Jonas Platte
7aec43c323
Fix missing serde(default) attributes
2020-09-21 23:06:20 +02:00
Jonas Platte
22ec1710b5
Update ruma-identifiers validation logic
...
* Allow empty localparts
* Simplify some code
2020-09-21 22:34:56 +02:00
Jonas Platte
85e3df7c76
identifiers-validation: Fix docs
2020-09-21 21:57:53 +02:00
Vincent Lee
d36d005b97
Change requires_authentication: bool
to authentication: AuthScheme
2020-09-18 16:28:51 +02:00
Jonas Platte
906e50f9a8
Fix clippy error
2020-09-17 22:18:16 +02:00
Jonas Platte
2112ae00c6
federation-api: Make EventTemplate non-exhaustive
2020-09-17 22:09:51 +02:00
Jonas Platte
2b01a8211a
federation-api: Rewrap doc comments
2020-09-17 22:00:22 +02:00
Jonas Platte
133056c524
api-macros: Small improvements to request building code
2020-09-17 21:46:46 +02:00
Jonas Platte
b4b9d28c8c
Update change log for ruma-common
2020-09-17 21:28:02 +02:00
Jonas Platte
15e1a4bea8
Remove origin field from transactions and pdus for #[feature = "unstable-pre-spec"]
...
See https://github.com/matrix-org/synapse/issues/3816
Co-authored-by: Timo <timo@koesters.xyz>
2020-09-17 21:24:02 +02:00
q-b
192db0371c
Add leave event endpoints
2020-09-17 20:04:41 +02:00
Jonas Platte
219cea9c1e
client-api: Add some missing constructors / non-exhaustive attributes
2020-09-17 00:07:25 +02:00
q-b
b05121877b
Merge room_state and invite_response serde modules
2020-09-16 13:14:33 +02:00
Jonas Platte
8cd3df1465
Remove questionable use of Raw
...
The notifications field was never really meant to use it.
2020-09-15 11:28:44 +02:00
Jonas Platte
7426a4e359
Fix small code style inconsistency
2020-09-14 22:19:13 +02:00
Jonas Platte
481ca6b415
federation-api: Use ServerKeys for verify_keys, old_verify_keys
2020-09-13 17:12:48 +02:00
Julian Tescher
26ae56d168
push-gateway-api: Add notify API ( #260 )
...
Co-authored-by: Devin Ragotzy <devin.ragotzy@gmail.com>
2020-09-12 23:15:24 +02:00
Jonas Platte
4a9b1aeb3c
Remove borrowing from types in ruma_common::encryption
...
Until a better solution can be found for types that appear both in
request & response types and would otherwise require incoming types to
appear as fields of outgoing types.
2020-09-12 02:50:57 +02:00
Jonas Platte
eab5368edd
common: Make recently-moved types non-exhaustive
2020-09-11 21:13:04 +02:00
Jonas Platte
3d1ab0cd3f
api-macros: Fix docs for associated METADATA types
2020-09-11 21:09:55 +02:00
Jonas Platte
67d113ba57
api: Add non_exhaustive attribute to request and reponse types through the macro
2020-09-11 21:01:02 +02:00
Jonas Platte
bb9b2b4a06
client-api: Update state endpoints to the new API standards
2020-09-11 20:39:52 +02:00
Jonas Platte
de22a06976
client-api: Update push endpoints to the new API standards
2020-09-11 20:23:17 +02:00
Devin Ragotzy
bedffcd45a
Move PusherData to ruma-common
2020-09-11 19:18:52 +02:00
Devin Ragotzy
55a67fbcf4
Fix a typo
2020-09-11 19:17:19 +02:00
Julian Tescher
ebd1387bac
federation-api: Add retrieval endpoints
2020-09-11 19:12:48 +02:00
Julian Tescher
c3a074059f
Make custom enum variants doc hidden
2020-09-08 01:06:23 +02:00
Julian Tescher
a2dbeeac71
federation-api: Update ts format for create_invite ( #258 )
2020-09-08 01:00:06 +02:00
Jonas Platte
9f814a2415
client-api: Update room endpoints to the new API standards
2020-09-06 01:31:14 +02:00
Jonas Platte
a012ad3532
client-api: Update include_leave in RoomFilter from Option<bool> to bool
2020-09-03 21:23:06 +02:00
Jonas Platte
56d2623b7d
client-api: Improve docs for contains_url in RoomEventFilter
2020-09-03 21:22:47 +02:00
Devin Ragotzy
a3ae741699
Add unstable-exhaustive-types flag to ruma-common
2020-09-03 20:55:11 +02:00
Jonas Platte
19af16850c
Fix ruma_identifiers::device_id!
2020-09-03 20:23:16 +02:00
Jonas Platte
03c636caf0
identifiers: Replace single-char push_str with just push
2020-09-03 20:21:30 +02:00
Jonas Platte
e7dde6850c
client-api: Update profile endpoints to the new API standards
2020-09-03 17:44:34 +02:00
Jonas Platte
d6d5ad84c1
client-api: Update presence endpoints to the new API standards
2020-09-03 17:38:22 +02:00
Jonas Platte
ce402604e9
client-api: Update membership endpoints to the new API standards
2020-09-03 17:34:39 +02:00