From b3616e1aa58092b58253ca8d98728058b881c80a Mon Sep 17 00:00:00 2001 From: jonaro00 <54029719+jonaro00@users.noreply.github.com> Date: Tue, 2 Apr 2024 16:32:43 +0200 Subject: [PATCH] fix: ntex references --- codegen/src/lib.rs | 1 + scripts/patches.toml | 3 ++- services/shuttle-ntex/Cargo.toml | 9 +++------ 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/codegen/src/lib.rs b/codegen/src/lib.rs index 39d7aec08..dcbda7e2e 100644 --- a/codegen/src/lib.rs +++ b/codegen/src/lib.rs @@ -23,6 +23,7 @@ mod shuttle_main; /// | ----------------- | -------------------------------------------------------------- | -------------------------------------------------------------------------------- | ---------- | --------------------------------------------------------------------------------------- | /// | `ShuttleActixWeb` | [shuttle-actix-web](https://crates.io/crates/shuttle-actix-web)| [actix-web](https://docs.rs/actix-web/4.3) | 4.3 | [GitHub](https://github.com/shuttle-hq/shuttle-examples/tree/main/actix-web/hello-world)| /// | `ShuttleAxum` | [shuttle-axum](https://crates.io/crates/shuttle-axum) | [axum](https://docs.rs/axum/0.7) | 0.7 | [GitHub](https://github.com/shuttle-hq/shuttle-examples/tree/main/axum/hello-world) | +/// | `ShuttleNtex` | [shuttle-ntex](https://crates.io/crates/shuttle-ntex) | [ntex](https://docs.rs/ntex/1.2) | 1.2 | [GitHub](https://github.com/shuttle-hq/shuttle-examples/tree/main/ntex/hello-world) | /// | `ShuttlePoem` | [shuttle-poem](https://crates.io/crates/shuttle-poem) | [poem](https://docs.rs/poem/2.0) | 2.0 | [GitHub](https://github.com/shuttle-hq/shuttle-examples/tree/main/poem/hello-world) | /// | `ShuttleRocket` | [shuttle-rocket](https://crates.io/crates/shuttle-rocket) | [rocket](https://docs.rs/rocket/0.5) | 0.5 | [GitHub](https://github.com/shuttle-hq/shuttle-examples/tree/main/rocket/hello-world) | /// | `ShuttleSalvo` | [shuttle-salvo](https://crates.io/crates/shuttle-salvo) | [salvo](https://docs.rs/salvo/0.63) | 0.63 | [GitHub](https://github.com/shuttle-hq/shuttle-examples/tree/main/salvo/hello-world) | diff --git a/scripts/patches.toml b/scripts/patches.toml index b94c85fba..6367e17bd 100644 --- a/scripts/patches.toml +++ b/scripts/patches.toml @@ -12,8 +12,9 @@ shuttle-qdrant = { path = "BASE/resources/qdrant" } shuttle-shared-db = { path = "BASE/resources/shared-db" } shuttle-turso = { path = "BASE/resources/turso" } -shuttle-axum = { path = "BASE/services/shuttle-axum" } shuttle-actix-web = { path = "BASE/services/shuttle-actix-web" } +shuttle-axum = { path = "BASE/services/shuttle-axum" } +shuttle-ntex = { path = "BASE/services/shuttle-ntex" } shuttle-poem = { path = "BASE/services/shuttle-poem" } shuttle-rocket = { path = "BASE/services/shuttle-rocket" } shuttle-salvo = { path = "BASE/services/shuttle-salvo" } diff --git a/services/shuttle-ntex/Cargo.toml b/services/shuttle-ntex/Cargo.toml index c82aa1244..27b14991a 100644 --- a/services/shuttle-ntex/Cargo.toml +++ b/services/shuttle-ntex/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shuttle-ntex" -version = "0.1.0" +version = "0.43.0" edition = "2021" license = "Apache-2.0" description = "Service implementation to run a Ntex webserver on shuttle" @@ -9,9 +9,6 @@ keywords = ["shuttle-service", "ntex"] [workspace] [dependencies] -ntex = { version = "1.2.1"} -shuttle-runtime = { path = "../../runtime", version = "0.43.0", default-features = false } +ntex = { version = "1.2.1", features = ["tokio"] } num_cpus = "1.16.0" - -[dev-dependencies] -tokio = { version = "1.26.0", features = ["macros", "rt-multi-thread"] } +shuttle-runtime = { path = "../../runtime", version = "0.43.0", default-features = false }