From c756657bd20bfe0e81173266ee0d454c3b035958 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Fri, 26 Mar 2021 08:13:25 +1300 Subject: [PATCH] Set MSRV to 1.51.0 Yay const generics! --- .github/workflows/ci.yml | 20 ++++++++++++-------- README.md | 2 ++ rust-toolchain | 1 + 3 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 rust-toolchain diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b27d1406..df41eeb1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: - toolchain: stable + toolchain: 1.51.0 override: true - name: Run tests uses: actions-rs/cargo@v1 @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: - toolchain: stable + toolchain: 1.51.0 override: true # Build benchmarks to prevent bitrot - name: Build benchmarks @@ -44,6 +44,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: 1.51.0 + override: true - name: Setup mdBook uses: peaceiris/actions-mdbook@v1 with: @@ -52,20 +56,20 @@ jobs: run: mdbook test book/ clippy: - name: Clippy (stable) + name: Clippy (1.51.0) timeout-minutes: 30 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: - toolchain: stable + toolchain: 1.51.0 components: clippy override: true - name: Run clippy uses: actions-rs/clippy-check@v1 with: - name: Clippy (stable) + name: Clippy (1.51.0) token: ${{ secrets.GITHUB_TOKEN }} args: --all-features --all-targets -- -D warnings @@ -123,7 +127,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: - toolchain: nightly + toolchain: 1.51.0 override: true - name: cargo fetch uses: actions-rs/cargo@v1 @@ -136,7 +140,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: doc - args: --all --document-private-items + args: --document-private-items fmt: name: Rustfmt @@ -146,7 +150,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: - toolchain: stable + toolchain: 1.51.0 override: true - run: rustup component add rustfmt - uses: actions-rs/cargo@v1 diff --git a/README.md b/README.md index 38308111..ebec7d79 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ **IMPORTANT**: This library is being actively developed and should not be used in production software. +Requires Rust 1.51+. + ## Documentation - [The Orchard Book](https://zcash.github.io/orchard/) diff --git a/rust-toolchain b/rust-toolchain new file mode 100644 index 00000000..ba0a7191 --- /dev/null +++ b/rust-toolchain @@ -0,0 +1 @@ +1.51.0