aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-06-04 12:19:00 -0300
committerEuAndreh <eu@euandre.org>2021-06-04 12:19:50 -0300
commit8b3e3390ba5d166ccf5b9ea8dad648f4d27fb81d (patch)
tree491f12f767b116e618644c48ad415f1935151fd5
parentMakefile: Use $(NAME) (diff)
downloadgistatic-8b3e3390ba5d166ccf5b9ea8dad648f4d27fb81d.tar.gz
gistatic-8b3e3390ba5d166ccf5b9ea8dad648f4d27fb81d.tar.xz
src/: Remove subdirectories
-rw-r--r--Cargo.toml4
-rw-r--r--src/lib.rs (renamed from src/lib/lib.rs)4
-rw-r--r--src/main.rs (renamed from src/cli/main.rs)0
3 files changed, 4 insertions, 4 deletions
diff --git a/Cargo.toml b/Cargo.toml
index bc5875a..c870e62 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,11 +4,11 @@ version = "0.1.0"
edition = "2018"
[lib]
-path = "src/lib/lib.rs"
+path = "src/lib.rs"
[[bin]]
name = "gistatic"
-path = "src/cli/main.rs"
+path = "src/main.rs"
[dependencies]
mustache = "*"
diff --git a/src/lib/lib.rs b/src/lib.rs
index 311a11f..2bd4a2e 100644
--- a/src/lib/lib.rs
+++ b/src/lib.rs
@@ -1,8 +1,8 @@
-const t: &'static str = include_str!("../templates/log.html");
+const LOG: &'static str = include_str!("templates/log.html");
pub fn a_fn() -> i32 {
// println!("log.html.tmpl: {}", t);
- let template = mustache::compile_str(t).unwrap();
+ let template = mustache::compile_str(LOG).unwrap();
let _data = mustache::MapBuilder::new()
.insert_str("name", "Venus")
.build();
diff --git a/src/cli/main.rs b/src/main.rs
index cdb964d..cdb964d 100644
--- a/src/cli/main.rs
+++ b/src/main.rs