diff --git a/pingora-core/Cargo.toml b/pingora-core/Cargo.toml index c5bce77e..95fdc998 100644 --- a/pingora-core/Cargo.toml +++ b/pingora-core/Cargo.toml @@ -36,7 +36,7 @@ log = { workspace = true } h2 = { workspace = true } lru = { workspace = true } nix = "~0.24.3" -clap = { version = "3.2.25", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } once_cell = { workspace = true } serde = { version = "1.0", features = ["derive"] } serde_yaml = "0.8" @@ -81,4 +81,4 @@ jemallocator = "0.5" default = ["openssl"] openssl = ["pingora-openssl"] boringssl = ["pingora-boringssl"] -patched_http1 = [] \ No newline at end of file +patched_http1 = [] diff --git a/pingora-core/src/server/configuration/mod.rs b/pingora-core/src/server/configuration/mod.rs index 5174d407..0a5f8a0a 100644 --- a/pingora-core/src/server/configuration/mod.rs +++ b/pingora-core/src/server/configuration/mod.rs @@ -137,7 +137,7 @@ pub struct Opt { /// Not actually used. This flag is there so that the server is not upset seeing this flag /// passed from `cargo test` sometimes - #[clap(long, hidden = true)] + #[clap(long, hide = true)] pub nocapture: bool, /// Test the configuration and exit diff --git a/pingora-proxy/Cargo.toml b/pingora-proxy/Cargo.toml index 0a52dffd..b386a0f2 100644 --- a/pingora-proxy/Cargo.toml +++ b/pingora-proxy/Cargo.toml @@ -31,7 +31,7 @@ async-trait = { workspace = true } log = { workspace = true } h2 = { workspace = true } once_cell = { workspace = true } -clap = { version = "3.2.25", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } regex = "1" [dev-dependencies] @@ -61,4 +61,4 @@ boringssl = ["pingora-core/boringssl", "pingora-cache/boringssl"] rustdoc-args = ["--cfg", "doc_async_trait"] [lints.rust] -unexpected_cfgs = { level = "warn", check-cfg = ['cfg(doc_async_trait)'] } \ No newline at end of file +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(doc_async_trait)'] } diff --git a/pingora/Cargo.toml b/pingora/Cargo.toml index 7f5e1011..45067430 100644 --- a/pingora/Cargo.toml +++ b/pingora/Cargo.toml @@ -30,7 +30,7 @@ pingora-proxy = { version = "0.3.0", path = "../pingora-proxy", optional = true, pingora-cache = { version = "0.3.0", path = "../pingora-cache", optional = true, default-features = false } [dev-dependencies] -clap = { version = "3.2.25", features = ["derive"] } +clap = { version = "4.4", features = ["derive"] } tokio = { workspace = true, features = ["rt-multi-thread", "signal"] } matches = "0.1" env_logger = "0.9"