From 74ee6ae70754b63cc5f39900cb156e4abdca69d1 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Fri, 18 Feb 2022 02:02:44 +0000 Subject: [PATCH] rename nested routing binary --- Cargo.lock | 20 +++++++++---------- basics/nested-routing/Cargo.toml | 2 +- .../src/{appconfig.rs => app_config.rs} | 0 basics/nested-routing/src/bin/main.rs | 2 +- .../nested-routing/src/handlers/products.rs | 2 +- basics/nested-routing/src/lib.rs | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) rename basics/nested-routing/src/{appconfig.rs => app_config.rs} (100%) diff --git a/Cargo.lock b/Cargo.lock index c87a07a..9212b4d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -912,16 +912,6 @@ dependencies = [ "serde_json", ] -[[package]] -name = "async_ex2" -version = "1.0.0" -dependencies = [ - "actix-web", - "env_logger", - "serde 1.0.136", - "serde_json", -] - [[package]] name = "async_pg" version = "1.0.0" @@ -3418,6 +3408,16 @@ dependencies = [ "tempfile", ] +[[package]] +name = "nested-routing" +version = "1.0.0" +dependencies = [ + "actix-web", + "env_logger", + "serde 1.0.136", + "serde_json", +] + [[package]] name = "net2" version = "0.2.37" diff --git a/basics/nested-routing/Cargo.toml b/basics/nested-routing/Cargo.toml index 0c37568..ccdd2bc 100644 --- a/basics/nested-routing/Cargo.toml +++ b/basics/nested-routing/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "async_ex2" +name = "nested-routing" version = "1.0.0" edition = "2021" diff --git a/basics/nested-routing/src/appconfig.rs b/basics/nested-routing/src/app_config.rs similarity index 100% rename from basics/nested-routing/src/appconfig.rs rename to basics/nested-routing/src/app_config.rs diff --git a/basics/nested-routing/src/bin/main.rs b/basics/nested-routing/src/bin/main.rs index 32f699a..e339387 100644 --- a/basics/nested-routing/src/bin/main.rs +++ b/basics/nested-routing/src/bin/main.rs @@ -1,6 +1,6 @@ use actix_web::{middleware, App, HttpServer}; -use async_ex2::appconfig::config_app; +use nested_routing::app_config::config_app; #[actix_web::main] async fn main() -> std::io::Result<()> { diff --git a/basics/nested-routing/src/handlers/products.rs b/basics/nested-routing/src/handlers/products.rs index 6738552..3dd3c94 100644 --- a/basics/nested-routing/src/handlers/products.rs +++ b/basics/nested-routing/src/handlers/products.rs @@ -24,7 +24,7 @@ pub async fn remove_product(_id: web::Path) -> Result