From b408b2ebcafddde5a93a3f708d815fcf740607fb Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 24 Jun 2023 23:50:22 +0200 Subject: embed sass without debug_assertions --- server/src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server/src/main.rs') diff --git a/server/src/main.rs b/server/src/main.rs index 431d668..57ec4df 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -3,12 +3,13 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2022 metamuffin */ +#![feature(lazy_cell)] pub mod assets; pub mod config; pub mod protocol; pub mod room; -use assets::css_bundle; +use assets::css; use config::{ClientAppearanceConfig, ClientConfig}; use hyper::{header, StatusCode}; use listenfd::ListenFd; @@ -70,7 +71,7 @@ async fn run() { warp::reply::with_header(client_config_css.clone(), "content-type", "text/css") }); let css: _ = warp::path!("style.css") - .map(move || warp::reply::with_header(css_bundle(), "content-type", "text/css")); + .map(move || warp::reply::with_header(css(), "content-type", "text/css")); let favicon: _ = warp::path!("favicon.ico").map(|| ""); let old_format_redirect: _ = warp::path!("room" / String).map(|rsecret| { reply::with_header( -- cgit v1.2.3-70-g09d2