mirror of
https://github.com/actix/examples
synced 2025-06-28 09:50:36 +02:00
update deps
This commit is contained in:
@ -6,7 +6,7 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
actix-rt = "1.0.0"
|
||||
actix-web = "2.0.0-rc"
|
||||
actix-web = "2.0.0"
|
||||
actix-cors = "0.2.0"
|
||||
serde = "1.0"
|
||||
serde_derive = "1.0"
|
||||
|
@ -26,6 +26,6 @@ async fn main() -> std::io::Result<()> {
|
||||
.service(web::resource("/user/info").route(web::post().to(user::info)))
|
||||
})
|
||||
.bind("127.0.0.1:8000")?
|
||||
.start()
|
||||
.run()
|
||||
.await
|
||||
}
|
||||
|
Reference in New Issue
Block a user