From dad708e9b5368b4e2315a6f623169baef182b770 Mon Sep 17 00:00:00 2001 From: Andriy <30056636+West14@users.noreply.github.com> Date: Mon, 6 Nov 2023 22:44:56 +0200 Subject: [PATCH 1/4] support for rocket v0.5.0-rc.4 --- examples/custom_schema/Cargo.toml | 2 +- examples/dyn_templates/Cargo.toml | 4 ++-- examples/json-web-api/Cargo.toml | 2 +- examples/openapi_attributes/Cargo.toml | 2 +- examples/raw_identifiers/Cargo.toml | 2 +- examples/secure_request_guard/Cargo.toml | 2 +- examples/secure_request_guard/src/api_key.rs | 4 ++-- examples/secure_request_guard/src/cookies.rs | 3 ++- examples/secure_request_guard/src/http_auth.rs | 4 ++-- examples/secure_request_guard/src/oauth2.rs | 4 ++-- examples/special-types/Cargo.toml | 2 +- examples/streams/Cargo.toml | 2 +- examples/uuid/Cargo.toml | 2 +- rocket-okapi-codegen/Cargo.toml | 2 +- rocket-okapi/Cargo.toml | 6 +++--- rocket-okapi/src/handlers/content.rs | 6 +++--- 16 files changed, 25 insertions(+), 24 deletions(-) diff --git a/examples/custom_schema/Cargo.toml b/examples/custom_schema/Cargo.toml index 2dc9e3bc..bf443bd3 100644 --- a/examples/custom_schema/Cargo.toml +++ b/examples/custom_schema/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Ralph Bisschops "] edition = "2018" [dependencies] -rocket = { version = "=0.5.0-rc.3", default-features = false, features = ["json"] } +rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json"] } rocket_okapi = { path = "../../rocket-okapi", features = ["swagger", "rapidoc"] } serde = "1.0" serde_json = "1.0" diff --git a/examples/dyn_templates/Cargo.toml b/examples/dyn_templates/Cargo.toml index 85df7049..8e2a39cd 100644 --- a/examples/dyn_templates/Cargo.toml +++ b/examples/dyn_templates/Cargo.toml @@ -7,9 +7,9 @@ authors = [ edition = "2018" [dependencies] -rocket = { version = "=0.5.0-rc.3", default-features = false, features = ["json"] } +rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json"] } schemars = { version = "0.8" } rocket_okapi = { path = "../../rocket-okapi", features = ["swagger", "rapidoc", "rocket_dyn_templates"] } serde = "1.0" -rocket_dyn_templates = {version = "=0.1.0-rc.3", features = ["handlebars"]} +rocket_dyn_templates = {version = "=0.1.0-rc.4", features = ["handlebars"]} handlebars = "4.3.0" \ No newline at end of file diff --git a/examples/json-web-api/Cargo.toml b/examples/json-web-api/Cargo.toml index 636898b8..08e62907 100644 --- a/examples/json-web-api/Cargo.toml +++ b/examples/json-web-api/Cargo.toml @@ -5,6 +5,6 @@ authors = ["Graham Esau "] edition = "2018" [dependencies] -rocket = { version = "=0.5.0-rc.3", default-features = false, features = ["json"] } +rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json"] } rocket_okapi = { path = "../../rocket-okapi", features = ["swagger", "rapidoc"] } serde = "1.0" diff --git a/examples/openapi_attributes/Cargo.toml b/examples/openapi_attributes/Cargo.toml index 9961fdc5..1fa83dad 100644 --- a/examples/openapi_attributes/Cargo.toml +++ b/examples/openapi_attributes/Cargo.toml @@ -5,6 +5,6 @@ authors = ["Ralph Bisschops "] edition = "2021" [dependencies] -rocket = { version = "=0.5.0-rc.3", default-features = false, features = ["json"] } +rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json"] } rocket_okapi = { path = "../../rocket-okapi", features = ["swagger", "rapidoc"] } serde = "1.0" diff --git a/examples/raw_identifiers/Cargo.toml b/examples/raw_identifiers/Cargo.toml index 09fcc616..eafb6171 100644 --- a/examples/raw_identifiers/Cargo.toml +++ b/examples/raw_identifiers/Cargo.toml @@ -7,5 +7,5 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rocket = { version = "=0.5.0-rc.3", default-features = false, features = ["json"] } +rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json"] } rocket_okapi = { path = "../../rocket-okapi", features = ["rapidoc", "swagger"] } \ No newline at end of file diff --git a/examples/secure_request_guard/Cargo.toml b/examples/secure_request_guard/Cargo.toml index e58ec37c..12f4585e 100644 --- a/examples/secure_request_guard/Cargo.toml +++ b/examples/secure_request_guard/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Kristoffer Ödmark ", "Ralph Bisschop edition = "2018" [dependencies] -rocket = { version = "=0.5.0-rc.3", default-features = false, features = ["json", "secrets"] } +rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json", "secrets"] } rocket_okapi = { path = "../../rocket-okapi", features = ["rapidoc", "swagger", "secrets"] } serde = "1.0" tokio = "1.6" diff --git a/examples/secure_request_guard/src/api_key.rs b/examples/secure_request_guard/src/api_key.rs index b4e486ce..ec8070db 100644 --- a/examples/secure_request_guard/src/api_key.rs +++ b/examples/secure_request_guard/src/api_key.rs @@ -30,10 +30,10 @@ impl<'a> FromRequest<'a> for ApiKey { if key == "mykey" { Outcome::Success(ApiKey(key.to_owned())) } else { - Outcome::Failure((Status::Unauthorized, "Api key is invalid.")) + Outcome::Error((Status::Unauthorized, "Api key is invalid.")) } } - None => Outcome::Failure((Status::BadRequest, "Missing `x-api-key` header.")), + None => Outcome::Error((Status::BadRequest, "Missing `x-api-key` header.")), } // For more info see: https://rocket.rs/v0.5-rc/guide/state/#within-guards } diff --git a/examples/secure_request_guard/src/cookies.rs b/examples/secure_request_guard/src/cookies.rs index f2690803..0cf6b155 100644 --- a/examples/secure_request_guard/src/cookies.rs +++ b/examples/secure_request_guard/src/cookies.rs @@ -6,6 +6,7 @@ use rocket::{ get, request::{self, FromRequest}, }; +use rocket::http::Status; use rocket_okapi::okapi::openapi3::{Object, Parameter, ParameterValue}; use rocket_okapi::{ gen::OpenApiGenerator, @@ -27,7 +28,7 @@ impl<'a> FromRequest<'a> for CookieAuth { .get_private("user_id") // Requires "secrets" feature flag .and_then(|cookie| cookie.value().parse().ok()) .map(CookieAuth) - .or_forward(()) + .or_forward(Status::Unauthorized) } } diff --git a/examples/secure_request_guard/src/http_auth.rs b/examples/secure_request_guard/src/http_auth.rs index ab4140dd..cace0c08 100644 --- a/examples/secure_request_guard/src/http_auth.rs +++ b/examples/secure_request_guard/src/http_auth.rs @@ -30,10 +30,10 @@ impl<'a> FromRequest<'a> for HttpAuth { if token == "Bearer mytoken" { Outcome::Success(HttpAuth(token.to_owned())) } else { - Outcome::Failure((Status::Unauthorized, "Auth is invalid.")) + Outcome::Error((Status::Unauthorized, "Auth is invalid.")) } } - None => Outcome::Failure((Status::BadRequest, "Missing `Authorization` header.")), + None => Outcome::Error((Status::BadRequest, "Missing `Authorization` header.")), } // For more info see: https://rocket.rs/v0.5-rc/guide/state/#within-guards } diff --git a/examples/secure_request_guard/src/oauth2.rs b/examples/secure_request_guard/src/oauth2.rs index 8374b25b..27c1e527 100644 --- a/examples/secure_request_guard/src/oauth2.rs +++ b/examples/secure_request_guard/src/oauth2.rs @@ -31,10 +31,10 @@ impl<'a> FromRequest<'a> for OAuth2AuthCode { if jwt.starts_with("Bearer ") { Outcome::Success(OAuth2AuthCode) } else { - Outcome::Failure((Status::Unauthorized, "JWT is invalid.")) + Outcome::Error((Status::Unauthorized, "JWT is invalid.")) } } - None => Outcome::Failure((Status::BadRequest, "Missing `Authorization` header.")), + None => Outcome::Error((Status::BadRequest, "Missing `Authorization` header.")), } } } diff --git a/examples/special-types/Cargo.toml b/examples/special-types/Cargo.toml index e11525db..cde936bd 100644 --- a/examples/special-types/Cargo.toml +++ b/examples/special-types/Cargo.toml @@ -5,6 +5,6 @@ authors = ["Ralph Bisschops "] edition = "2018" [dependencies] -rocket = { version = "=0.5.0-rc.3", default-features = false, features = ["json"] } +rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json"] } rocket_okapi = { path = "../../rocket-okapi", features = ["swagger", "rapidoc"] } serde = "1.0" diff --git a/examples/streams/Cargo.toml b/examples/streams/Cargo.toml index da5cdfb7..64801a37 100644 --- a/examples/streams/Cargo.toml +++ b/examples/streams/Cargo.toml @@ -5,6 +5,6 @@ authors = ["Ralph Bisschops "] edition = "2018" [dependencies] -rocket = { version = "=0.5.0-rc.3", default-features = false, features = ["json"] } +rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json"] } rocket_okapi = { path = "../../rocket-okapi", features = ["swagger", "rapidoc"] } serde = "1.0" diff --git a/examples/uuid/Cargo.toml b/examples/uuid/Cargo.toml index 8ae066b9..e9b7b0fb 100644 --- a/examples/uuid/Cargo.toml +++ b/examples/uuid/Cargo.toml @@ -9,7 +9,7 @@ authors = [ edition = "2018" [dependencies] -rocket = { version = "=0.5.0-rc.3", default-features = false, features = ["json", "uuid"] } +rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json", "uuid"] } schemars = { version = "0.8", features = ["uuid1"] } rocket_okapi = { path = "../../rocket-okapi", features = ["swagger", "rapidoc", "uuid"] } serde = "1.0" diff --git a/rocket-okapi-codegen/Cargo.toml b/rocket-okapi-codegen/Cargo.toml index feda0e22..e42bf0d6 100644 --- a/rocket-okapi-codegen/Cargo.toml +++ b/rocket-okapi-codegen/Cargo.toml @@ -14,7 +14,7 @@ categories = ["web-programming"] proc-macro = true [dependencies] -rocket_http = { version = "=0.5.0-rc.3" } +rocket_http = { version = "=0.5.0-rc.4" } darling = "0.13" syn = "1.0" proc-macro2 = "1.0" diff --git a/rocket-okapi/Cargo.toml b/rocket-okapi/Cargo.toml index e774ea6a..966d6bb1 100644 --- a/rocket-okapi/Cargo.toml +++ b/rocket-okapi/Cargo.toml @@ -11,7 +11,7 @@ keywords = ["rust", "openapi", "swagger", "rocket"] categories = ["web-programming"] [dependencies] -rocket = { version = "=0.5.0-rc.3", default-features = false, features = ["json"] } +rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json"] } schemars = { version = "0.8.10" } okapi = { version = "0.7.0-rc.1", path = "../okapi" } rocket_okapi_codegen = { version = "=0.8.0-rc.3", path = "../rocket-okapi-codegen" } @@ -23,8 +23,8 @@ log = "0.4" # time = { version = "0.2.27" } # Rocket dependency but not re-exported either = "1" -rocket_dyn_templates = { version = "=0.1.0-rc.3", optional = true } -rocket_db_pools = { version = "=0.1.0-rc.3", optional = true } +rocket_dyn_templates = { version = "=0.1.0-rc.4", optional = true } +rocket_db_pools = { version = "=0.1.0-rc.4", optional = true } [dev-dependencies] rocket_sync_db_pools = { version = "0.1.0-rc.3", features = ["diesel_sqlite_pool"] } diff --git a/rocket-okapi/src/handlers/content.rs b/rocket-okapi/src/handlers/content.rs index 17de0add..a007f0d2 100644 --- a/rocket-okapi/src/handlers/content.rs +++ b/rocket-okapi/src/handlers/content.rs @@ -1,4 +1,4 @@ -use rocket::http::{ContentType, Method}; +use rocket::http::{ContentType, Method, Status}; use rocket::response::Responder; use rocket::route::{Handler, Outcome}; use rocket::{Data, Request, Route}; @@ -56,12 +56,12 @@ where async fn handle<'r>(&self, req: &'r Request<'_>, data: Data<'r>) -> Outcome<'r> { // match e.g. "/index.html" but not "/index.html/" if req.uri().path().ends_with('/') { - Outcome::forward(data) + Outcome::forward(data, Status::PermanentRedirect) } else { let content: (_, Vec) = (self.content.0.clone(), self.content.1.as_ref().into()); match content.respond_to(req) { Ok(response) => Outcome::Success(response), - Err(status) => Outcome::Failure(status), + Err(status) => Outcome::Error(status), } } } From 45a86018e0133cd1a16d18ede3dc0ebc0593f9b9 Mon Sep 17 00:00:00 2001 From: Andriy <30056636+West14@users.noreply.github.com> Date: Mon, 6 Nov 2023 23:18:41 +0200 Subject: [PATCH 2/4] update rocket version in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6b9f2d04..bac68c93 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ visualize the documentation. Rocket-okapi currently includes [RapiDoc][RapiDoc] [Swagger UI][Swagger_UI], but others can be used too. Supported OpenAPI Spec: [3.0.0][OpenAPI_3.0.0]
-Supported Rocket version (for `rocket_okapi`): [0.5.0-rc.2](https://crates.io/crates/rocket/0.5.0-rc.2) +Supported Rocket version (for `rocket_okapi`): [0.5.0-rc.4](https://crates.io/crates/rocket/0.5.0-rc.4) Example of generated documentation using Okapi: - DF Storyteller: [RapiDoc](https://docs.dfstoryteller.com/rapidoc/), From 343ed1b1b3b246ccefcd892680c87d807929af54 Mon Sep 17 00:00:00 2001 From: Andriy <30056636+West14@users.noreply.github.com> Date: Thu, 9 Nov 2023 13:22:28 +0200 Subject: [PATCH 3/4] fix formatting --- examples/secure_request_guard/src/cookies.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/secure_request_guard/src/cookies.rs b/examples/secure_request_guard/src/cookies.rs index 0cf6b155..e591426b 100644 --- a/examples/secure_request_guard/src/cookies.rs +++ b/examples/secure_request_guard/src/cookies.rs @@ -1,12 +1,12 @@ //! ------ Just Cookies (for just 1 route/endpoint) ------ +use rocket::http::Status; use rocket::outcome::IntoOutcome; use rocket::serde::json::Json; use rocket::{ get, request::{self, FromRequest}, }; -use rocket::http::Status; use rocket_okapi::okapi::openapi3::{Object, Parameter, ParameterValue}; use rocket_okapi::{ gen::OpenApiGenerator, From b6ba315d8e03f845ca9d8ab34562c27e3164668a Mon Sep 17 00:00:00 2001 From: Andriy <30056636+West14@users.noreply.github.com> Date: Sat, 18 Nov 2023 17:25:54 +0200 Subject: [PATCH 4/4] bump rocket to v0.5.0 --- README.md | 2 +- examples/custom_schema/Cargo.toml | 2 +- examples/dyn_templates/Cargo.toml | 4 ++-- examples/json-web-api/Cargo.toml | 2 +- examples/openapi_attributes/Cargo.toml | 2 +- examples/raw_identifiers/Cargo.toml | 2 +- examples/secure_request_guard/Cargo.toml | 2 +- examples/special-types/Cargo.toml | 2 +- examples/streams/Cargo.toml | 2 +- examples/uuid/Cargo.toml | 2 +- rocket-okapi-codegen/Cargo.toml | 2 +- rocket-okapi/Cargo.toml | 6 +++--- 12 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index bac68c93..bb747b6c 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ visualize the documentation. Rocket-okapi currently includes [RapiDoc][RapiDoc] [Swagger UI][Swagger_UI], but others can be used too. Supported OpenAPI Spec: [3.0.0][OpenAPI_3.0.0]
-Supported Rocket version (for `rocket_okapi`): [0.5.0-rc.4](https://crates.io/crates/rocket/0.5.0-rc.4) +Supported Rocket version (for `rocket_okapi`): [0.5.0](https://crates.io/crates/rocket/0.5.0) Example of generated documentation using Okapi: - DF Storyteller: [RapiDoc](https://docs.dfstoryteller.com/rapidoc/), diff --git a/examples/custom_schema/Cargo.toml b/examples/custom_schema/Cargo.toml index bf443bd3..d58a1884 100644 --- a/examples/custom_schema/Cargo.toml +++ b/examples/custom_schema/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Ralph Bisschops "] edition = "2018" [dependencies] -rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json"] } +rocket = { version = "=0.5.0", default-features = false, features = ["json"] } rocket_okapi = { path = "../../rocket-okapi", features = ["swagger", "rapidoc"] } serde = "1.0" serde_json = "1.0" diff --git a/examples/dyn_templates/Cargo.toml b/examples/dyn_templates/Cargo.toml index 8e2a39cd..0b0e1f24 100644 --- a/examples/dyn_templates/Cargo.toml +++ b/examples/dyn_templates/Cargo.toml @@ -7,9 +7,9 @@ authors = [ edition = "2018" [dependencies] -rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json"] } +rocket = { version = "=0.5.0", default-features = false, features = ["json"] } schemars = { version = "0.8" } rocket_okapi = { path = "../../rocket-okapi", features = ["swagger", "rapidoc", "rocket_dyn_templates"] } serde = "1.0" -rocket_dyn_templates = {version = "=0.1.0-rc.4", features = ["handlebars"]} +rocket_dyn_templates = {version = "=0.1.0", features = ["handlebars"]} handlebars = "4.3.0" \ No newline at end of file diff --git a/examples/json-web-api/Cargo.toml b/examples/json-web-api/Cargo.toml index 08e62907..4aae3834 100644 --- a/examples/json-web-api/Cargo.toml +++ b/examples/json-web-api/Cargo.toml @@ -5,6 +5,6 @@ authors = ["Graham Esau "] edition = "2018" [dependencies] -rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json"] } +rocket = { version = "=0.5.0", default-features = false, features = ["json"] } rocket_okapi = { path = "../../rocket-okapi", features = ["swagger", "rapidoc"] } serde = "1.0" diff --git a/examples/openapi_attributes/Cargo.toml b/examples/openapi_attributes/Cargo.toml index 1fa83dad..f507395b 100644 --- a/examples/openapi_attributes/Cargo.toml +++ b/examples/openapi_attributes/Cargo.toml @@ -5,6 +5,6 @@ authors = ["Ralph Bisschops "] edition = "2021" [dependencies] -rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json"] } +rocket = { version = "=0.5.0", default-features = false, features = ["json"] } rocket_okapi = { path = "../../rocket-okapi", features = ["swagger", "rapidoc"] } serde = "1.0" diff --git a/examples/raw_identifiers/Cargo.toml b/examples/raw_identifiers/Cargo.toml index eafb6171..717e676d 100644 --- a/examples/raw_identifiers/Cargo.toml +++ b/examples/raw_identifiers/Cargo.toml @@ -7,5 +7,5 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json"] } +rocket = { version = "=0.5.0", default-features = false, features = ["json"] } rocket_okapi = { path = "../../rocket-okapi", features = ["rapidoc", "swagger"] } \ No newline at end of file diff --git a/examples/secure_request_guard/Cargo.toml b/examples/secure_request_guard/Cargo.toml index 12f4585e..7656d1be 100644 --- a/examples/secure_request_guard/Cargo.toml +++ b/examples/secure_request_guard/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Kristoffer Ödmark ", "Ralph Bisschop edition = "2018" [dependencies] -rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json", "secrets"] } +rocket = { version = "=0.5.0", default-features = false, features = ["json", "secrets"] } rocket_okapi = { path = "../../rocket-okapi", features = ["rapidoc", "swagger", "secrets"] } serde = "1.0" tokio = "1.6" diff --git a/examples/special-types/Cargo.toml b/examples/special-types/Cargo.toml index cde936bd..16e6c265 100644 --- a/examples/special-types/Cargo.toml +++ b/examples/special-types/Cargo.toml @@ -5,6 +5,6 @@ authors = ["Ralph Bisschops "] edition = "2018" [dependencies] -rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json"] } +rocket = { version = "=0.5.0", default-features = false, features = ["json"] } rocket_okapi = { path = "../../rocket-okapi", features = ["swagger", "rapidoc"] } serde = "1.0" diff --git a/examples/streams/Cargo.toml b/examples/streams/Cargo.toml index 64801a37..db8aeb33 100644 --- a/examples/streams/Cargo.toml +++ b/examples/streams/Cargo.toml @@ -5,6 +5,6 @@ authors = ["Ralph Bisschops "] edition = "2018" [dependencies] -rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json"] } +rocket = { version = "=0.5.0", default-features = false, features = ["json"] } rocket_okapi = { path = "../../rocket-okapi", features = ["swagger", "rapidoc"] } serde = "1.0" diff --git a/examples/uuid/Cargo.toml b/examples/uuid/Cargo.toml index e9b7b0fb..d3a4d6ef 100644 --- a/examples/uuid/Cargo.toml +++ b/examples/uuid/Cargo.toml @@ -9,7 +9,7 @@ authors = [ edition = "2018" [dependencies] -rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json", "uuid"] } +rocket = { version = "=0.5.0", default-features = false, features = ["json", "uuid"] } schemars = { version = "0.8", features = ["uuid1"] } rocket_okapi = { path = "../../rocket-okapi", features = ["swagger", "rapidoc", "uuid"] } serde = "1.0" diff --git a/rocket-okapi-codegen/Cargo.toml b/rocket-okapi-codegen/Cargo.toml index e42bf0d6..61407298 100644 --- a/rocket-okapi-codegen/Cargo.toml +++ b/rocket-okapi-codegen/Cargo.toml @@ -14,7 +14,7 @@ categories = ["web-programming"] proc-macro = true [dependencies] -rocket_http = { version = "=0.5.0-rc.4" } +rocket_http = { version = "=0.5.0" } darling = "0.13" syn = "1.0" proc-macro2 = "1.0" diff --git a/rocket-okapi/Cargo.toml b/rocket-okapi/Cargo.toml index 966d6bb1..126065ee 100644 --- a/rocket-okapi/Cargo.toml +++ b/rocket-okapi/Cargo.toml @@ -11,7 +11,7 @@ keywords = ["rust", "openapi", "swagger", "rocket"] categories = ["web-programming"] [dependencies] -rocket = { version = "=0.5.0-rc.4", default-features = false, features = ["json"] } +rocket = { version = "=0.5.0", default-features = false, features = ["json"] } schemars = { version = "0.8.10" } okapi = { version = "0.7.0-rc.1", path = "../okapi" } rocket_okapi_codegen = { version = "=0.8.0-rc.3", path = "../rocket-okapi-codegen" } @@ -23,8 +23,8 @@ log = "0.4" # time = { version = "0.2.27" } # Rocket dependency but not re-exported either = "1" -rocket_dyn_templates = { version = "=0.1.0-rc.4", optional = true } -rocket_db_pools = { version = "=0.1.0-rc.4", optional = true } +rocket_dyn_templates = { version = "=0.1.0", optional = true } +rocket_db_pools = { version = "=0.1.0", optional = true } [dev-dependencies] rocket_sync_db_pools = { version = "0.1.0-rc.3", features = ["diesel_sqlite_pool"] }