1
0
mirror of https://github.com/actix/examples synced 2024-11-23 14:31:07 +01:00

rename nested routing binary

This commit is contained in:
Rob Ede 2022-02-18 02:02:44 +00:00
parent cc3d356209
commit 74ee6ae707
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
6 changed files with 14 additions and 14 deletions

20
Cargo.lock generated
View File

@ -912,16 +912,6 @@ dependencies = [
"serde_json", "serde_json",
] ]
[[package]]
name = "async_ex2"
version = "1.0.0"
dependencies = [
"actix-web",
"env_logger",
"serde 1.0.136",
"serde_json",
]
[[package]] [[package]]
name = "async_pg" name = "async_pg"
version = "1.0.0" version = "1.0.0"
@ -3418,6 +3408,16 @@ dependencies = [
"tempfile", "tempfile",
] ]
[[package]]
name = "nested-routing"
version = "1.0.0"
dependencies = [
"actix-web",
"env_logger",
"serde 1.0.136",
"serde_json",
]
[[package]] [[package]]
name = "net2" name = "net2"
version = "0.2.37" version = "0.2.37"

View File

@ -1,5 +1,5 @@
[package] [package]
name = "async_ex2" name = "nested-routing"
version = "1.0.0" version = "1.0.0"
edition = "2021" edition = "2021"

View File

@ -1,6 +1,6 @@
use actix_web::{middleware, App, HttpServer}; use actix_web::{middleware, App, HttpServer};
use async_ex2::appconfig::config_app; use nested_routing::app_config::config_app;
#[actix_web::main] #[actix_web::main]
async fn main() -> std::io::Result<()> { async fn main() -> std::io::Result<()> {

View File

@ -24,7 +24,7 @@ pub async fn remove_product(_id: web::Path<String>) -> Result<HttpResponse, Erro
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use crate::appconfig::config_app; use crate::app_config::config_app;
use actix_web::dev::Service; use actix_web::dev::Service;
use actix_web::{ use actix_web::{
http::{header, StatusCode}, http::{header, StatusCode},

View File

@ -1,3 +1,3 @@
pub mod appconfig; pub mod app_config;
pub mod common; pub mod common;
pub mod handlers; pub mod handlers;