Skip to content

Commit

Permalink
Stable rust version
Browse files Browse the repository at this point in the history
Ekaanth committed Feb 7, 2024
1 parent 261fc31 commit 82acf07
Showing 3 changed files with 6 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -26,12 +26,11 @@ jobs:
- uses: actions/checkout@v3

# SBP-M2 review: use stable toolchain
- name: Rust Setup
uses: dtolnay/rust-toolchain@master
with:
targets: wasm32-unknown-unknown
toolchain: nightly-2023-05-22
toolchain: stable

- name: Rustfmt
uses: actions-rs/cargo@v1
11 changes: 4 additions & 7 deletions docs/rust-setup.md
Original file line number Diff line number Diff line change
@@ -9,8 +9,7 @@ source ~/.cargo/env
Ubuntu:
```sh
sudo apt update
# SBP-M2 review: missing protobuf-compiler
sudo apt install -y cmake pkg-config libssl-dev git gcc build-essential git clang libclang-dev
sudo apt install -y cmake pkg-config libssl-dev git gcc build-essential protobuf-compiler git clang libclang-dev
```
Arch Linux:
```sh
@@ -24,11 +23,9 @@ brew update
brew install openssl cmake llvm
```

# SBP-M2 review: use stable
- ### Install the `wasm` target and the `nightly` toolchain for rust
- ### Install the `wasm` target and the `stable` toolchain for rust

# SBP-M2 review: use stable
```sh
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
rustup update stable
rustup target add wasm32-unknown-unknown --toolchain stable
```
3 changes: 1 addition & 2 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[toolchain]
# SBP-M2 review: nightly no longer required - https://github.com/paritytech/polkadot-sdk/releases/tag/polkadot-v1.2.0
channel = "nightly-2023-05-22"
channel = "stable"
components = [
"cargo",
"clippy",

0 comments on commit 82acf07

Please sign in to comment.