Use ructe static file support to serve static files with hashes and caching

This commit is contained in:
Valentin Brandl
2022-08-21 13:47:07 +02:00
parent c93c83f004
commit 391bb6faeb
6 changed files with 35 additions and 11 deletions

View File

@ -7,8 +7,6 @@ pub(crate) const VERSION_INFO: VersionInfo = VersionInfo {
commit: env!("VERGEN_GIT_SHA_SHORT"),
version: env!("CARGO_PKG_VERSION"),
};
pub(crate) const CSS: &str = include_str!("../static/tacit-css.min.css");
pub(crate) const FAVICON: &[u8] = include_bytes!("../static/favicon32.png");
lazy_static! {
pub(crate) static ref CLIENT: reqwest::Client = reqwest::Client::new();