mirror of
https://github.com/actix/examples
synced 2025-06-28 09:50:36 +02:00
upgrade example to actix-web 0.7
This commit is contained in:
@ -10,8 +10,10 @@ serde_derive = "1.0"
|
||||
serde_json = "1.0"
|
||||
http = "0.1"
|
||||
|
||||
actix = "0.5"
|
||||
actix-web = "^0.6"
|
||||
actix = "0.7"
|
||||
#actix-web = "^0.7"
|
||||
actix-web = { git = "https://github.com/actix/actix-web.git" }
|
||||
|
||||
dotenv = "0.10"
|
||||
env_logger = "0.5"
|
||||
futures = "0.1"
|
||||
|
@ -8,7 +8,10 @@ extern crate serde;
|
||||
extern crate serde_json;
|
||||
|
||||
use actix_web::{
|
||||
http::{header, Method}, middleware, middleware::cors::Cors, server, App,
|
||||
http::{header, Method},
|
||||
middleware,
|
||||
middleware::cors::Cors,
|
||||
server, App,
|
||||
};
|
||||
use std::env;
|
||||
|
||||
|
Reference in New Issue
Block a user