From 471b1afc8bd9c89b5cf69b015e0065e969319da2 Mon Sep 17 00:00:00 2001 From: Zoey Date: Thu, 19 Aug 2021 13:49:39 -0700 Subject: [PATCH] Fix building without serve feature --- Cargo.lock | 1 + Cargo.toml | 1 + src/builder.rs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 17bf5f6..4ee7c48 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2148,6 +2148,7 @@ dependencies = [ "gray_matter", "handlebars", "hotwatch", + "http", "lol_html", "pulldown-cmark", "serde", diff --git a/Cargo.toml b/Cargo.toml index cdcf2a1..c2a2574 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] } diff --git a/src/builder.rs b/src/builder.rs index 516898d..1d4c125 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -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};