From 8ddd75d4bcecee13603ccae549a716eced2f9aae Mon Sep 17 00:00:00 2001 From: Wilfried Kopp Date: Tue, 23 May 2023 15:10:39 +0200 Subject: [PATCH 1/2] Add staking-miner bin --- Cargo.toml | 4 ++++ utils/staking-miner/Cargo.toml | 4 ++++ utils/staking-miner/README.md | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 02722fd28653..8dadf120eb3b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,10 @@ name = "polkadot" path = "src/main.rs" +[[bin]] +name = "staking-miner" +path = "utils/staking-miner/src/main.rs" + [package] name = "polkadot" description = "Implementation of a `https://polkadot.network` node in Rust based on the Substrate framework." diff --git a/utils/staking-miner/Cargo.toml b/utils/staking-miner/Cargo.toml index e34b29a285a3..081b4648416f 100644 --- a/utils/staking-miner/Cargo.toml +++ b/utils/staking-miner/Cargo.toml @@ -1,3 +1,7 @@ +[[bin]] +name = "staking-miner" +path = "src/main.rs" + [package] name = "staking-miner" version.workspace = true diff --git a/utils/staking-miner/README.md b/utils/staking-miner/README.md index 593e8ad8877d..5c913bf2c12f 100644 --- a/utils/staking-miner/README.md +++ b/utils/staking-miner/README.md @@ -16,7 +16,7 @@ staking-miner --help You can build from the root of the Polkadot repository using: ``` -cargo build --release --locked --package staking-miner +cargo build --profile production --locked --bin staking-miner ``` ## Docker From dce7f9732b652543449109de903a82ed2ae02b47 Mon Sep 17 00:00:00 2001 From: Wilfried Kopp Date: Wed, 24 May 2023 12:12:27 +0200 Subject: [PATCH 2/2] Fix build and doc --- Cargo.toml | 4 ---- utils/staking-miner/README.md | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8dadf120eb3b..02722fd28653 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,10 +2,6 @@ name = "polkadot" path = "src/main.rs" -[[bin]] -name = "staking-miner" -path = "utils/staking-miner/src/main.rs" - [package] name = "polkadot" description = "Implementation of a `https://polkadot.network` node in Rust based on the Substrate framework." diff --git a/utils/staking-miner/README.md b/utils/staking-miner/README.md index 5c913bf2c12f..4148677ee7ca 100644 --- a/utils/staking-miner/README.md +++ b/utils/staking-miner/README.md @@ -16,7 +16,7 @@ staking-miner --help You can build from the root of the Polkadot repository using: ``` -cargo build --profile production --locked --bin staking-miner +cargo build --profile production --locked --package staking-miner --bin staking-miner ``` ## Docker