From fe775850dc36b89084433fafd1bb2bce7e1f8d7a Mon Sep 17 00:00:00 2001 From: Mathieu David Date: Tue, 16 Feb 2016 21:37:37 +0100 Subject: [PATCH] Update dependencies --- Cargo.toml | 7 ++++--- src/bin/mdbook.rs | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 16dea189..3d593670 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mdbook" -version = "0.0.11" +version = "0.1.0" authors = ["Mathieu David "] description = "create books from markdown files (like Gitbook)" documentation = "http://azerupi.github.io/mdBook/index.html" @@ -15,8 +15,9 @@ exclude = [ ] [dependencies] -clap = "1.5.3" -handlebars = "0.12.0" +clap = "2.1.2" +toml = "0.1.27" +handlebars = "0.14.0" rustc-serialize = "0.3.16" pulldown-cmark = "0.0.6" diff --git a/src/bin/mdbook.rs b/src/bin/mdbook.rs index 4032bfb4..02f41741 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")