diff --git a/Cargo.lock b/Cargo.lock index 7869728..dbcd041 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -119,9 +119,9 @@ dependencies = [ [[package]] name = "clap" -version = "3.0.0-beta.4" +version = "3.0.0-beta.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcd70aa5597dbc42f7217a543f9ef2768b2ef823ba29036072d30e1d88e98406" +checksum = "feff3878564edb93745d58cf63e17b63f24142506e7a20c87a5521ed7bfb1d63" dependencies = [ "atty", "bitflags", @@ -132,14 +132,14 @@ dependencies = [ "strsim", "termcolor", "textwrap", - "vec_map", + "unicase", ] [[package]] name = "clap_derive" -version = "3.0.0-beta.4" +version = "3.0.0-beta.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b5bb0d655624a0b8770d1c178fb8ffcb1f91cc722cb08f451e3dc72465421ac" +checksum = "8b15c6b4f786ffb6192ffe65a36855bc1fc2444bcd0945ae16748dcd6ed7d0d3" dependencies = [ "heck", "proc-macro-error", @@ -659,9 +659,12 @@ checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56" [[package]] name = "os_str_bytes" -version = "3.1.0" +version = "4.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6acbef58a60fe69ab50510a55bc8cdd4d6cf2283d27ad338f54cb52747a9cf2d" +checksum = "addaa943333a514159c80c97ff4a93306530d965d27e139188283cd13e06a799" +dependencies = [ + "memchr", +] [[package]] name = "pkg-config" @@ -1089,6 +1092,15 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "unicase" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6" +dependencies = [ + "version_check", +] + [[package]] name = "unicode-segmentation" version = "1.7.1" @@ -1128,12 +1140,6 @@ version = "0.2.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "025ce40a007e1907e58d5bc1a594def78e5573bb0b1160bc389634e8f12e4faa" -[[package]] -name = "vec_map" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" - [[package]] name = "version_check" version = "0.9.3" diff --git a/datman/Cargo.toml b/datman/Cargo.toml index 09f85c1..c8d49e9 100644 --- a/datman/Cargo.toml +++ b/datman/Cargo.toml @@ -11,7 +11,7 @@ description = "A chunked and deduplicated backup system using Yama" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -clap = "= 3.0.0-beta.4" +clap = "= 3.0.0-beta.5" anyhow = "1.0" thiserror = "1.0" serde = { version = "1.0.104", features = ["derive"] } diff --git a/datman/src/bin/datman.rs b/datman/src/bin/datman.rs index 1628ab6..1fd41ce 100644 --- a/datman/src/bin/datman.rs +++ b/datman/src/bin/datman.rs @@ -17,7 +17,7 @@ along with Yama. If not, see . use std::path::{Path, PathBuf}; -use clap::Clap; +use clap::Parser; use env_logger::Env; use anyhow::bail; @@ -37,7 +37,7 @@ pub const WHITE: &str = "\x1b[37m"; pub const RED: &str = "\x1b[31m"; pub const GREEN: &str = "\x1b[32m"; -#[derive(Clap)] +#[derive(Parser)] pub enum DatmanCommand { /// Initialise a datman descriptor in this directory. Init {}, diff --git a/yama/Cargo.toml b/yama/Cargo.toml index d5e8053..7a91244 100644 --- a/yama/Cargo.toml +++ b/yama/Cargo.toml @@ -14,7 +14,7 @@ license = "GPL-3.0-or-later" fastcdc = "1.0.2" zstd = "0.6.0" # 0.6.0+zstd.1.4.8 sshish = "0.1.0" -clap = "= 3.0.0-beta.4" +clap = "= 3.0.0-beta.5" blake = "2.0.0" twox-hash = "1.5.0" serde = { version = "1.0.104", features = ["derive"] } diff --git a/yama/src/bin/yama.rs b/yama/src/bin/yama.rs index 67780af..c6d5656 100644 --- a/yama/src/bin/yama.rs +++ b/yama/src/bin/yama.rs @@ -18,7 +18,7 @@ along with Yama. If not, see . use std::path::{Path, PathBuf}; use anyhow::{bail, Context}; -use clap::{crate_authors, crate_description, crate_version, Clap}; +use clap::{crate_authors, crate_description, crate_version, Parser}; use log::info; use env_logger::Env; @@ -31,7 +31,7 @@ use yama::operations::{checking, extracting}; use yama::pile::{Pile, PileDescriptor, RawPile}; use yama::{commands, debug}; -#[derive(Clap)] +#[derive(Parser)] #[clap(version = crate_version!(), author = crate_authors!(), about = crate_description!())] struct Opts { /// Chooses a different pile to be the working pile. @@ -43,7 +43,7 @@ struct Opts { command: PileCommand, } -#[derive(Clap)] +#[derive(Parser)] enum PileCommand { /// Initialise a yama pile in this directory. Init {}, diff --git a/yama/src/debug.rs b/yama/src/debug.rs index 325a92e..a4f74d4 100644 --- a/yama/src/debug.rs +++ b/yama/src/debug.rs @@ -20,12 +20,12 @@ use crate::definitions::{FilesystemOwnership, FilesystemPermissions, TreeNode}; use crate::pile::{Pile, PileDescriptor, RawPile}; use crate::tree::integrate_node_in_place; use anyhow::anyhow; -use clap::Clap; +use clap::Parser; use log::info; use rustyline::error::ReadlineError; use rustyline::Editor; -#[derive(Clap)] +#[derive(Parser)] pub enum DebugCommand { /// List the pointers that are stored in this yama pile. #[clap(name = "lsp")]