diff --git a/.github/workflows/rust-msrv.yaml b/.github/workflows/rust-msrv.yaml new file mode 100644 index 000000000..3384e4a2f --- /dev/null +++ b/.github/workflows/rust-msrv.yaml @@ -0,0 +1,37 @@ +on: + push: + branches: + - main + - dev + pull_request: + branches: + - main + - dev + +name: MSRV 1.75 Check + +jobs: + + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + rust: + - 1.75.0 # MSRV + + steps: + - uses: actions/checkout@v2 + - uses: Swatinem/rust-cache@v1.2.0 + - uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ matrix.rust }} + override: true + - name: Build Benches + run: cargo build --manifest-path=benches/Cargo.toml + - name: Build Protocols + run: cargo build --manifest-path=protocols/Cargo.toml + - name: Build Roles + run: cargo build --manifest-path=roles/Cargo.toml + - name: Build Utils + run: cargo build --manifest-path=utils/Cargo.toml diff --git a/protocols/Cargo.toml b/protocols/Cargo.toml index 90d917fdd..d1f21ca36 100644 --- a/protocols/Cargo.toml +++ b/protocols/Cargo.toml @@ -2,7 +2,6 @@ name = "stratum_v2_protocols" version = "1.0.0" authors = ["The Stratum v2 Developers"] edition = "2021" -rust-version = "1.75.0" description = "The Stratum protocol defines how miners, proxies, and pools communicate to contribute hashrate to the Bitcoin network. Stratum v2 is a robust set of primitives which anyone can use to expand the protocol or implement a role." documentation = "https://github.com/stratum-mining/stratum" readme = "README.md" diff --git a/roles/Cargo.toml b/roles/Cargo.toml index 2155409ba..109cfd0ee 100644 --- a/roles/Cargo.toml +++ b/roles/Cargo.toml @@ -2,7 +2,6 @@ name = "stratum_v2_roles" version = "0.1.0" authors = ["The Stratum v2 Developers"] edition = "2021" -rust-version = "1.75.0" description = "The Stratum protocol defines how miners, proxies, and pools communicate to contribute hashrate to the Bitcoin network. Stratum v2 is a robust set of primitives which anyone can use to expand the protocol or implement a role." documentation = "https://github.com/stratum-mining/stratum" readme = "README.md" diff --git a/rust-toolchain.toml b/rust-toolchain.toml deleted file mode 100644 index ecc22580b..000000000 --- a/rust-toolchain.toml +++ /dev/null @@ -1,4 +0,0 @@ -[toolchain] -channel = "1.75.0" -components = [ "rustfmt", "clippy" ] -profile = "minimal" diff --git a/utils/Cargo.toml b/utils/Cargo.toml index 194360857..aa22ee1ae 100644 --- a/utils/Cargo.toml +++ b/utils/Cargo.toml @@ -2,7 +2,6 @@ name = "stratum_v2_utils" version = "1.0.0" authors = ["The Stratum v2 Developers"] edition = "2021" -rust-version = "1.75.0" description = "The Stratum protocol defines how miners, proxies, and pools communicate to contribute hashrate to the Bitcoin network. Stratum v2 is a robust set of primitives which anyone can use to expand the protocol or implement a role." documentation = "https://github.com/stratum-mining/stratum" readme = "README.md"