Эх сурвалжийг харах

Rust 1.59.0 is now required

solang uses tower-lsp, which depends on dashmap. The latest version of
dashmap requires rust 1.59.0.

dashmap uses std::thread::available_parallelism().

Signed-off-by: Sean Young <sean@mess.org>
Sean Young 3 жил өмнө
parent
commit
5c75bca16e

+ 1 - 1
.github/Dockerfile

@@ -29,7 +29,7 @@ RUN apt-get clean
 RUN apt-get autoclean
 RUN apt-get autoclean
 
 
 # Get Rust
 # Get Rust
-RUN curl https://sh.rustup.rs -sSf | bash -s -- -y --default-toolchain 1.56.1
+RUN curl https://sh.rustup.rs -sSf | bash -s -- -y --default-toolchain 1.59.0
 
 
 COPY --from=builder /llvm13.0 /llvm13.0/
 COPY --from=builder /llvm13.0 /llvm13.0/
 
 

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

@@ -34,7 +34,7 @@ jobs:
     - name: Add LLVM to Path
     - name: Add LLVM to Path
       run: echo "$(pwd)/llvm13.0/bin" >> $GITHUB_PATH
       run: echo "$(pwd)/llvm13.0/bin" >> $GITHUB_PATH
     - name: Rust stable
     - name: Rust stable
-      run: rustup default 1.56.1
+      run: rustup default 1.59.0
     - name: Build
     - name: Build
       run: cargo build --verbose --release
       run: cargo build --verbose --release
     - name: Run tests
     - name: Run tests
@@ -74,7 +74,7 @@ jobs:
     - name: Add LLVM to Path
     - name: Add LLVM to Path
       run: echo "$(pwd)/llvm13.0/bin" >> $GITHUB_PATH
       run: echo "$(pwd)/llvm13.0/bin" >> $GITHUB_PATH
     - name: Rust stable
     - name: Rust stable
-      run: rustup default 1.56.1
+      run: rustup default 1.59.0
     - name: Build
     - name: Build
       run: cargo build --verbose --release
       run: cargo build --verbose --release
     - name: Run tests
     - name: Run tests

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

@@ -40,7 +40,7 @@ jobs:
       # checkout@v2 requires git 2.18 or higher, which is not in our image
       # checkout@v2 requires git 2.18 or higher, which is not in our image
       uses: actions/checkout@v1
       uses: actions/checkout@v1
     - name: Rust stable
     - name: Rust stable
-      run: rustup default 1.56.1
+      run: rustup default 1.59.0
     - name: Build
     - name: Build
       run: cargo build --verbose
       run: cargo build --verbose
     - name: Run tests
     - name: Run tests
@@ -61,7 +61,7 @@ jobs:
       # checkout@v2 requires git 2.18 or higher, which is not in our image
       # checkout@v2 requires git 2.18 or higher, which is not in our image
       uses: actions/checkout@v1
       uses: actions/checkout@v1
     - name: Rust stable
     - name: Rust stable
-      run: rustup default 1.56.1
+      run: rustup default 1.59.0
     - name: Build
     - name: Build
       run: cargo build --verbose
       run: cargo build --verbose
     - name: Run tests
     - name: Run tests

+ 1 - 1
Dockerfile

@@ -12,7 +12,7 @@ COPY . src
 WORKDIR /src/stdlib/
 WORKDIR /src/stdlib/
 RUN make
 RUN make
 
 
-RUN rustup default 1.56.1
+RUN rustup default 1.59.0
 
 
 WORKDIR /src
 WORKDIR /src
 RUN cargo build --release
 RUN cargo build --release

+ 1 - 1
docs/installing.rst

@@ -49,7 +49,7 @@ Then you can build the image using:
 Building Solang from source
 Building Solang from source
 ---------------------------
 ---------------------------
 
 
-In order to build Solang from source, you will need rust 1.56.1 or higher,
+In order to build Solang from source, you will need rust 1.59.0 or higher,
 and a build of llvm based on the Solana llvm tree. There are a few patches which are not upstream yet.
 and a build of llvm based on the Solana llvm tree. There are a few patches which are not upstream yet.
 First, follow the steps below for installing llvm and then proceed from there.
 First, follow the steps below for installing llvm and then proceed from there.