Skip to content

Commit

Permalink
Depend on rust 1.65.0
Browse files Browse the repository at this point in the history
scale-info v2.4.0 fails to compile with:

 error[E0658]: `let...else` statements are unstable
   --> /Users/runner/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/scale-info-2.4.0/src/portable.rs:124:17
    |
124 | /                 let Some(ty) = param.ty() else {
125 | |                     continue
126 | |                 };
    | |__________________^
    |
    = note: see issue #87335 <rust-lang/rust#87335> for more information

Signed-off-by: Sean Young <sean@mess.org>
  • Loading branch information
seanyoung committed Mar 24, 2023
1 parent 5d0fe58 commit 3cb849b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
submodules: recursive
- name: Rust stable
run: rustup default 1.64.0
run: rustup default 1.65.0
- name: Build
run: cargo build --verbose --release
- name: Run tests
Expand All @@ -40,7 +40,7 @@ jobs:
with:
submodules: recursive
- name: Rust stable
run: rustup default 1.64.0
run: rustup default 1.65.0
- name: Build
run: cargo build --verbose --release
- name: Run tests
Expand All @@ -67,7 +67,7 @@ jobs:
run: unzip c:\llvm.zip -d c:/
- name: Add LLVM to Path
run: echo "c:\llvm15.0\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
- uses: dtolnay/rust-toolchain@1.64.0
- uses: dtolnay/rust-toolchain@1.65.0
with:
components: clippy
- name: Build
Expand All @@ -91,7 +91,7 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@1.64.0
- uses: dtolnay/rust-toolchain@1.65.0
- name: Get LLVM
run: curl -L --output llvm15.0-mac-arm.tar.xz https://github.com/hyperledger/solang-llvm/releases/download/llvm15-0/llvm15.0-mac-arm.tar.xz
- name: Extract LLVM
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@1.64.0
- uses: dtolnay/rust-toolchain@1.65.0
- name: Get LLVM
run: wget -q -O llvm15.0-mac-intel.tar.xz https://github.com/hyperledger/solang-llvm/releases/download/llvm15-0/llvm15.0-mac-intel.tar.xz
- name: Extract LLVM
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
with:
submodules: recursive
- name: Rust stable
run: rustup default 1.64.0
run: rustup default 1.65.0
- name: Build
run: cargo build --verbose
- name: Run tests
Expand All @@ -87,7 +87,7 @@ jobs:
with:
submodules: recursive
- name: Rust stable
run: rustup default 1.64.0
run: rustup default 1.65.0
- name: Build
run: cargo build --verbose
- name: Run tests
Expand All @@ -111,7 +111,7 @@ jobs:
run: unzip c:\llvm.zip -d c:/
- name: Add LLVM to Path
run: echo "c:\llvm15.0\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
- uses: dtolnay/rust-toolchain@1.64.0
- uses: dtolnay/rust-toolchain@1.65.0
with:
components: clippy
# We run clippy on Linux in the lint job above, but this does not check #[cfg(windows)] items
Expand All @@ -135,7 +135,7 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@1.64.0
- uses: dtolnay/rust-toolchain@1.65.0
- name: Get LLVM
run: curl -L --output llvm15.0-mac-arm.tar.xz https://github.com/hyperledger/solang-llvm/releases/download/llvm15-0/llvm15.0-mac-arm.tar.xz
- name: Extract LLVM
Expand All @@ -159,7 +159,7 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@1.64.0
- uses: dtolnay/rust-toolchain@1.65.0
- name: Get LLVM
run: wget -q -O llvm15.0-mac-intel.tar.xz https://github.com/hyperledger/solang-llvm/releases/download/llvm15-0/llvm15.0-mac-intel.tar.xz
- name: Extract LLVM
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "Apache-2.0"
build = "build.rs"
description = "Solang Solidity Compiler"
keywords = [ "solidity", "compiler", "solana", "substrate" ]
rust-version = "1.64.0"
rust-version = "1.65.0"
edition = "2021"
exclude = [ "/.*", "/docs", "/examples", "/solana-library", "/tests", "/integration", "/vscode" ]

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COPY . src
WORKDIR /src/stdlib/
RUN make

RUN rustup default 1.64.0
RUN rustup default 1.65.0

WORKDIR /src
RUN cargo build --release
Expand Down
2 changes: 1 addition & 1 deletion docs/installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Then you can build the image using:
Option 5: Build Solang from source
----------------------------------

In order to build Solang from source, you will need rust 1.64.0 or higher,
In order to build Solang from source, you will need rust 1.65.0 or higher,
and a build of LLVM based on the Solana LLVM tree. There are a few LLVM patches required that are not upstream yet.
First, follow the steps below for installing LLVM and then proceed from there.

Expand Down

0 comments on commit 3cb849b

Please sign in to comment.