From 21f4d9ef2d84955bd323c62663ce291a0afdfef2 Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Wed, 21 Apr 2021 09:09:38 +0200 Subject: [PATCH 1/2] Remove deprecated `check` command --- CHANGELOG.md | 1 + README.md | 1 - src/main.rs | 6 ------ 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca1ce2f4..6dc3ea49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed - Remove support for `--binaryen-as-dependency` - [#251](https://github.com/paritytech/cargo-contract/pull/251) +- Remove support for the deprecated `cargo contract check` command - [#265](https://github.com/paritytech/cargo-contract/pull/265) ## [0.11.1] - 2021-04-06 diff --git a/README.md b/README.md index 5869c4f6..72d96b86 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,6 @@ SUBCOMMANDS: new Setup and create a new smart contract project build Compiles the contract, generates metadata, bundles both together in a `.contract` file - generate-metadata Command has been deprecated, use `cargo contract build` instead check Check that the code builds as Wasm; does not output any `.contract` artifact to the `target/` directory test Test the smart contract off-chain diff --git a/src/main.rs b/src/main.rs index 321a4ebc..5fa76b9a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -378,9 +378,6 @@ enum Command { /// Compiles the contract, generates metadata, bundles both together in a `.contract` file #[structopt(name = "build")] Build(BuildCommand), - /// Command has been deprecated, use `cargo contract build` instead - #[structopt(name = "generate-metadata")] - GenerateMetadata {}, /// Check that the code builds as Wasm; does not output any `.contract` artifact to the `target/` directory #[structopt(name = "check")] Check(CheckCommand), @@ -475,9 +472,6 @@ fn exec(cmd: Command) -> Result> { Ok(None) } } - Command::GenerateMetadata {} => Err(anyhow::anyhow!( - "Command deprecated, use `cargo contract build` instead" - )), Command::Test {} => Err(anyhow::anyhow!("Command unimplemented")), #[cfg(feature = "extrinsics")] Command::Deploy { -- GitLab From 5964872f39eca54d304c9c49b979f434201a1591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Wed, 21 Apr 2021 10:47:50 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md Co-authored-by: Andrew Jones --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6dc3ea49..e9e0d733 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed - Remove support for `--binaryen-as-dependency` - [#251](https://github.com/paritytech/cargo-contract/pull/251) -- Remove support for the deprecated `cargo contract check` command - [#265](https://github.com/paritytech/cargo-contract/pull/265) +- Remove support for the deprecated `cargo contract generate-metadata` command - [#265](https://github.com/paritytech/cargo-contract/pull/265) ## [0.11.1] - 2021-04-06 -- GitLab