Fix building without serve feature

This commit is contained in:
Zoey 2021-08-19 13:49:39 -07:00
parent bcf673fd7b
commit 41268039de
3 changed files with 3 additions and 1 deletions

1
Cargo.lock generated
View file

@ -2148,6 +2148,7 @@ dependencies = [
"gray_matter",
"handlebars",
"hotwatch",
"http",
"lol_html",
"pulldown-cmark",
"serde",

View file

@ -12,6 +12,7 @@ grass = "0.10"
gray_matter = "0.2"
handlebars = "4.1"
hotwatch = { version = "0.4", optional = true }
http = "0.2"
lol_html = "0.3"
pulldown-cmark = { version = "0.8", default-features = false, features = ["simd"] }
serde = { version = "1", features = ["derive"] }

View file

@ -5,11 +5,11 @@ use std::{path::PathBuf, str::FromStr};
use anyhow::Context;
use gray_matter::{engine::YAML, Matter};
use handlebars::Handlebars;
use http::Uri;
use lol_html::{element, html_content::ContentType, HtmlRewriter, Settings};
use pulldown_cmark::{Options, Parser};
use serde::Serialize;
use walkdir::WalkDir;
use warp::hyper::Uri;
use crate::{util, PageMetadata, Site, SASS_PATH, STATIC_PATH};