mirror of
https://github.com/actix/examples
synced 2025-06-28 18:00:37 +02:00
upgrade example to actix-web 0.7
This commit is contained in:
@ -6,8 +6,10 @@ workspace = "../"
|
||||
|
||||
[dependencies]
|
||||
env_logger = "0.5"
|
||||
actix = "0.5"
|
||||
actix-web = "^0.6"
|
||||
|
||||
actix = "0.7"
|
||||
#actix-web = "^0.7"
|
||||
actix-web = { git = "https://github.com/actix/actix-web.git" }
|
||||
|
||||
futures = "0.1"
|
||||
uuid = { version = "0.5", features = ["serde", "v4"] }
|
||||
|
@ -35,7 +35,7 @@ use db::{CreateUser, DbExecutor};
|
||||
|
||||
/// State with DbExecutor address
|
||||
struct AppState {
|
||||
db: Addr<Syn, DbExecutor>,
|
||||
db: Addr<DbExecutor>,
|
||||
}
|
||||
|
||||
/// Async request handler
|
||||
|
Reference in New Issue
Block a user