Jonas Platte
10adf0c0c0
client-api: Use Raw in send_message_event, send_state_event
2021-04-18 12:23:03 +02:00
Jonas Platte
c1693569f1
api: Replace bytes::Buf by AsRef<u8> for reading
...
This allows us to switch back to serde_json::from_slice instead of
serde_json::from_reader, because the latter is significantly slower.
See https://github.com/serde-rs/json/issues/160
2021-04-13 22:12:16 +02:00
Jonas Platte
0e197aae0b
api: Update try_from_http_request to be generic like try_from_http_response
2021-04-12 20:38:22 +02:00
Jonas Platte
6f5c1ee953
api: Stop storing the http::Request in RequestDeserializationError
2021-04-12 20:38:22 +02:00
Kévin Commaille
b89a18fa16
client-api: Fix check warnings and tests with no feature enabled
2021-04-12 18:57:04 +02:00
Jonas Platte
a310ccc318
client-api: Move some tests behind feature flags
2021-04-06 17:20:47 +02:00
Jonas Platte
c523fa0f74
Use ruma_api::try_deserialize in manual endpoint implementations
2021-04-05 22:33:05 +02:00
Jonas Platte
2f1b9f0979
client-api: Merge _for_empty_key endpoints into their more general siblings
2021-04-05 16:04:28 +02:00
Jonas Platte
4b05ee5f0a
client-api: Use ruma_api! for endpoints with special request types
2021-04-05 15:11:59 +02:00
Jonas Platte
a0e8bb416b
Increase MSRV from 1.43 to 1.45
2021-03-21 20:32:46 +01:00
Akshay
4d51e98707
Introduce client
and server
feature flags for *-api crates
2021-03-05 16:00:35 +01:00
Akshay
c27e66741a
Set Content-Type to application/json
in all manual endpoint trait implementations
2021-03-01 18:39:12 +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
5562a23aaa
Move Raw, Outgoing and all macro code from ruma-common to ruma-serde
2020-11-28 03:45:39 +01:00
Jonas Platte
406b8501ac
Fix building on Rust 1.43.0
2020-09-29 22:12:56 +02:00
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
Vincent Lee
d36d005b97
Change requires_authentication: bool
to authentication: AuthScheme
2020-09-18 16:28:51 +02:00
Nicholas Young
7ccdaa34d6
feature gate exhaustive types for all spec crates:
...
- ruma-appservice-api
- ruma-client-api
- ruma-events
- ruma-federation-api
2020-09-01 18:39:41 -06:00
Jonas Platte
30a0a39d2b
Outgoing derive: Replace incoming_no_deserialize with incoming_derive(!Deserialize)
2020-08-17 22:08:56 +02:00
Jonas Platte
aead9fa852
Use AnyMessageEventContent in send_message_event
2020-08-15 00:37:39 +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
2e683b2fd4
Borrow strings and identifiers in send_message_event
2020-08-08 14:28:07 +02:00
Jonas Platte
582cc9fe2a
Rename {create => send}_message_event, same for state
2020-08-08 14:27:00 +02:00