Move to actix-web

This commit is contained in:
jordan@doyle.la
2020-04-13 11:33:52 +01:00
parent 296cd50b7b
commit ccef0d9370
9 changed files with 1176 additions and 348 deletions

View File

@@ -1,10 +1,10 @@
extern crate syntect;
use syntect::easy::HighlightLines;
use syntect::highlighting::ThemeSet;
use syntect::html::{styled_line_to_highlighted_html, IncludeBackground};
use syntect::parsing::SyntaxSet;
use lazy_static::lazy_static;
/// Takes the content of a paste and the extension passed in by the viewer and will return the content
/// highlighted in the appropriate format in HTML.
///