about summary refs log tree commit diff
path: root/services/nixcon-demo/src
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-20T20·18+0000
committerVincent Ambo <tazjin@google.com>2019-12-20T20·18+0000
commit03bfe08e1dd9faf48b06cb146bfa446575cde88a (patch)
tree55317968922a9b2a01516f1b79527874df037517 /services/nixcon-demo/src
parente52eed3cd4f73779c2e7c350537fb346835ba9f3 (diff)
chore: Significantly restructure folder layout r/237
This moves the various projects from "type-based" folders (such as
"services" or "tools") into more appropriate semantic folders (such as
"nix", "ops" or "web").

Deprecated projects (nixcon-demo & gotest) which only existed for
testing/demonstration purposes have been removed.

(Note: *all* builds are broken with this commit)
Diffstat (limited to 'services/nixcon-demo/src')
-rw-r--r--services/nixcon-demo/src/main.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/services/nixcon-demo/src/main.rs b/services/nixcon-demo/src/main.rs
deleted file mode 100644
index 226fe49ed1a3..000000000000
--- a/services/nixcon-demo/src/main.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-use rouille::Response;
-use std::env;
-use std::io;
-use std::process;
-
-const GREETING: &str = "Haló NixCon!";
-
-fn main() {
-    if let Some(arg) = env::args().last() {
-        if arg == "--cli" {
-            println!("{}", GREETING);
-            process::exit(0);
-        }
-    }
-
-    rouille::start_server("0.0.0.0:8080", move |req| {
-        rouille::log(req, io::stdout(), || Response::text(GREETING))
-    })
-}