aboutsummaryrefslogtreecommitdiff
path: root/server/src/main.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-06-24 23:50:22 +0200
committermetamuffin <metamuffin@disroot.org>2023-06-24 23:50:22 +0200
commitb408b2ebcafddde5a93a3f708d815fcf740607fb (patch)
tree562ff7b45aa973ef91f7d9ba22f3c4e8dc957363 /server/src/main.rs
parentbdbb7c8b092e2e59d36ad7e979fbe9ac0a2fcff1 (diff)
downloadkeks-meet-b408b2ebcafddde5a93a3f708d815fcf740607fb.tar
keks-meet-b408b2ebcafddde5a93a3f708d815fcf740607fb.tar.bz2
keks-meet-b408b2ebcafddde5a93a3f708d815fcf740607fb.tar.zst
embed sass without debug_assertions
Diffstat (limited to 'server/src/main.rs')
-rw-r--r--server/src/main.rs5
1 files changed, 3 insertions, 2 deletions
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 <metamuffin@disroot.org>
*/
+#![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(