diff --git a/quinn/Cargo.toml b/quinn/Cargo.toml index 92f2ad3dd..261f8138d 100644 --- a/quinn/Cargo.toml +++ b/quinn/Cargo.toml @@ -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"] } diff --git a/quinn/examples/client.rs b/quinn/examples/client.rs index 3d358cae8..c505a0905 100644 --- a/quinn/examples/client.rs +++ b/quinn/examples/client.rs @@ -33,7 +33,7 @@ struct Opt { host: Option, /// 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, /// Simulate NAT rebinding after connecting diff --git a/quinn/examples/server.rs b/quinn/examples/server.rs index a2ce0dc0f..9c8c2b48a 100644 --- a/quinn/examples/server.rs +++ b/quinn/examples/server.rs @@ -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, /// 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, /// Enable stateless retries #[clap(long = "stateless-retry")]