From a47c8f08d34cd09fbc583a11bbbe7b592e05592a Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 13 Jun 2022 19:29:33 +0200 Subject: [PATCH] xtask: Prevent Cargo from upgrading clap to 3.2 https://github.com/clap-rs/clap/issues/3822 --- xtask/Cargo.toml | 2 +- xtask/src/doc.rs | 1 + xtask/src/release.rs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index 48f592483d..4c812429a4 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -8,7 +8,7 @@ publish = false default = ["isahc", "semver", "toml_edit"] [dependencies] -clap = { version = "3.1.6", features = ["derive"] } +clap = { version = "~3.1", features = ["derive"] } isahc = { version = "1.7.0", features = ["json"], optional = true } semver = { version = "1.0.6", features = ["serde"], optional = true } serde = { version = "1.0.136", features = ["derive"] } diff --git a/xtask/src/doc.rs b/xtask/src/doc.rs index ea36191ca5..4b49c430ea 100644 --- a/xtask/src/doc.rs +++ b/xtask/src/doc.rs @@ -3,6 +3,7 @@ use clap::Args; use crate::{cmd, Result}; #[derive(Args)] +#[allow(deprecated)] pub struct DocTask { /// Open the browser when the docs are built. #[clap(long)] diff --git a/xtask/src/release.rs b/xtask/src/release.rs index c37c824ad5..e22d259ad4 100644 --- a/xtask/src/release.rs +++ b/xtask/src/release.rs @@ -19,6 +19,7 @@ use crate::{cargo::Package, cmd, util::ask_yes_no, GithubConfig, Metadata, Resul const GITHUB_API_RUMA: &str = "https://api.github.com/repos/ruma/ruma"; #[derive(Args)] +#[allow(deprecated)] pub struct ReleaseArgs { /// The crate to release pub package: String,