From b30a8bdc819dd36339acf61954e64a5d892a9774 Mon Sep 17 00:00:00 2001 From: Boris-Chengbiao Zhou Date: Sat, 19 Mar 2016 17:45:58 +0100 Subject: [PATCH] Update dependencies --- Cargo.toml | 10 +++++----- src/bin/mdbook.rs | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 16dea189..a2d8104b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,14 +15,14 @@ exclude = [ ] [dependencies] -clap = "1.5.3" -handlebars = "0.12.0" -rustc-serialize = "0.3.16" -pulldown-cmark = "0.0.6" +clap = "2.2.1" +handlebars = "0.16.0" +rustc-serialize = "0.3.18" +pulldown-cmark = "0.0.7" # Watch feature notify = { version = "2.5.4", optional = true } -time = { version = "0.1.33", optional = true } +time = { version = "0.1.34", optional = true } crossbeam = { version = "0.2.8", optional = true } diff --git a/src/bin/mdbook.rs b/src/bin/mdbook.rs index c8ff6d8a..5f444b0d 100644 --- a/src/bin/mdbook.rs +++ b/src/bin/mdbook.rs @@ -16,7 +16,7 @@ use std::error::Error; use std::io::{self, Write}; use std::path::{Path, PathBuf}; -use clap::{App, ArgMatches, SubCommand}; +use clap::{App, ArgMatches, SubCommand, AppSettings}; // Uses for the Watch feature #[cfg(feature = "watch")] @@ -36,7 +36,7 @@ fn main() { .author("Mathieu David ") // Get the version from our Cargo.toml using clap's crate_version!() macro .version(&*format!("v{}", crate_version!())) - .subcommand_required(true) + .setting(AppSettings::SubcommandRequired) .after_help("For more information about a specific command, try `mdbook --help`") .subcommand(SubCommand::with_name("init") .about("Create boilerplate structure and files in the directory")