diff --git a/Cargo.lock b/Cargo.lock index ac1695c..6d4d05d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -908,6 +908,25 @@ version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "44feda355f4159a7c757171a77de25daf6411e217b4cabd03bd6650690468126" +[[package]] +name = "include_dir" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "923d117408f1e49d914f1a379a309cffe4f18c05cf4e3d12e613a15fc81bd0dd" +dependencies = [ + "include_dir_macros", +] + +[[package]] +name = "include_dir_macros" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cab85a7ed0bd5f0e76d93846e0147172bed2e2d3f859bcc33a8d9699cad1a75" +dependencies = [ + "proc-macro2", + "quote", +] + [[package]] name = "indexmap" version = "2.3.0" @@ -1117,6 +1136,12 @@ version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" +[[package]] +name = "memo-map" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38d1115007560874e373613744c6fba374c17688327a71c1476d1a5954cc857b" + [[package]] name = "memoffset" version = "0.6.5" @@ -1147,9 +1172,17 @@ version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f4bf71af278c578cbcc91d0b1ff092910208bc86f7b3750364642bd424e3dcd3" dependencies = [ + "memo-map", + "self_cell", "serde", ] +[[package]] +name = "minijinja-embed" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f1dccf45ab542f5a151e0f22bcd08cdf37eee6c0b7d58d97d9b128735bd8e6e" + [[package]] name = "minimal-lexical" version = "0.2.1" @@ -1459,9 +1492,11 @@ dependencies = [ "criterion", "epd-waveshare", "image", + "include_dir", "linux-embedded-hal", "mime", "minijinja", + "minijinja-embed", "palette", "rayon", "rusqlite", @@ -1808,6 +1843,12 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" +[[package]] +name = "self_cell" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d369a96f978623eb3dc28807c4852d6cc617fed53da5d3c400feff1ef34a714a" + [[package]] name = "serde" version = "1.0.204" diff --git a/Cargo.toml b/Cargo.toml index 153f925..7de574c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,9 +12,11 @@ axum-macros = "0.4.1" clap = { version = "4.5.7", features = ["derive"] } epd-waveshare = { git = "https://github.com/caemor/epd-waveshare.git"} image = "0.25.1" +include_dir = "0.7.4" linux-embedded-hal = { version = "0.4.0"} mime = "0.3.17" -minijinja = "2.1.0" +minijinja = { version = "2.1.0", features = ["loader"] } +minijinja-embed = "2.1.1" palette = "0.7.6" rayon = "1.10.0" rusqlite = { version = "0.32.1", features = ["bundled"] } diff --git a/src/main.rs b/src/main.rs index 42912cb..3da3e52 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,6 +2,7 @@ pub mod api; pub mod display; pub mod dither; pub mod eink; +pub mod app; use serde::Deserialize; use tower_http::trace::TraceLayer; diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..abb64b8 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,21 @@ + + +
+ + ++ My first website with Bulma! +
+