Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Commit f645c9e

Browse files
chore: bump clap (#10)
1 parent 2f2c299 commit f645c9e

File tree

3 files changed

+23
-28
lines changed

3 files changed

+23
-28
lines changed

Cargo.lock

Lines changed: 19 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ path = "src/main.rs"
1919
[dependencies]
2020
anyhow = "1.0.34"
2121
base64 = "0.13"
22-
clap = "=3.0.0-beta.2"
23-
clap_derive = "=3.0.0-beta.2"
22+
clap = { version = "3", features = ["cargo", "derive"] }
2423
garcon = { version = "0.2.3", features = ["async"] }
2524
hex = "0.4.3"
2625
hyper = { version = "0.14.13", features = ["full"] }

src/main.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::config::dns_canister_config::DnsCanisterConfig;
2-
use clap::{crate_authors, crate_version, AppSettings, Clap};
2+
use clap::{crate_authors, crate_version, AppSettings, Parser};
33
use hyper::{
44
body,
55
body::Bytes,
@@ -45,12 +45,11 @@ static MAX_HTTP_REQUEST_STREAM_CALLBACK_CALL_COUNT: i32 = 1000;
4545
// The maximum length of a body we should log as tracing.
4646
static MAX_LOG_BODY_SIZE: usize = 100;
4747

48-
#[derive(Clap)]
48+
#[derive(Parser)]
4949
#[clap(
5050
version = crate_version!(),
5151
author = crate_authors!(),
52-
global_setting = AppSettings::GlobalVersion,
53-
global_setting = AppSettings::ColoredHelp
52+
global_setting = AppSettings::PropagateVersion,
5453
)]
5554
pub(crate) struct Opts {
5655
/// Verbose level. By default, INFO will be used. Add a single `-v` to upgrade to

0 commit comments

Comments
 (0)