Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update clap and examples #1444

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion quinn/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ directories-next = "2"
rand = "0.8"
rcgen = "0.10.0"
rustls-pemfile = "1.0.0"
clap = { version = "3.2", features = ["derive"] }
clap = { version = "4.0.26", features = ["derive"] }
tokio = { version = "1.0.1", features = ["rt", "rt-multi-thread", "time", "macros", "sync"] }
tracing-subscriber = { version = "0.3.0", default-features = false, features = ["env-filter", "fmt", "ansi", "time", "local-time"] }
tracing-futures = { version = "0.2.0", default-features = false, features = ["std-future"] }
Expand Down
2 changes: 1 addition & 1 deletion quinn/examples/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct Opt {
host: Option<String>,

/// Custom certificate authority to trust, in DER format
#[clap(parse(from_os_str), long = "ca")]
#[clap(value_parser = clap::value_parser!(PathBuf), long = "ca")]
ca: Option<PathBuf>,

/// Simulate NAT rebinding after connecting
Expand Down
6 changes: 3 additions & 3 deletions quinn/examples/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ struct Opt {
#[clap(long = "keylog")]
keylog: bool,
/// directory to serve files from
#[clap(parse(from_os_str))]
#[clap(value_parser = clap::value_parser!(PathBuf))]
root: PathBuf,
/// TLS private key in PEM format
#[clap(parse(from_os_str), short = 'k', long = "key", requires = "cert")]
#[clap(value_parser = clap::value_parser!(PathBuf), short = 'k', long = "key", requires = "cert")]
key: Option<PathBuf>,
/// TLS certificate in PEM format
#[clap(parse(from_os_str), short = 'c', long = "cert", requires = "key")]
#[clap(value_parser = clap::value_parser!(PathBuf), short = 'c', long = "cert", requires = "key")]
cert: Option<PathBuf>,
/// Enable stateless retries
#[clap(long = "stateless-retry")]
Expand Down