aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorXe Iaso <me@christine.website>2022-09-20 21:05:44 -0400
committerXe Iaso <me@christine.website>2022-09-20 21:05:44 -0400
commit67005bc59dd918eadcbd9c7c9285aed0c3422292 (patch)
treede54bbad6aa651d4e56517af56a6773f02766fcf /src/main.rs
parent839c44e535d03f8ae747139acd27109e897c76e4 (diff)
downloadxesite-67005bc59dd918eadcbd9c7c9285aed0c3422292.tar.xz
xesite-67005bc59dd918eadcbd9c7c9285aed0c3422292.zip
move markdown and templates into a dedicated crate
This does not move the ructe templates around, only the newer Maud ones. The only template I can't move easily is the salary history one, but I should get rid of that anyways.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index cdcae68..1df4a02 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -12,7 +12,6 @@ use axum::{
use color_eyre::eyre::Result;
use hyper::StatusCode;
use prometheus::{Encoder, TextEncoder};
-use sdnotify::SdNotify;
use std::{
env, io,
net::{IpAddr, SocketAddr},
@@ -214,6 +213,8 @@ async fn main() -> Result<()> {
#[cfg(target_os = "linux")]
{
+ use sdnotify::SdNotify;
+
match SdNotify::from_env() {
Ok(ref mut n) => {
// shitty heuristic for detecting if we're running in prod