diff --git a/example-projects/actix-web-example/Cargo.toml b/example-projects/actix-web-example/Cargo.toml index aa30576..34668a5 100644 --- a/example-projects/actix-web-example/Cargo.toml +++ b/example-projects/actix-web-example/Cargo.toml @@ -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" diff --git a/example-projects/actix-web-example/src/main.rs b/example-projects/actix-web-example/src/main.rs index 7422fe0..1c1f551 100644 --- a/example-projects/actix-web-example/src/main.rs +++ b/example-projects/actix-web-example/src/main.rs @@ -28,7 +28,7 @@ async fn get_event() -> Result { .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();