Dependency updates
This commit is contained in:
parent
c0e3429010
commit
5fc9522e5f
664
Cargo.lock
generated
664
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -13,7 +13,7 @@ rust-version = "1.58"
|
|||
mdbook = "0.4.10"
|
||||
pulldown-cmark = "0.9.1"
|
||||
log = "0.4.11"
|
||||
clap = "2.33.3"
|
||||
clap = "3.1.18"
|
||||
serde_json = "1.0.57"
|
||||
toml = "0.5.6"
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ extern crate mdbook;
|
|||
extern crate mdbook_toc;
|
||||
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::preprocess::{CmdPreprocessor, Preprocessor};
|
||||
use mdbook_toc::Toc;
|
||||
|
@ -11,13 +11,13 @@ use mdbook_toc::Toc;
|
|||
use std::io;
|
||||
use std::process;
|
||||
|
||||
pub fn make_app() -> App<'static, 'static> {
|
||||
App::new("mdbook-toc")
|
||||
pub fn make_app() -> Command<'static> {
|
||||
Command::new("mdbook-toc")
|
||||
.version(crate_version!())
|
||||
.about("mdbook preprocessor to add Table of Contents")
|
||||
.subcommand(
|
||||
SubCommand::with_name("supports")
|
||||
.arg(Arg::with_name("renderer").required(true))
|
||||
Command::new("supports")
|
||||
.arg(Arg::new("renderer").required(true))
|
||||
.about("Check whether a renderer is supported by this preprocessor"),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue