Update all dependencies
This commit is contained in:
parent
8e0abfb22f
commit
ef5895fa78
10
Cargo.toml
10
Cargo.toml
|
@ -16,12 +16,12 @@ exclude = [
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = "2.24"
|
clap = "2.24"
|
||||||
handlebars = "0.27"
|
handlebars = "0.29"
|
||||||
serde = "1.0"
|
serde = "1.0"
|
||||||
serde_derive = "1.0"
|
serde_derive = "1.0"
|
||||||
error-chain = "0.10.0"
|
error-chain = "0.11.0"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
pulldown-cmark = "0.0.14"
|
pulldown-cmark = "0.1"
|
||||||
lazy_static = "0.2"
|
lazy_static = "0.2"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
env_logger = "0.4.0"
|
env_logger = "0.4.0"
|
||||||
|
@ -33,7 +33,7 @@ tempdir = "0.3.4"
|
||||||
# Watch feature
|
# Watch feature
|
||||||
notify = { version = "4.0", optional = true }
|
notify = { version = "4.0", optional = true }
|
||||||
time = { version = "0.1.34", optional = true }
|
time = { version = "0.1.34", optional = true }
|
||||||
crossbeam = { version = "0.2.8", optional = true }
|
crossbeam = { version = "0.3", optional = true }
|
||||||
|
|
||||||
# Serve feature
|
# Serve feature
|
||||||
iron = { version = "0.5", optional = true }
|
iron = { version = "0.5", optional = true }
|
||||||
|
@ -41,7 +41,7 @@ staticfile = { version = "0.4", optional = true }
|
||||||
ws = { version = "0.7", optional = true}
|
ws = { version = "0.7", optional = true}
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
error-chain = "0.10"
|
error-chain = "0.11"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["output", "watch", "serve"]
|
default = ["output", "watch", "serve"]
|
||||||
|
|
|
@ -64,9 +64,10 @@ pub fn previous(_h: &Helper, r: &Handlebars, rc: &mut RenderContext) -> Result<(
|
||||||
|
|
||||||
debug!("[*]: Render template");
|
debug!("[*]: Render template");
|
||||||
// Render template
|
// Render template
|
||||||
_h.template().ok_or_else(|| RenderError::new("Error with the handlebars template"))
|
_h.template()
|
||||||
|
.ok_or_else(|| RenderError::new("Error with the handlebars template"))
|
||||||
.and_then(|t| {
|
.and_then(|t| {
|
||||||
let mut local_rc = rc.with_context(Context::wraps(&previous_chapter));
|
let mut local_rc = rc.with_context(Context::wraps(&previous_chapter)?);
|
||||||
t.render(r, &mut local_rc)
|
t.render(r, &mut local_rc)
|
||||||
})?;
|
})?;
|
||||||
}
|
}
|
||||||
|
@ -142,7 +143,7 @@ pub fn next(_h: &Helper, r: &Handlebars, rc: &mut RenderContext) -> Result<(), R
|
||||||
// Render template
|
// Render template
|
||||||
_h.template().ok_or_else(|| RenderError::new("Error with the handlebars template"))
|
_h.template().ok_or_else(|| RenderError::new("Error with the handlebars template"))
|
||||||
.and_then(|t| {
|
.and_then(|t| {
|
||||||
let mut local_rc = rc.with_context(Context::wraps(&next_chapter));
|
let mut local_rc = rc.with_context(Context::wraps(&next_chapter)?);
|
||||||
t.render(r, &mut local_rc)
|
t.render(r, &mut local_rc)
|
||||||
})?;
|
})?;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue