From ea058a851098bf81cb645249e02d26a8c253db90 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 8 May 2022 21:47:45 +0200 Subject: ref: Add embded rust and router - Use embed rust to load and resolve file from `content/post` folder, so the whole process is a bit more dynamic. - Add router to to resolve the path. It is the first step to try to get the code a bit cleaner. --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 093a4d3..de00d11 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,7 @@ sailfish = "0.4.0" hyper = { version = "0.14", features = ["full"] } tokio = { version = "1", features = ["full"] } regex = "1.5" +rust-embed="6.4.0" [profile.release] opt-level = 'z' @@ -15,3 +16,7 @@ lto = true codegen-units = 1 panic = 'abort' strip = true + +[lib] +name="router" +path="src/router.rs" -- cgit v1.2.3