From 1fe391f9d9f79f7975ecd047e9b0c55857ceb2ed Mon Sep 17 00:00:00 2001 From: sigoden Date: Wed, 1 Jun 2022 20:26:03 +0800 Subject: [PATCH] chore: move src/assets out of src --- {src/assets => assets}/index.css | 0 {src/assets => assets}/index.html | 0 {src/assets => assets}/index.js | 0 src/server.rs | 6 +++--- 4 files changed, 3 insertions(+), 3 deletions(-) rename {src/assets => assets}/index.css (100%) rename {src/assets => assets}/index.html (100%) rename {src/assets => assets}/index.js (100%) diff --git a/src/assets/index.css b/assets/index.css similarity index 100% rename from src/assets/index.css rename to assets/index.css diff --git a/src/assets/index.html b/assets/index.html similarity index 100% rename from src/assets/index.html rename to assets/index.html diff --git a/src/assets/index.js b/assets/index.js similarity index 100% rename from src/assets/index.js rename to assets/index.js diff --git a/src/server.rs b/src/server.rs index deb5d76..d88049a 100644 --- a/src/server.rs +++ b/src/server.rs @@ -32,9 +32,9 @@ use tokio_util::io::{ReaderStream, StreamReader}; type Request = hyper::Request; type Response = hyper::Response; -const INDEX_HTML: &str = include_str!("assets/index.html"); -const INDEX_CSS: &str = include_str!("assets/index.css"); -const INDEX_JS: &str = include_str!("assets/index.js"); +const INDEX_HTML: &str = include_str!("../assets/index.html"); +const INDEX_CSS: &str = include_str!("../assets/index.css"); +const INDEX_JS: &str = include_str!("../assets/index.js"); const BUF_SIZE: usize = 1024 * 16; macro_rules! status {