1
Fork 0

Dependency updates

This commit is contained in:
Jan-Erik Rediger 2022-05-26 23:01:13 +02:00
parent c0e3429010
commit 5fc9522e5f
3 changed files with 340 additions and 336 deletions

664
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -13,7 +13,7 @@ rust-version = "1.58"
mdbook = "0.4.10" mdbook = "0.4.10"
pulldown-cmark = "0.9.1" pulldown-cmark = "0.9.1"
log = "0.4.11" log = "0.4.11"
clap = "2.33.3" clap = "3.1.18"
serde_json = "1.0.57" serde_json = "1.0.57"
toml = "0.5.6" toml = "0.5.6"

View file

@ -3,7 +3,7 @@ extern crate mdbook;
extern crate mdbook_toc; extern crate mdbook_toc;
extern crate serde_json; extern crate serde_json;
use clap::{crate_version, App, Arg, ArgMatches, SubCommand}; use clap::{crate_version, Arg, ArgMatches, Command};
use mdbook::errors::Error; use mdbook::errors::Error;
use mdbook::preprocess::{CmdPreprocessor, Preprocessor}; use mdbook::preprocess::{CmdPreprocessor, Preprocessor};
use mdbook_toc::Toc; use mdbook_toc::Toc;
@ -11,13 +11,13 @@ use mdbook_toc::Toc;
use std::io; use std::io;
use std::process; use std::process;
pub fn make_app() -> App<'static, 'static> { pub fn make_app() -> Command<'static> {
App::new("mdbook-toc") Command::new("mdbook-toc")
.version(crate_version!()) .version(crate_version!())
.about("mdbook preprocessor to add Table of Contents") .about("mdbook preprocessor to add Table of Contents")
.subcommand( .subcommand(
SubCommand::with_name("supports") Command::new("supports")
.arg(Arg::with_name("renderer").required(true)) .arg(Arg::new("renderer").required(true))
.about("Check whether a renderer is supported by this preprocessor"), .about("Check whether a renderer is supported by this preprocessor"),
) )
} }