diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e39ca65ed..f3b5c2b64 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: with: submodules: recursive - name: Rust stable - run: rustup default 1.70.0 + run: rustup default 1.72.0 - name: Build run: cargo build --verbose --release - name: Run tests @@ -40,7 +40,7 @@ jobs: with: submodules: recursive - name: Rust stable - run: rustup default 1.70.0 + run: rustup default 1.72.0 - name: Build run: cargo build --verbose --release - name: Run tests @@ -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.70.0 + - uses: dtolnay/rust-toolchain@1.72.0 with: components: clippy - name: Build @@ -91,7 +91,7 @@ jobs: uses: actions/checkout@v3 with: submodules: recursive - - uses: dtolnay/rust-toolchain@1.70.0 + - uses: dtolnay/rust-toolchain@1.72.0 - name: Get LLVM run: curl -sSL --output llvm15.0-mac-arm.tar.xz https://github.com/hyperledger/solang-llvm/releases/download/llvm15-1/llvm15.0-mac-arm.tar.xz - name: Extract LLVM @@ -121,7 +121,7 @@ jobs: uses: actions/checkout@v3 with: submodules: recursive - - uses: dtolnay/rust-toolchain@1.70.0 + - uses: dtolnay/rust-toolchain@1.72.0 - name: Get LLVM run: wget -q -O llvm15.0-mac-intel.tar.xz https://github.com/hyperledger/solang-llvm/releases/download/llvm15-1/llvm15.0-mac-intel.tar.xz - name: Extract LLVM diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 007d7d03a..f66c98f8d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,7 +53,7 @@ jobs: with: submodules: recursive - name: Rust stable - run: rustup default 1.70.0 + run: rustup default 1.72.0 - name: Run cargo clippy run: cargo clippy --workspace --tests --bins -- -D warnings - name: Run cargo clippy without wasm_opt feature @@ -86,7 +86,7 @@ jobs: with: submodules: recursive - name: Rust stable - run: rustup default 1.70.0 + run: rustup default 1.72.0 - name: Build run: cargo build --verbose - name: Run tests @@ -113,7 +113,7 @@ jobs: # Use C:\ as D:\ might run out of space - name: "Use C: for rust temporary files" run: echo "CARGO_TARGET_DIR=C:\target" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append - - uses: dtolnay/rust-toolchain@1.70.0 + - uses: dtolnay/rust-toolchain@1.72.0 with: components: clippy # We run clippy on Linux in the lint job above, but this does not check #[cfg(windows)] items @@ -140,7 +140,7 @@ jobs: uses: actions/checkout@v3 with: submodules: recursive - - uses: dtolnay/rust-toolchain@1.70.0 + - uses: dtolnay/rust-toolchain@1.72.0 - name: Get LLVM run: curl -sSL --output llvm15.0-mac-arm.tar.xz https://github.com/hyperledger/solang-llvm/releases/download/llvm15-1/llvm15.0-mac-arm.tar.xz - name: Extract LLVM @@ -166,7 +166,7 @@ jobs: uses: actions/checkout@v3 with: submodules: recursive - - uses: dtolnay/rust-toolchain@1.70.0 + - uses: dtolnay/rust-toolchain@1.72.0 - name: Get LLVM run: wget -q -O llvm15.0-mac-intel.tar.xz https://github.com/hyperledger/solang-llvm/releases/download/llvm15-1/llvm15.0-mac-intel.tar.xz - name: Extract LLVM diff --git a/Cargo.toml b/Cargo.toml index 98cda6185..5e02b0e39 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ license = "Apache-2.0" build = "build.rs" description = "Solang Solidity Compiler" keywords = [ "solidity", "compiler", "solana", "polkadot", "substrate" ] -rust-version = "1.70.0" +rust-version = "1.72.0" edition = "2021" exclude = [ "/.*", "/docs", "/examples", "/solana-library", "/tests", "/integration", "/vscode", "/testdata" ] diff --git a/Dockerfile b/Dockerfile index d5738ba94..44e9bc26c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ COPY . src WORKDIR /src/stdlib/ RUN make -RUN rustup default 1.70.0 +RUN rustup default 1.72.0 WORKDIR /src RUN cargo build --release diff --git a/docs/installing.rst b/docs/installing.rst index 54af77b33..c1ac0beeb 100644 --- a/docs/installing.rst +++ b/docs/installing.rst @@ -89,7 +89,7 @@ Option 5: Build Solang from source In order to build Solang from source, you will need: -* Rust version 1.70.0 or higher +* Rust version 1.72.0 or higher * A C++ compiler with support for C++17 * A build of LLVM based on the Solana LLVM tree. There are a few LLVM patches required that are not upstream yet.