Dependency updates

main
Jan-Erik Rediger 2022-12-18 18:47:54 +01:00
parent 509f57680c
commit 7256e9e72e
3 changed files with 262 additions and 281 deletions

535
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -9,9 +9,9 @@ edition = "2021"
[dependencies] [dependencies]
mdbook = "0.4.21" mdbook = "0.4.21"
env_logger = "0.9.0" env_logger = "0.10.0"
log = "0.4" log = "0.4"
clap = "3.1.18" clap = { version = "4.0.29", features = ["cargo"] }
serde_json = "1.0" serde_json = "1.0"
toml = "0.5.6" toml = "0.5.6"
xshell = "0.2.2" xshell = "0.2.2"

View File

@ -6,7 +6,7 @@ use mdbook_last_changed::LastChanged;
use std::io; use std::io;
use std::process; use std::process;
pub fn make_app() -> Command<'static> { pub fn make_app() -> Command {
Command::new("mdbook-last-changed") Command::new("mdbook-last-changed")
.version(crate_version!()) .version(crate_version!())
.about("mdbook preprocessor to add the last modification date per page") .about("mdbook preprocessor to add the last modification date per page")
@ -49,7 +49,7 @@ fn handle_preprocessing() -> Result<(), Error> {
} }
fn handle_supports(sub_args: &ArgMatches) -> ! { fn handle_supports(sub_args: &ArgMatches) -> ! {
let renderer = sub_args.value_of("renderer").expect("Required argument"); let renderer = sub_args.get_one::<String>("renderer").expect("Required argument");
let supported = LastChanged.supports_renderer(renderer); let supported = LastChanged.supports_renderer(renderer);
// Signal whether the renderer is supported by exiting with 1 or 0. // Signal whether the renderer is supported by exiting with 1 or 0.