mirror of
https://github.com/actix/examples
synced 2025-06-28 18:00:37 +02:00
upgrade to 2.0 alpha.3
This commit is contained in:
@ -1,13 +1,14 @@
|
||||
[package]
|
||||
name = "static_index"
|
||||
version = "0.1.0"
|
||||
version = "2.0.0"
|
||||
authors = ["Jose Marinez <digeratus@gmail.com>"]
|
||||
workspace = ".."
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.1"
|
||||
env_logger = "0.5"
|
||||
futures = "0.3.1"
|
||||
env_logger = "0.6"
|
||||
|
||||
actix-web = "1.0.0"
|
||||
actix-files = "0.1.1"
|
||||
actix-web = "2.0.0-alpha.3"
|
||||
actix-files = "0.2.0-alpha.3"
|
||||
actix-rt = "1.0.0-alpha.3"
|
||||
|
@ -1,7 +1,8 @@
|
||||
use actix_files as fs;
|
||||
use actix_web::{middleware, App, HttpServer};
|
||||
|
||||
fn main() -> std::io::Result<()> {
|
||||
#[actix_rt::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
std::env::set_var("RUST_LOG", "actix_web=info");
|
||||
env_logger::init();
|
||||
|
||||
@ -15,5 +16,6 @@ fn main() -> std::io::Result<()> {
|
||||
)
|
||||
})
|
||||
.bind("127.0.0.1:8080")?
|
||||
.run()
|
||||
.start()
|
||||
.await
|
||||
}
|
||||
|
Reference in New Issue
Block a user