From 3f2bdfdaededd9287f5b9d157cf90f8e7f3bd19c Mon Sep 17 00:00:00 2001 From: Jade Date: Mon, 27 Feb 2023 09:55:16 +0100 Subject: [PATCH] added markup crate --- Cargo.lock | 22 ++++++++++++++++++++++ Cargo.toml | 1 + README.md | 1 + 3 files changed, 24 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 9479b4a..83f9299 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1266,6 +1266,27 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "markup" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd9196a235d499738d04f6a2466ce2610bf6b84730610efea8bee1b90d028b0d" +dependencies = [ + "itoa", + "markup-proc-macro", +] + +[[package]] +name = "markup-proc-macro" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a927f0e237dcbdd8c1a8ab03c4e1e8b1999804c448ebf06ff3b5512506c8150" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "memchr" version = "2.5.0" @@ -1300,6 +1321,7 @@ dependencies = [ "lazy_static", "linkify", "log", + "markup", "mime_guess", "qrcode-generator", "rand", diff --git a/Cargo.toml b/Cargo.toml index b1db321..693744e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,6 +35,7 @@ qrcode-generator = "4.1.6" rust-embed = "6.4.2" mime_guess = "2.0.4" harsh = "0.2" +markup = "0.13" [profile.release] lto = true diff --git a/README.md b/README.md index 8684283..2729eb3 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ Please do not ask for help in the issues of the original MicroBin repository, I' - [x] customizable `pasta`, `url` and `raw` endpoints - [ ] disable remove - [x] Click logo/name to get to root +- [ ] switch to other template engine - [ ] Move frontend interactive code to rust as well - [x] removed light mode