Skip to content

Commit

Permalink
chore: update clap dependency, fix deprecations (#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
neoeinstein committed Jun 13, 2022
1 parent 91b73f9 commit d9f5c75
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion interop/Cargo.toml
Expand Up @@ -17,7 +17,7 @@ path = "src/bin/server.rs"
[dependencies]
async-stream = "0.3"
bytes = "1.0"
clap = {version = "3", features = ["derive"]}
clap = {version = "3.2.1", features = ["derive"]}
console = "0.14"
futures-core = "0.3"
futures-util = "0.3"
Expand Down
7 changes: 4 additions & 3 deletions interop/src/bin/client.rs
@@ -1,19 +1,20 @@
use clap::Parser;
use clap::{ArgAction, Parser};
use interop::client;
use std::time::Duration;
use tonic::transport::Endpoint;
use tonic::transport::{Certificate, ClientTlsConfig};

#[derive(Parser)]
struct Opts {
#[clap(name = "use_tls", long)]
#[clap(name = "use_tls", long, action = ArgAction::SetTrue)]
use_tls: bool,

#[clap(
long = "test_case",
use_value_delimiter = true,
min_values = 1,
arg_enum
arg_enum,
action = ArgAction::Append
)]
test_case: Vec<Testcase>,
}
Expand Down
4 changes: 2 additions & 2 deletions interop/src/bin/server.rs
@@ -1,11 +1,11 @@
use clap::Parser;
use clap::{ArgAction, Parser};
use interop::server;
use tonic::transport::Server;
use tonic::transport::{Identity, ServerTlsConfig};

#[derive(Parser)]
struct Opts {
#[clap(name = "use_tls", long)]
#[clap(name = "use_tls", long, action = ArgAction::SetTrue)]
use_tls: bool,
}

Expand Down

0 comments on commit d9f5c75

Please sign in to comment.