I am not completely sure, but I think pretty much all frameworks in Rust have complex dependencies and codebase not optimized for fast compile times. You could check out Axum [1], at the first glance seems similar to actix [2]. Both use tokio which is by itself pretty big I think.
Folks at makepad poured enormous effort in keeping dependency graph minimal.
[1] https://github.com/tokio-rs/axum/
[2] https://github.com/actix/actix-web/