PVF workers: some fixes for cargo run and cargo install (#7608)

- Update some places where `cargo run` was used
- Add note to error messages about `cargo build` before `cargo run`
- Fix call to `cargo install` in readme
This commit is contained in:
Marcin S
2023-08-14 12:14:30 -04:00
committed by GitHub
parent 1a07354f5c
commit 37dccb1435
4 changed files with 17 additions and 4 deletions
+6 -1
View File
@@ -93,7 +93,11 @@ cargo build --release
**Note:** compilation is a memory intensive process. We recommend having 4 GiB of physical RAM or swap available (keep in mind that if a build hits swap it tends to be very slow).
**Note:** if you want to move the built `polkadot` binary somewhere (e.g. into $PATH) you will also need to move `polkadot-execute-worker` and `polkadot-prepare-worker`. You can let cargo do all this for you by running `cargo install --path .`.
**Note:** if you want to move the built `polkadot` binary somewhere (e.g. into $PATH) you will also need to move `polkadot-execute-worker` and `polkadot-prepare-worker`. You can let cargo do all this for you by running:
```sh
cargo install --path . --locked
```
#### Build from Source with Docker
@@ -193,6 +197,7 @@ cargo test --workspace --release
You can start a development chain with:
```bash
cargo build
cargo run -- --dev
```