about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs30
1 files changed, 29 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index e7a11a9..4405674 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,31 @@
+use serde::{Deserialize, Serialize};
+
+const VERS: &str = "v0.1";
+const OUT_PATH: &str = "/var/www/htdocs/tilde.json";
+
+#[derive(Debug, Deserialize, Serialize)]
+struct Server {
+    name: String,
+    url: String,
+    signup_url: String,
+    user_count: u32,
+    want_users: bool,
+    admin_email: String,
+    description: String,
+    users: Vec<User>,
+}
+
+#[derive(Debug, Deserialize, Serialize)]
+struct User {
+    name: String,
+    title: String,
+    mtime: String,
+}
+
 fn main() {
-    println!("Hello, world!");
+    println!("instistats {}", VERS);
+    println!("(c) 2019 Ben Morrison - ISC License");
+    println!();
+    println!("Path: {}", OUT_PATH);
+    println!();
 }