Update dependencies
`crossbeam` and `time` are removed since they're no longer used.
This commit is contained in:
parent
0f89abb1c7
commit
5dd0496a4f
File diff suppressed because it is too large
Load Diff
|
@ -37,8 +37,6 @@ toml-query = "0.7"
|
||||||
|
|
||||||
# Watch feature
|
# Watch feature
|
||||||
notify = { version = "4.0", optional = true }
|
notify = { version = "4.0", optional = true }
|
||||||
time = { version = "0.1.34", optional = true }
|
|
||||||
crossbeam = { version = "0.3", optional = true }
|
|
||||||
|
|
||||||
# Serve feature
|
# Serve feature
|
||||||
iron = { version = "0.6", optional = true }
|
iron = { version = "0.6", optional = true }
|
||||||
|
@ -63,7 +61,7 @@ default = ["output", "watch", "serve", "search"]
|
||||||
debug = []
|
debug = []
|
||||||
output = []
|
output = []
|
||||||
regenerate-css = []
|
regenerate-css = []
|
||||||
watch = ["notify", "time", "crossbeam"]
|
watch = ["notify"]
|
||||||
serve = ["iron", "staticfile", "ws"]
|
serve = ["iron", "staticfile", "ws"]
|
||||||
search = ["elasticlunr-rs", "ammonia"]
|
search = ["elasticlunr-rs", "ammonia"]
|
||||||
|
|
||||||
|
|
|
@ -370,9 +370,11 @@ impl Renderer for HtmlHandlebars {
|
||||||
.chain_err(|| "Unable to copy across additional CSS and JS")?;
|
.chain_err(|| "Unable to copy across additional CSS and JS")?;
|
||||||
|
|
||||||
// Render search index
|
// Render search index
|
||||||
let search = html_config.search.unwrap_or_default();
|
#[cfg(feature = "search")] {
|
||||||
if cfg!(feature = "search") && search.enable {
|
let search = html_config.search.unwrap_or_default();
|
||||||
super::search::create_files(&search, &destination, &book)?;
|
if search.enable {
|
||||||
|
super::search::create_files(&search, &destination, &book)?;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy all remaining files
|
// Copy all remaining files
|
||||||
|
|
Loading…
Reference in New Issue