mirror of
https://github.com/actix/examples
synced 2025-06-28 09:50:36 +02:00
v3 examples (#364)
This commit is contained in:
@ -3,10 +3,8 @@ name = "openssl-example"
|
||||
version = "0.2.0"
|
||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||
edition = "2018"
|
||||
workspace = ".."
|
||||
|
||||
[dependencies]
|
||||
actix-rt = "1.0.0"
|
||||
actix-web = { version = "2.0.0", features = ["openssl"] }
|
||||
actix-web = { version = "3", features = ["openssl"] }
|
||||
env_logger = "0.7"
|
||||
openssl = "0.10"
|
||||
|
@ -11,7 +11,7 @@ async fn index(req: HttpRequest) -> Result<HttpResponse, Error> {
|
||||
.body("Welcome!"))
|
||||
}
|
||||
|
||||
#[actix_rt::main]
|
||||
#[actix_web::main]
|
||||
async fn main() -> io::Result<()> {
|
||||
std::env::set_var("RUST_LOG", "actix_web=debug");
|
||||
env_logger::init();
|
||||
|
Reference in New Issue
Block a user