summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2020-06-04 01:04:08 -0400
committerOwen Jacobson <owen@grimoire.ca>2020-06-04 01:04:08 -0400
commiteddc15883aabe2ccd5652f804bb0d3fb01dbc334 (patch)
treef90050a98312a3c5e641debf65b7b8b17ba740c8
parente0aeb8aa134bd7fe93526a32b004e77b267a3ba2 (diff)
Renamed primary binary to `web`.
This closely matches Procfile entries, making the structure of the project a little easier to follow.
-rw-r--r--Procfile2
-rw-r--r--src/bin/web.rs (renamed from src/main.rs)6
-rw-r--r--src/lib.rs4
3 files changed, 7 insertions, 5 deletions
diff --git a/Procfile b/Procfile
index 1fd4b52..daa01e9 100644
--- a/Procfile
+++ b/Procfile
@@ -1 +1 @@
-web: target/release/things-to-check
+web: target/release/web
diff --git a/src/main.rs b/src/bin/web.rs
index 8faebd4..3186207 100644
--- a/src/main.rs
+++ b/src/bin/web.rs
@@ -1,11 +1,9 @@
-#![feature(proc_macro_hygiene)]
-
use actix_web::{App, HttpServer};
use std::io;
use thiserror::Error;
-mod twelve;
-mod view;
+use things_to_check::twelve;
+use things_to_check::view;
#[derive(Error, Debug)]
pub enum Error {
diff --git a/src/lib.rs b/src/lib.rs
new file mode 100644
index 0000000..eb1da51
--- /dev/null
+++ b/src/lib.rs
@@ -0,0 +1,4 @@
+#![feature(proc_macro_hygiene)]
+
+pub mod twelve;
+pub mod view;