mirror of
https://github.com/zyllian/webdog.git
synced 2025-01-18 11:44:35 -08:00
Fix building without serve feature
This commit is contained in:
parent
bcf673fd7b
commit
41268039de
3 changed files with 3 additions and 1 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -2148,6 +2148,7 @@ dependencies = [
|
||||||
"gray_matter",
|
"gray_matter",
|
||||||
"handlebars",
|
"handlebars",
|
||||||
"hotwatch",
|
"hotwatch",
|
||||||
|
"http",
|
||||||
"lol_html",
|
"lol_html",
|
||||||
"pulldown-cmark",
|
"pulldown-cmark",
|
||||||
"serde",
|
"serde",
|
||||||
|
|
|
@ -12,6 +12,7 @@ grass = "0.10"
|
||||||
gray_matter = "0.2"
|
gray_matter = "0.2"
|
||||||
handlebars = "4.1"
|
handlebars = "4.1"
|
||||||
hotwatch = { version = "0.4", optional = true }
|
hotwatch = { version = "0.4", optional = true }
|
||||||
|
http = "0.2"
|
||||||
lol_html = "0.3"
|
lol_html = "0.3"
|
||||||
pulldown-cmark = { version = "0.8", default-features = false, features = ["simd"] }
|
pulldown-cmark = { version = "0.8", default-features = false, features = ["simd"] }
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
|
|
|
@ -5,11 +5,11 @@ use std::{path::PathBuf, str::FromStr};
|
||||||
use anyhow::Context;
|
use anyhow::Context;
|
||||||
use gray_matter::{engine::YAML, Matter};
|
use gray_matter::{engine::YAML, Matter};
|
||||||
use handlebars::Handlebars;
|
use handlebars::Handlebars;
|
||||||
|
use http::Uri;
|
||||||
use lol_html::{element, html_content::ContentType, HtmlRewriter, Settings};
|
use lol_html::{element, html_content::ContentType, HtmlRewriter, Settings};
|
||||||
use pulldown_cmark::{Options, Parser};
|
use pulldown_cmark::{Options, Parser};
|
||||||
use serde::Serialize;
|
use serde::Serialize;
|
||||||
use walkdir::WalkDir;
|
use walkdir::WalkDir;
|
||||||
use warp::hyper::Uri;
|
|
||||||
|
|
||||||
use crate::{util, PageMetadata, Site, SASS_PATH, STATIC_PATH};
|
use crate::{util, PageMetadata, Site, SASS_PATH, STATIC_PATH};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue