about summary refs log tree commit diff
path: root/templates-neo/src/main.rs
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2025-04-09 23:00:11 +0300
committerVika <vika@fireburn.ru>2025-04-09 23:31:57 +0300
commit6f47cd5b5ed220f3fcfe6566166f774ccd26d0c3 (patch)
treee184c78d5042fe5ad615da71ed0d70d2afd4158d /templates-neo/src/main.rs
parent72e9879394d3f82de9b5f4911295b81ee92f260b (diff)
downloadkittybox-6f47cd5b5ed220f3fcfe6566166f774ccd26d0c3.tar.zst
templates-neo: remove
The `html` crate is not currently maintained, and it's not exactly
production-ready anyway. This was a fine experiment, but I don't think
it currently belongs in-tree.

Change-Id: I38019e5fb3ee549ec0b883dd7bd14f32dc746bdb
Diffstat (limited to 'templates-neo/src/main.rs')
-rw-r--r--templates-neo/src/main.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/templates-neo/src/main.rs b/templates-neo/src/main.rs
deleted file mode 100644
index d374e3f..0000000
--- a/templates-neo/src/main.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-#![recursion_limit = "512"]
-use std::io::Write;
-
-use kittybox_html::mf2::Entry;
-
-fn main() {
-    let mf2 = serde_json::from_reader::<_, microformats::types::Item>(std::io::stdin()).unwrap();
-    let entry = Entry::try_from(mf2).unwrap();
-
-    let mut article = html::content::Article::builder();
-    entry.build(&mut article);
-
-    let mut stdout = std::io::stdout().lock();
-    stdout
-        .write_all(article.build().to_string().as_bytes())
-        .unwrap();
-    stdout.write_all(b"\n").unwrap();
-}