mirror of
https://github.com/figsoda/mmtc
synced 2024-11-10 10:14:13 +00:00
update to clap v3.0.0-beta.5
This commit is contained in:
parent
234feeea90
commit
7025b876fd
5 changed files with 40 additions and 38 deletions
52
Cargo.lock
generated
52
Cargo.lock
generated
|
@ -130,9 +130,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|||
|
||||
[[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",
|
||||
|
@ -143,14 +143,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",
|
||||
|
@ -161,9 +161,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "clap_generate"
|
||||
version = "3.0.0-beta.4"
|
||||
version = "3.0.0-beta.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2d9b1abef93569f290952eff3c4a0a92d6767bb5158db095b4dc9a512b1c3643"
|
||||
checksum = "097ab5db1c3417442270cd57c8dd39f6c3114d3ce09d595f9efddbb1fcfaa799"
|
||||
dependencies = [
|
||||
"clap",
|
||||
]
|
||||
|
@ -358,9 +358,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "instant"
|
||||
version = "0.1.11"
|
||||
version = "0.1.12"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "716d3d89f35ac6a34fd0eed635395f4c3b76fa889338a4632e5231a8684216bd"
|
||||
checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
]
|
||||
|
@ -373,9 +373,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
|||
|
||||
[[package]]
|
||||
name = "libc"
|
||||
version = "0.2.103"
|
||||
version = "0.2.104"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "dd8f7255a17a627354f321ef0055d63b898c6fb27eff628af4d1b66b7331edf6"
|
||||
checksum = "7b2f96d100e1cf1929e7719b7edb3b90ab5298072638fccd77be9ce942ecdfce"
|
||||
|
||||
[[package]]
|
||||
name = "lock_api"
|
||||
|
@ -403,9 +403,9 @@ checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
|
|||
|
||||
[[package]]
|
||||
name = "mio"
|
||||
version = "0.7.13"
|
||||
version = "0.7.14"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8c2bdb6314ec10835cd3293dd268473a835c02b7b352e788be788b3c6ca6bb16"
|
||||
checksum = "8067b404fe97c70829f082dec8bcf4f71225d7eaea1d8645349cb76fa06205cc"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"log",
|
||||
|
@ -459,9 +459,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 = "parking"
|
||||
|
@ -643,9 +646,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "slab"
|
||||
version = "0.4.4"
|
||||
version = "0.4.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c307a32c1c5c437f38c7fd45d753050587732ba8628319fbdf12a7e289ccc590"
|
||||
checksum = "9def91fd1e018fe007022791f865d0ccc9b3a0d5001e01aabb8b40e46000afb5"
|
||||
|
||||
[[package]]
|
||||
name = "smallvec"
|
||||
|
@ -712,6 +715,15 @@ dependencies = [
|
|||
"unicode-width",
|
||||
]
|
||||
|
||||
[[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.8.0"
|
||||
|
@ -730,12 +742,6 @@ version = "0.2.2"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
|
||||
|
||||
[[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"
|
||||
|
|
|
@ -15,7 +15,7 @@ categories = ["command-line-utilities"]
|
|||
anyhow = "1.0.44"
|
||||
async-io = "1.6.0"
|
||||
async-net = "1.6.1"
|
||||
clap = "3.0.0-beta.4"
|
||||
clap = "3.0.0-beta.5"
|
||||
crossbeam-queue = "0.3.2"
|
||||
crossterm = "0.21.0"
|
||||
dirs = "4.0.0"
|
||||
|
@ -30,8 +30,8 @@ default-features = false
|
|||
features = ["crossterm", "serde"]
|
||||
|
||||
[build-dependencies]
|
||||
clap = "3.0.0-beta.4"
|
||||
clap_generate = "3.0.0-beta.4"
|
||||
clap = "3.0.0-beta.5"
|
||||
clap_generate = "3.0.0-beta.5"
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
|
|
12
build.rs
12
build.rs
|
@ -1,5 +1,5 @@
|
|||
use clap::IntoApp;
|
||||
use clap_generate::{generate_to, generators};
|
||||
use clap::{ArgEnum, IntoApp};
|
||||
use clap_generate::{generate_to, Shell};
|
||||
|
||||
use std::{env, fs::create_dir_all, path::Path};
|
||||
|
||||
|
@ -16,11 +16,7 @@ fn main() {
|
|||
create_dir_all(out).unwrap();
|
||||
let app = &mut Opts::into_app();
|
||||
|
||||
macro_rules! generate {
|
||||
($($g:ident),*) => {
|
||||
$(generate_to::<generators::$g, _, _>(app, "mmtc", out).unwrap();)*
|
||||
}
|
||||
for shell in Shell::value_variants() {
|
||||
generate_to(*shell, app, "mmtc", out).unwrap();
|
||||
}
|
||||
|
||||
generate![Bash, Elvish, Fish, PowerShell, Zsh];
|
||||
}
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
use clap::{AppSettings, Clap};
|
||||
use clap::Parser;
|
||||
|
||||
use std::path::PathBuf;
|
||||
|
||||
/// Minimal mpd terminal client that aims to be simple yet highly configurable
|
||||
///
|
||||
/// Homepage: https://github.com/figsoda/mmtc
|
||||
#[derive(Clap)]
|
||||
#[clap(bin_name = "mmtc", version, global_setting = AppSettings::ColoredHelp)]
|
||||
#[derive(Parser)]
|
||||
#[clap(version)]
|
||||
pub struct Opts {
|
||||
/// Clear query on play
|
||||
#[clap(long, multiple_occurrences = true)]
|
||||
|
|
|
@ -12,7 +12,7 @@ mod mpd;
|
|||
use anyhow::{Context, Result};
|
||||
use async_io::{block_on, Timer};
|
||||
use async_net::resolve;
|
||||
use clap::Clap;
|
||||
use clap::Parser;
|
||||
use crossbeam_queue::SegQueue;
|
||||
use crossterm::{
|
||||
event::{
|
||||
|
|
Loading…
Reference in a new issue