diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fa24392..3a0e9900 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # [unreleased] +# 0.16.1 + +Bug fixes: + +* Update ruma-serde to 0.2.0, fixing some issues with query string deserialization (some issues + still remain but will be fixed in a semver-compatible version) + # 0.16.0 Breaking changes: diff --git a/Cargo.toml b/Cargo.toml index 28bca483..b813d604 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,21 +12,21 @@ license = "MIT" name = "ruma-api" readme = "README.md" repository = "https://github.com/ruma/ruma-api" -version = "0.16.0" +version = "0.16.1" edition = "2018" [dependencies] http = "0.2.1" percent-encoding = "2.1.0" -ruma-api-macros = { version = "=0.16.0", path = "ruma-api-macros" } +ruma-api-macros = { version = "=0.16.1", path = "ruma-api-macros" } ruma-identifiers = "0.16.1" -ruma-serde = "0.1.3" -serde = { version = "1.0.106", features = ["derive"] } -serde_json = "1.0.52" +ruma-serde = "0.2.0" +serde = { version = "1.0.110", features = ["derive"] } +serde_json = "1.0.53" strum = "0.18.0" [dev-dependencies] -ruma-events = "0.21.0" +ruma-events = "0.21.1" [workspace] members = [ diff --git a/ruma-api-macros/Cargo.toml b/ruma-api-macros/Cargo.toml index 3bd6b203..8a2f2c70 100644 --- a/ruma-api-macros/Cargo.toml +++ b/ruma-api-macros/Cargo.toml @@ -12,13 +12,13 @@ license = "MIT" name = "ruma-api-macros" readme = "README.md" repository = "https://github.com/ruma/ruma-api" -version = "0.16.0" +version = "0.16.1" edition = "2018" [dependencies] proc-macro2 = "1.0.12" -quote = "1.0.4" -syn = { version = "1.0.18", features = ["full", "extra-traits"] } +quote = "1.0.5" +syn = { version = "1.0.21", features = ["full", "extra-traits"] } [lib] proc-macro = true diff --git a/src/error.rs b/src/error.rs index 20ec0282..31233b62 100644 --- a/src/error.rs +++ b/src/error.rs @@ -29,8 +29,8 @@ impl From for IntoHttpError { } #[doc(hidden)] -impl From for IntoHttpError { - fn from(err: ruma_serde::urlencoded::error::Error) -> Self { +impl From for IntoHttpError { + fn from(err: ruma_serde::urlencoded::ser::Error) -> Self { Self(SerializationError::Query(err)) } } @@ -195,7 +195,7 @@ impl std::error::Error for ServerError {} #[derive(Debug)] enum SerializationError { Json(serde_json::Error), - Query(ruma_serde::urlencoded::error::Error), + Query(ruma_serde::urlencoded::ser::Error), } /// This type is public so it is accessible from `ruma_api!` generated code. diff --git a/src/lib.rs b/src/lib.rs index 2259ba1e..078f368c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,7 +9,7 @@ //! input parameters for requests, and the structure of a successful response. //! Such types can then be used by client code to make requests, and by server code to fulfill //! those requests. - +#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")] #![warn(rust_2018_idioms)] #![deny(missing_copy_implementations, missing_debug_implementations, missing_docs)]