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

Commit

Permalink
chore: bump clap (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Bloom-dfinity authored Feb 3, 2022
1 parent 2f2c299 commit f645c9e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 28 deletions.
41 changes: 19 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ path = "src/main.rs"
[dependencies]
anyhow = "1.0.34"
base64 = "0.13"
clap = "=3.0.0-beta.2"
clap_derive = "=3.0.0-beta.2"
clap = { version = "3", features = ["cargo", "derive"] }
garcon = { version = "0.2.3", features = ["async"] }
hex = "0.4.3"
hyper = { version = "0.14.13", features = ["full"] }
Expand Down
7 changes: 3 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::config::dns_canister_config::DnsCanisterConfig;
use clap::{crate_authors, crate_version, AppSettings, Clap};
use clap::{crate_authors, crate_version, AppSettings, Parser};
use hyper::{
body,
body::Bytes,
Expand Down Expand Up @@ -45,12 +45,11 @@ static MAX_HTTP_REQUEST_STREAM_CALLBACK_CALL_COUNT: i32 = 1000;
// The maximum length of a body we should log as tracing.
static MAX_LOG_BODY_SIZE: usize = 100;

#[derive(Clap)]
#[derive(Parser)]
#[clap(
version = crate_version!(),
author = crate_authors!(),
global_setting = AppSettings::GlobalVersion,
global_setting = AppSettings::ColoredHelp
global_setting = AppSettings::PropagateVersion,
)]
pub(crate) struct Opts {
/// Verbose level. By default, INFO will be used. Add a single `-v` to upgrade to
Expand Down

0 comments on commit f645c9e

Please sign in to comment.