ソースを参照

update rust version to 1.72.0 (#1555)

https://github.com/hyperledger/solang/pull/1541 uses crate forge-fmt
which depends on rust 1.72

Signed-off-by: Govardhan G D <chioni1620@gmail.com>
Govardhan G D 2 年 前
コミット
55002c029d
5 ファイル変更13 行追加13 行削除
  1. 5 5
      .github/workflows/release.yml
  2. 5 5
      .github/workflows/test.yml
  3. 1 1
      Cargo.toml
  4. 1 1
      Dockerfile
  5. 1 1
      docs/installing.rst

+ 5 - 5
.github/workflows/release.yml

@@ -16,7 +16,7 @@ jobs:
       with:
       with:
         submodules: recursive
         submodules: recursive
     - name: Rust stable
     - name: Rust stable
-      run: rustup default 1.70.0
+      run: rustup default 1.72.0
     - name: Build
     - name: Build
       run: cargo build --verbose --release
       run: cargo build --verbose --release
     - name: Run tests
     - name: Run tests
@@ -40,7 +40,7 @@ jobs:
       with:
       with:
         submodules: recursive
         submodules: recursive
     - name: Rust stable
     - name: Rust stable
-      run: rustup default 1.70.0
+      run: rustup default 1.72.0
     - name: Build
     - name: Build
       run: cargo build --verbose --release
       run: cargo build --verbose --release
     - name: Run tests
     - name: Run tests
@@ -67,7 +67,7 @@ jobs:
       run: unzip c:\llvm.zip -d c:/
       run: unzip c:\llvm.zip -d c:/
     - name: Add LLVM to Path
     - name: Add LLVM to Path
       run: echo "c:\llvm15.0\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
       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:
       with:
         components: clippy
         components: clippy
     - name: Build
     - name: Build
@@ -91,7 +91,7 @@ jobs:
       uses: actions/checkout@v3
       uses: actions/checkout@v3
       with:
       with:
         submodules: recursive
         submodules: recursive
-    - uses: dtolnay/rust-toolchain@1.70.0
+    - uses: dtolnay/rust-toolchain@1.72.0
     - name: Get LLVM
     - 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
       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
     - name: Extract LLVM
@@ -121,7 +121,7 @@ jobs:
       uses: actions/checkout@v3
       uses: actions/checkout@v3
       with:
       with:
         submodules: recursive
         submodules: recursive
-    - uses: dtolnay/rust-toolchain@1.70.0
+    - uses: dtolnay/rust-toolchain@1.72.0
     - name: Get LLVM
     - 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
       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
     - name: Extract LLVM

+ 5 - 5
.github/workflows/test.yml

@@ -53,7 +53,7 @@ jobs:
       with:
       with:
         submodules: recursive
         submodules: recursive
     - name: Rust stable
     - name: Rust stable
-      run: rustup default 1.70.0
+      run: rustup default 1.72.0
     - name: Run cargo clippy
     - name: Run cargo clippy
       run: cargo clippy --workspace --tests --bins -- -D warnings
       run: cargo clippy --workspace --tests --bins -- -D warnings
     - name: Run cargo clippy without wasm_opt feature
     - name: Run cargo clippy without wasm_opt feature
@@ -86,7 +86,7 @@ jobs:
       with:
       with:
         submodules: recursive
         submodules: recursive
     - name: Rust stable
     - name: Rust stable
-      run: rustup default 1.70.0
+      run: rustup default 1.72.0
     - name: Build
     - name: Build
       run: cargo build --verbose
       run: cargo build --verbose
     - name: Run tests
     - name: Run tests
@@ -113,7 +113,7 @@ jobs:
     # Use C:\ as D:\ might run out of space
     # Use C:\ as D:\ might run out of space
     - name: "Use C: for rust temporary files"
     - name: "Use C: for rust temporary files"
       run: echo "CARGO_TARGET_DIR=C:\target" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
       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:
       with:
         components: clippy
         components: clippy
     # We run clippy on Linux in the lint job above, but this does not check #[cfg(windows)] items
     # 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
       uses: actions/checkout@v3
       with:
       with:
         submodules: recursive
         submodules: recursive
-    - uses: dtolnay/rust-toolchain@1.70.0
+    - uses: dtolnay/rust-toolchain@1.72.0
     - name: Get LLVM
     - 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
       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
     - name: Extract LLVM
@@ -166,7 +166,7 @@ jobs:
       uses: actions/checkout@v3
       uses: actions/checkout@v3
       with:
       with:
         submodules: recursive
         submodules: recursive
-    - uses: dtolnay/rust-toolchain@1.70.0
+    - uses: dtolnay/rust-toolchain@1.72.0
     - name: Get LLVM
     - 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
       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
     - name: Extract LLVM

+ 1 - 1
Cargo.toml

@@ -8,7 +8,7 @@ license = "Apache-2.0"
 build = "build.rs"
 build = "build.rs"
 description = "Solang Solidity Compiler"
 description = "Solang Solidity Compiler"
 keywords = [ "solidity", "compiler", "solana", "polkadot", "substrate" ]
 keywords = [ "solidity", "compiler", "solana", "polkadot", "substrate" ]
-rust-version = "1.70.0"
+rust-version = "1.72.0"
 edition = "2021"
 edition = "2021"
 exclude = [ "/.*", "/docs",  "/examples", "/solana-library", "/tests", "/integration", "/vscode", "/testdata" ]
 exclude = [ "/.*", "/docs",  "/examples", "/solana-library", "/tests", "/integration", "/vscode", "/testdata" ]
 
 

+ 1 - 1
Dockerfile

@@ -4,7 +4,7 @@ COPY . src
 WORKDIR /src/stdlib/
 WORKDIR /src/stdlib/
 RUN make
 RUN make
 
 
-RUN rustup default 1.70.0
+RUN rustup default 1.72.0
 
 
 WORKDIR /src
 WORKDIR /src
 RUN cargo build --release
 RUN cargo build --release

+ 1 - 1
docs/installing.rst

@@ -89,7 +89,7 @@ Option 5: Build Solang from source
 
 
 In order to build Solang from source, you will need:
 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 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.
 * A build of LLVM based on the Solana LLVM tree. There are a few LLVM patches required that are not upstream yet.