diff --git a/Cargo.toml b/Cargo.toml index 48a43f71..63792da6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,10 +11,10 @@ repository = "https://github.com/ruma/ruma-client-api" version = "0.1.0" [dependencies] -ruma-api = "0.1.0" -ruma-events = "0.2.0" +ruma-api = "0.2.0" +ruma-events = "0.3.0" ruma-identifiers = "0.6.0" ruma-signatures = "0.1.0" -serde = "0.8.19" -serde_derive = "0.8.19" +serde = "0.8.21" +serde_derive = "0.8.21" serde_json = "0.8.4" diff --git a/src/lib.rs b/src/lib.rs index b966b9ff..c4aa85ba 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,7 +2,6 @@ //! endpoint in the [Matrix](https://matrix.org/) client API specification. These types can be //! shared by client and server code. -#![feature(proc_macro)] #![deny(missing_debug_implementations)] #![warn(missing_docs)] diff --git a/src/r0/media.rs b/src/r0/media.rs index efe68e69..b15e3925 100644 --- a/src/r0/media.rs +++ b/src/r0/media.rs @@ -82,7 +82,7 @@ pub mod get_content_thumbnail { pub struct Endpoint; /// The desired resizing method. - #[derive(Clone, Copy, Debug)] + #[derive(Clone, Copy, Debug, Deserialize, Serialize)] pub enum Method { /// Crop the original to produce the requested image dimensions. Crop, @@ -100,7 +100,7 @@ pub mod get_content_thumbnail { } /// This API endpoint's query string parameters. - #[derive(Clone, Debug)] + #[derive(Clone, Debug, Deserialize, Serialize)] pub struct QueryParams { /// The *desired* height of the thumbnail. The actual thumbnail may not match the size /// specified. diff --git a/src/r0/search.rs b/src/r0/search.rs index f1ddf967..f5c14d29 100644 --- a/src/r0/search.rs +++ b/src/r0/search.rs @@ -141,7 +141,7 @@ pub mod search_events { } /// This API endpoint's query string parameters. - #[derive(Clone, Debug)] + #[derive(Clone, Debug, Deserialize, Serialize)] pub struct QueryParams { /// The point to return events from. ///