From e0a664d50ea2b715497908b03ad03f3f0fef505f Mon Sep 17 00:00:00 2001 From: Damien Date: Thu, 26 May 2022 17:15:34 +0100 Subject: [PATCH] chore: bump 0.3.0 --- Cargo.lock | 8 ++++---- api/Cargo.toml | 4 ++-- cargo-shuttle/Cargo.toml | 4 ++-- codegen/Cargo.toml | 2 +- common/Cargo.toml | 2 +- examples/axum/hello-world/Cargo.toml | 2 +- examples/rocket/authentication/Cargo.toml | 2 +- examples/rocket/hello-world/Cargo.toml | 2 +- examples/rocket/postgres/Cargo.toml | 2 +- examples/tide/hello-world/Cargo.toml | 2 +- examples/tower/hello-world/Cargo.toml | 4 ++-- examples/url-shortener/Cargo.toml | 2 +- service/Cargo.toml | 8 ++++---- service/src/lib.rs | 6 +++++- 14 files changed, 27 insertions(+), 23 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e80de6074..2ccbc1f68 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -668,7 +668,7 @@ dependencies = [ [[package]] name = "cargo-shuttle" -version = "0.2.6" +version = "0.3.0" dependencies = [ "anyhow", "assert_cmd", @@ -3293,7 +3293,7 @@ checksum = "45bb67a18fa91266cc7807181f62f9178a6873bfad7dc788c42e6430db40184f" [[package]] name = "shuttle-codegen" -version = "0.2.6" +version = "0.3.0" dependencies = [ "pretty_assertions", "proc-macro2", @@ -3303,7 +3303,7 @@ dependencies = [ [[package]] name = "shuttle-common" -version = "0.2.6" +version = "0.3.0" dependencies = [ "anyhow", "chrono", @@ -3317,7 +3317,7 @@ dependencies = [ [[package]] name = "shuttle-service" -version = "0.2.6" +version = "0.3.0" dependencies = [ "anyhow", "async-trait", diff --git a/api/Cargo.toml b/api/Cargo.toml index aed5926f8..2dd3ad215 100644 --- a/api/Cargo.toml +++ b/api/Cargo.toml @@ -29,5 +29,5 @@ toml = "0.5.8" base64 = "0.13.0" rand = "0.8.5" -shuttle-common = { version = "0.2.6", path = "../common" } -shuttle-service = { version = "0.2.6", path = "../service", features = [ "loader", "secrets" ] } +shuttle-common = { version = "0.3.0", path = "../common" } +shuttle-service = { version = "0.3.0", path = "../service", features = [ "loader", "secrets" ] } diff --git a/cargo-shuttle/Cargo.toml b/cargo-shuttle/Cargo.toml index bdeaa4524..587a576cc 100644 --- a/cargo-shuttle/Cargo.toml +++ b/cargo-shuttle/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cargo-shuttle" -version = "0.2.6" +version = "0.3.0" edition = "2021" license = "Apache-2.0" description = "A cargo command for the shuttle platform (https://www.shuttle.rs/)" @@ -25,7 +25,7 @@ structopt = "0.3.26" cargo_metadata = "0.14.2" webbrowser = "0.6" -shuttle-common = { version = "0.2.6", path = "../common" } +shuttle-common = { version = "0.3.0", path = "../common" } [dev-dependencies] assert_cmd = "2.0.4" diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 841c0338c..7858b1609 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shuttle-codegen" -version = "0.2.6" +version = "0.3.0" edition = "2021" license = "Apache-2.0" description = "Proc-macro code generator for the shuttle.rs service" diff --git a/common/Cargo.toml b/common/Cargo.toml index 18e6a08ea..1003ab06d 100644 --- a/common/Cargo.toml +++ b/common/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shuttle-common" -version = "0.2.6" +version = "0.3.0" edition = "2021" license = "Apache-2.0" description = "Common library for the shuttle platform (https://www.shuttle.rs/)" diff --git a/examples/axum/hello-world/Cargo.toml b/examples/axum/hello-world/Cargo.toml index 915ce256c..f5bfc66f3 100644 --- a/examples/axum/hello-world/Cargo.toml +++ b/examples/axum/hello-world/Cargo.toml @@ -10,5 +10,5 @@ crate-type = ["cdylib"] [dependencies] axum = "0.5" -shuttle-service = { version = "0.2", features = ["web-axum"] } +shuttle-service = { version = "0.3", features = ["web-axum"] } sync_wrapper = "0.1" diff --git a/examples/rocket/authentication/Cargo.toml b/examples/rocket/authentication/Cargo.toml index 4f3a358e0..5076d4e95 100644 --- a/examples/rocket/authentication/Cargo.toml +++ b/examples/rocket/authentication/Cargo.toml @@ -14,4 +14,4 @@ jsonwebtoken = {version = "8", default-features = false } lazy_static = "1.4" rocket = {version = "0.5.0-rc.1", features = ["json"] } serde = {version = "1.0", features = ["derive"] } -shuttle-service = { version = "0.2", features = ["web-rocket"] } +shuttle-service = { version = "0.3", features = ["web-rocket"] } diff --git a/examples/rocket/hello-world/Cargo.toml b/examples/rocket/hello-world/Cargo.toml index dd6719022..0d7aa5301 100644 --- a/examples/rocket/hello-world/Cargo.toml +++ b/examples/rocket/hello-world/Cargo.toml @@ -10,4 +10,4 @@ crate-type = ["cdylib"] [dependencies] rocket = "0.5.0-rc.1" -shuttle-service = { version = "0.2", features = ["web-rocket"] } +shuttle-service = { version = "0.3", features = ["web-rocket"] } diff --git a/examples/rocket/postgres/Cargo.toml b/examples/rocket/postgres/Cargo.toml index 7453449fa..09a347ba9 100644 --- a/examples/rocket/postgres/Cargo.toml +++ b/examples/rocket/postgres/Cargo.toml @@ -12,4 +12,4 @@ crate-type = ["cdylib"] rocket = { version = "0.5.0-rc.1", features = ["json"] } serde = "1.0" sqlx = { version = "0.5", features = ["runtime-tokio-native-tls", "postgres"] } -shuttle-service = { version = "0.2", features = ["sqlx-postgres", "secrets", "web-rocket"] } +shuttle-service = { version = "0.3", features = ["sqlx-postgres", "secrets", "web-rocket"] } diff --git a/examples/tide/hello-world/Cargo.toml b/examples/tide/hello-world/Cargo.toml index 41f9c15a4..573d5c231 100644 --- a/examples/tide/hello-world/Cargo.toml +++ b/examples/tide/hello-world/Cargo.toml @@ -10,4 +10,4 @@ crate-type = ["cdylib"] [dependencies] tide = "0.16.0" -shuttle-service = { version = "0.2.7", features = ["web-tide"] } +shuttle-service = { version = "0.3", features = ["web-tide"] } diff --git a/examples/tower/hello-world/Cargo.toml b/examples/tower/hello-world/Cargo.toml index 0714f27b2..d2fbf3ff6 100644 --- a/examples/tower/hello-world/Cargo.toml +++ b/examples/tower/hello-world/Cargo.toml @@ -9,6 +9,6 @@ crate-type = ["cdylib"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -shuttle-service = { version = "0.2", features = ["web-tower"] } +shuttle-service = { version = "0.3", features = ["web-tower"] } tower = { version = "0.4", features = ["full"] } -hyper = { version = "0.14", features = ["full"] } \ No newline at end of file +hyper = { version = "0.14", features = ["full"] } diff --git a/examples/url-shortener/Cargo.toml b/examples/url-shortener/Cargo.toml index 29031fcdd..5b5352227 100644 --- a/examples/url-shortener/Cargo.toml +++ b/examples/url-shortener/Cargo.toml @@ -12,6 +12,6 @@ crate-type = ["cdylib"] rocket = { version = "0.5.0-rc.1", features = ["json"] } serde = "1.0" sqlx = { version = "0.5", features = ["runtime-tokio-native-tls", "postgres"] } -shuttle-service = { version = "0.2", features = ["sqlx-postgres", "web-rocket"] } +shuttle-service = { version = "0.3", features = ["sqlx-postgres", "web-rocket"] } nanoid = "0.4" url ="2.2" diff --git a/service/Cargo.toml b/service/Cargo.toml index 5bf9d01a1..99f6baa67 100644 --- a/service/Cargo.toml +++ b/service/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shuttle-service" -version = "0.2.6" +version = "0.3.0" edition = "2021" license = "Apache-2.0" description = "Service traits and macros to deploy on the shuttle platform (https://www.shuttle.rs/)" @@ -26,8 +26,8 @@ thiserror = "1.0" lazy_static = "1.4" regex = "1.5" -shuttle-codegen = { version = "0.2.6", path = "../codegen", optional = true } -shuttle-common = { version = "0.2.6", path = "../common" } +shuttle-codegen = { version = "0.3.0", path = "../codegen", optional = true } +shuttle-common = { version = "0.3.0", path = "../common" } [dev-dependencies] portpicker = "0.1.1" @@ -46,4 +46,4 @@ secrets = ["sqlx-postgres"] web-axum = ["axum", "sync_wrapper"] web-rocket = ["rocket"] web-tide = ["tide"] -web-tower = ["tower", "hyper"] \ No newline at end of file +web-tower = ["tower", "hyper"] diff --git a/service/src/lib.rs b/service/src/lib.rs index ce551ee0c..bd48bec22 100644 --- a/service/src/lib.rs +++ b/service/src/lib.rs @@ -471,7 +471,11 @@ where T::Error: std::error::Error + Send + Sync, T::Future: std::future::Future + Send + Sync, { - async fn build(&mut self, factory: &mut dyn Factory, logger: logger::Logger) -> Result<(), Error> { + async fn build( + &mut self, + factory: &mut dyn Factory, + logger: logger::Logger, + ) -> Result<(), Error> { if let Some(builder) = self.builder.take() { let tower = builder(factory, &self.runtime, logger).await?;