From c434c45380fc6926a5525f97cc4df98a9b3cda94 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 15 May 2022 16:05:36 +0200 Subject: feat: Add actix http server option The project has two target bin: actix and hyper. - Actix is a lot more capable, feature complete and can handle more request with lower response time but has a bigger memory, size footprint. - Hyper is simpler less capable mure with a much smaller footprint. So by default I'll keep using hyper. --- Cargo.toml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index a241371..886081f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ tokio = { version = "1", features = ["full"] } regex = "1.5" rust-embed = "6.4.0" chrono = "0.4" +actix-web = "4" [profile.release] opt-level = 'z' @@ -21,3 +22,10 @@ strip = true [lib] name="macroblog" path="src/lib.rs" + +[[bin]] +name = "hyper" + + +[[bin]] +name = "actix" -- cgit v1.2.3