documentation refactoring or smth

This commit is contained in:
endernon 2024-06-14 23:24:23 +01:00
parent c38a5b634c
commit 77cec015b1

View file

@ -7,11 +7,19 @@
// TO EDIT FONT: // // TO EDIT FONT: //
// - Add your font to root dir // // - Add your font to root dir //
// - edit const FONTFILENAME // // - edit const FONTFILENAME //
// - make sure however you're //
// running this, working dir //
// is set to the root //
// // // //
///////////////////////////////////// /////////////////////////////////////
/// the configurable ip address
const IPADDRESS: &str = "0.0.0.0"; const IPADDRESS: &str = "0.0.0.0";
/// the configurable port
const PORT: &str = "8081"; const PORT: &str = "8081";
/// the configurable fontname (put it in ipimg/{FONTNAME})
const FONTFILENAME: &str = "Roboto-Regular.ttf"; const FONTFILENAME: &str = "Roboto-Regular.ttf";
use std::{io::Cursor, net::SocketAddr, fs}; use std::{io::Cursor, net::SocketAddr, fs};