git.delta.rocks / unique-network / refs/commits / 86f1faca1382

difftreelog

update rust and polkadot version

Igor Kozyrev2021-09-15parent: #cd42058.patch.diff
in: master

2 files changed

modifiedREADME.mddiffbeforeafterboth
6363
642. Remove all installed toolchains with `rustup toolchain list` and `rustup toolchain uninstall <toolchain>`.642. Remove all installed toolchains with `rustup toolchain list` and `rustup toolchain uninstall <toolchain>`.
6565
663. Install install nightly 2021-03-01 and make it default:663. Install install nightly 2021-06-28 and make it default:
6767
68```bash68```bash
69rustup toolchain install nightly-2021-03-0169rustup toolchain install nightly-2021-06-28
70rustup default nightly-2021-03-0170rustup default nightly-2021-06-28
71```71```
7272
734. Add wasm target for nightly toolchain:734. Add wasm target for nightly toolchain:
7474
75```bash75```bash
76rustup target add wasm32-unknown-unknown --toolchain nightly-2021-03-0176rustup target add wasm32-unknown-unknown --toolchain nightly-2021-06-28
77```77```
7878
795. Build:795. Build:
135135
136## Building and Running as Parachain locally136## Building and Running as Parachain locally
137137
138Rust toolchain: nightly-2021-04-23138Rust toolchain: nightly-2021-06-28
139Note: checkout this project and polkadot project (see below) in the sibling folders (both under the same folder)139Note: checkout this project and polkadot project (see below) in the sibling folders (both under the same folder)
140140
141### Build relay141### Build relay
142142
143```143```
144git clone https://github.com/paritytech/polkadot.git144git clone https://github.com/paritytech/polkadot.git
145cd polkadot145cd polkadot
146git checkout aa386760146git checkout release-v0.9.9
147cargo build --release147cargo build --release
148```148```
149149
208208
209First of all, add rust toolchain and make it default.209First of all, add rust toolchain and make it default.
210```bash210```bash
211rustup target add wasm32-unknown-unknown --toolchain nightly-2020-10-01211rustup target add wasm32-unknown-unknown --toolchain nightly-2021-06-28
212```212```
213213
214Then in "/node/src" run build command below214Then in "/node/src" run build command below
215```bash215```bash
216cargo +nightly-2020-10-01 build --release --features runtime-benchmarks216cargo +nightly-2021-06-28 build --release --features runtime-benchmarks
217```217```
218218
219Run benchmark219Run benchmark
modifiedtests/README.mddiffbeforeafterboth
51. Checkout polkadot in sibling folder with this project51. Checkout polkadot in sibling folder with this project
6```bash6```bash
7git clone https://github.com/paritytech/polkadot.git && cd polkadot7git clone https://github.com/paritytech/polkadot.git && cd polkadot
8git checkout aa38676098git checkout release-v0.9.9
9```9```
1010
112. Build with nightly-2021-04-23112. Build with nightly-2021-06-28
12```bash12```bash
13cargo build --release13cargo build --release
14```14```