From 65195cad0ddf0005edb5e87c37775ffe5ef231e4 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 10 Aug 2021 12:38:12 +0200 Subject: [PATCH] Release ruma-api 0.18.0 --- crates/ruma-api-macros/Cargo.toml | 2 +- crates/ruma-api/CHANGELOG.md | 10 ++++++++++ crates/ruma-api/Cargo.toml | 4 ++-- crates/ruma-appservice-api/Cargo.toml | 2 +- crates/ruma-client-api/Cargo.toml | 2 +- crates/ruma-client/Cargo.toml | 2 +- crates/ruma-federation-api/Cargo.toml | 2 +- crates/ruma-identity-service-api/Cargo.toml | 2 +- crates/ruma-push-gateway-api/Cargo.toml | 2 +- crates/ruma/Cargo.toml | 2 +- 10 files changed, 20 insertions(+), 10 deletions(-) diff --git a/crates/ruma-api-macros/Cargo.toml b/crates/ruma-api-macros/Cargo.toml index 32b3565a..25bab7a6 100644 --- a/crates/ruma-api-macros/Cargo.toml +++ b/crates/ruma-api-macros/Cargo.toml @@ -11,7 +11,7 @@ license = "MIT" name = "ruma-api-macros" readme = "README.md" repository = "https://github.com/ruma/ruma" -version = "0.17.1" +version = "0.18.0" edition = "2018" [lib] diff --git a/crates/ruma-api/CHANGELOG.md b/crates/ruma-api/CHANGELOG.md index dbd8eaf9..fcebb25b 100644 --- a/crates/ruma-api/CHANGELOG.md +++ b/crates/ruma-api/CHANGELOG.md @@ -1,5 +1,15 @@ # [unreleased] +# 0.18.0 + +Bug fixes: + +* Allow all borrowing query and / or body parameters in `ruma_api!` to be + `cfg`-conditional + * This used lead to broken code being generated and was fixed by moving all + `impl` block generation code into a derive macro (derive macros run after + `cfg` expansion) + # 0.17.1 Improvements: diff --git a/crates/ruma-api/Cargo.toml b/crates/ruma-api/Cargo.toml index 3da72559..e3264107 100644 --- a/crates/ruma-api/Cargo.toml +++ b/crates/ruma-api/Cargo.toml @@ -11,7 +11,7 @@ license = "MIT" name = "ruma-api" readme = "README.md" repository = "https://github.com/ruma/ruma" -version = "0.17.1" +version = "0.18.0" edition = "2018" [package.metadata.docs.rs] @@ -29,7 +29,7 @@ server = [] bytes = "1.0.1" http = "0.2.2" percent-encoding = "2.1.0" -ruma-api-macros = { version = "=0.17.1", path = "../ruma-api-macros" } +ruma-api-macros = { version = "=0.18.0", path = "../ruma-api-macros" } ruma-identifiers = { version = "0.19.4", path = "../ruma-identifiers" } ruma-serde = { version = "0.4.2", path = "../ruma-serde" } serde = { version = "1.0.118", features = ["derive"] } diff --git a/crates/ruma-appservice-api/Cargo.toml b/crates/ruma-appservice-api/Cargo.toml index 348f35f1..80d544a9 100644 --- a/crates/ruma-appservice-api/Cargo.toml +++ b/crates/ruma-appservice-api/Cargo.toml @@ -21,7 +21,7 @@ client = [] server = [] [dependencies] -ruma-api = { version = "0.17.1", path = "../ruma-api" } +ruma-api = { version = "0.18.0", path = "../ruma-api" } ruma-client-api = { version = "0.11.0", path = "../ruma-client-api", features = ["client"], optional = true } ruma-common = { version = "0.5.4", path = "../ruma-common" } ruma-events = { version = "0.23.3", path = "../ruma-events" } diff --git a/crates/ruma-client-api/Cargo.toml b/crates/ruma-client-api/Cargo.toml index d2b26288..fd2801ae 100644 --- a/crates/ruma-client-api/Cargo.toml +++ b/crates/ruma-client-api/Cargo.toml @@ -34,7 +34,7 @@ http = "0.2.2" js_int = { version = "0.2.0", features = ["serde"] } maplit = "1.0.2" percent-encoding = "2.1.0" -ruma-api = { version = "0.17.1", path = "../ruma-api" } +ruma-api = { version = "0.18.0", path = "../ruma-api" } ruma-common = { version = "0.5.4", path = "../ruma-common" } ruma-events = { version = "0.23.3", path = "../ruma-events" } ruma-identifiers = { version = "0.19.4", path = "../ruma-identifiers" } diff --git a/crates/ruma-client/Cargo.toml b/crates/ruma-client/Cargo.toml index f16954f0..a40fcf1a 100644 --- a/crates/ruma-client/Cargo.toml +++ b/crates/ruma-client/Cargo.toml @@ -45,7 +45,7 @@ hyper-rustls-crate = { package = "hyper-rustls", version = "0.22.1", optional = hyper-tls = { version = "0.5.0", optional = true } isahc-crate = { package = "isahc", version = "1.3.1", optional = true } reqwest = { version = "0.11.4", optional = true, default-features = false } -ruma-api = { version = "0.17.1", path = "../ruma-api" } +ruma-api = { version = "0.18.0", path = "../ruma-api" } ruma-client-api = { version = "0.11.0", path = "../ruma-client-api", optional = true, features = ["client"] } ruma-common = { version = "0.5.4", path = "../ruma-common" } ruma-identifiers = { version = "0.19.4", path = "../ruma-identifiers" } diff --git a/crates/ruma-federation-api/Cargo.toml b/crates/ruma-federation-api/Cargo.toml index 9137de56..05dd4d16 100644 --- a/crates/ruma-federation-api/Cargo.toml +++ b/crates/ruma-federation-api/Cargo.toml @@ -26,7 +26,7 @@ server = [] [dependencies] js_int = { version = "0.2.0", features = ["serde"] } -ruma-api = { version = "0.17.1", path = "../ruma-api" } +ruma-api = { version = "0.18.0", path = "../ruma-api" } ruma-common = { version = "0.5.4", path = "../ruma-common" } ruma-events = { version = "0.23.3", path = "../ruma-events" } ruma-identifiers = { version = "0.19.4", path = "../ruma-identifiers" } diff --git a/crates/ruma-identity-service-api/Cargo.toml b/crates/ruma-identity-service-api/Cargo.toml index 804f7c4e..c7431893 100644 --- a/crates/ruma-identity-service-api/Cargo.toml +++ b/crates/ruma-identity-service-api/Cargo.toml @@ -20,7 +20,7 @@ server = [] [dependencies] js_int = { version = "0.2.0", features = ["serde"] } -ruma-api = { version = "0.17.1", path = "../ruma-api" } +ruma-api = { version = "0.18.0", path = "../ruma-api" } ruma-common = { version = "0.5.4", path = "../ruma-common" } ruma-identifiers = { version = "0.19.4", path = "../ruma-identifiers" } ruma-serde = { version = "0.4.2", path = "../ruma-serde" } diff --git a/crates/ruma-push-gateway-api/Cargo.toml b/crates/ruma-push-gateway-api/Cargo.toml index b666d893..c57a0a83 100644 --- a/crates/ruma-push-gateway-api/Cargo.toml +++ b/crates/ruma-push-gateway-api/Cargo.toml @@ -20,7 +20,7 @@ server = [] [dependencies] js_int = { version = "0.2.0", features = ["serde"] } -ruma-api = { version = "0.17.1", path = "../ruma-api" } +ruma-api = { version = "0.18.0", path = "../ruma-api" } ruma-common = { version = "0.5.4", path = "../ruma-common" } ruma-events = { version = "0.23.3", path = "../ruma-events" } ruma-identifiers = { version = "0.19.4", path = "../ruma-identifiers" } diff --git a/crates/ruma/Cargo.toml b/crates/ruma/Cargo.toml index a8cce8f5..7a2932d0 100644 --- a/crates/ruma/Cargo.toml +++ b/crates/ruma/Cargo.toml @@ -128,7 +128,7 @@ ruma-events = { version = "0.23.3", path = "../ruma-events", optional = true } ruma-signatures = { version = "0.8.0", path = "../ruma-signatures", optional = true } ruma-state-res = { version = "0.2.0", path = "../ruma-state-res", optional = true } -ruma-api = { version = "0.17.1", path = "../ruma-api", optional = true } +ruma-api = { version = "0.18.0", path = "../ruma-api", optional = true } ruma-appservice-api = { version = "0.3.0", path = "../ruma-appservice-api", optional = true } ruma-client-api = { version = "0.11.0", path = "../ruma-client-api", optional = true } ruma-federation-api = { version = "0.2.0", path = "../ruma-federation-api", optional = true }