about summary refs log tree commit diff
path: root/services/nixcon-demo/src
diff options
context:
space:
mode:
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))
-    })
-}