Remove actix_rt dependency in actix_web example (#102)

Signed-off-by: tottoto <tottotodev@gmail.com>
This commit is contained in:
tottoto 2020-11-06 17:35:39 +09:00 committed by GitHub
parent 5e5aca54be
commit 579665f226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,6 @@ edition = "2018"
cloudevents-sdk = { path = "../.." }
cloudevents-sdk-actix-web = { path = "../../cloudevents-sdk-actix-web" }
actix-web = "^3"
actix-rt = "1"
actix-cors = "^0.5"
lazy_static = "1.4.0"
bytes = "^0.5"

View File

@ -28,7 +28,7 @@ async fn get_event() -> Result<HttpResponse, actix_web::Error> {
.await?)
}
#[actix_rt::main]
#[actix_web::main]
async fn main() -> std::io::Result<()> {
std::env::set_var("RUST_LOG", "actix_server=info,actix_web=info");
env_logger::init();