diff options
author | Vincent Ambo <tazjin@google.com> | 2019-10-26T11·27+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-10-26T11·27+0200 |
commit | 8ffe811d46a45ee19d863e72ab22417390698d31 (patch) | |
tree | 90a9b3d65a09afd42e108de1f2010c7ccf0fc5d3 /services/nixcon-demo/src/main.rs | |
parent | 2be1fff2512fbfcf1ab4eb4a83ea406e9ad5a518 (diff) |
feat(services): Add nixcon-demo service with simple web server
Diffstat (limited to 'services/nixcon-demo/src/main.rs')
-rw-r--r-- | services/nixcon-demo/src/main.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/services/nixcon-demo/src/main.rs b/services/nixcon-demo/src/main.rs new file mode 100644 index 000000000000..c05124aaa3d8 --- /dev/null +++ b/services/nixcon-demo/src/main.rs @@ -0,0 +1,8 @@ +use std::io; +use rouille::Response; + +fn main() { + rouille::start_server("0.0.0.0:8080", move |req| { + rouille::log(req, io::stdout(), || Response::text("Haló NixCon!")) + }) +} |