aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorfx <[email protected]>2023-10-09 13:07:54 +0200
committerfx <[email protected]>2023-10-09 13:07:54 +0200
commitbc5f721de8996b48550b5069f5592caf2968e822 (patch)
treefe7bf485cda800d6fff595c0573b9bca4a4c1dd0 /src/main.rs
parent159cb1b3c940440ebe03e5042c361be563324978 (diff)
downloadwebol-bc5f721de8996b48550b5069f5592caf2968e822.tar
webol-bc5f721de8996b48550b5069f5592caf2968e822.tar.gz
webol-bc5f721de8996b48550b5069f5592caf2968e822.zip
added wol func and bad auth
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 60f2214..0fe170d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -5,11 +5,12 @@ use tracing_subscriber::{EnvFilter, fmt::{self, time::LocalTime}, prelude::*};
5use crate::routes::start::start; 5use crate::routes::start::start;
6 6
7mod auth; 7mod auth;
8mod config;
8mod routes; 9mod routes;
10mod wol;
9 11
10#[tokio::main] 12#[tokio::main]
11async fn main() { 13async fn main() {
12
13 unsafe { local_offset::set_soundness(local_offset::Soundness::Unsound); } 14 unsafe { local_offset::set_soundness(local_offset::Soundness::Unsound); }
14 let time_format = 15 let time_format =
15 time::macros::format_description!("[year]-[month]-[day] [hour]:[minute]:[second]"); 16 time::macros::format_description!("[year]-[month]-[day] [hour]:[minute]:[second]");