Update MSRV to 1.60 and check on the CI

The code does not actually compile anymore with 1.51.

Also only run `cargo check` with 1.60 as various optional features,
tests, benchmarks actually require newer Rust versions.
This commit is contained in:
Sebastian Dröge 2023-12-08 12:34:25 +02:00 committed by Daniel Abramov
parent 85463b264e
commit e9604ac35b
2 changed files with 25 additions and 1 deletions

View File

@ -43,6 +43,30 @@ jobs:
- name: Test
run: cargo test --release
test-msvr:
name: Test MSRV
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.60.0
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Install dependencies
run: sudo apt-get install libssl-dev
- name: Check
run: cargo check
autobahn:
name: Autobahn tests
runs-on: ubuntu-latest

View File

@ -11,7 +11,7 @@ documentation = "https://docs.rs/tungstenite/0.21.0"
repository = "https://github.com/snapview/tungstenite-rs"
version = "0.21.0"
edition = "2018"
rust-version = "1.51"
rust-version = "1.60"
include = ["benches/**/*", "src/**/*", "examples/**/*", "LICENSE-*", "README.md", "CHANGELOG.md"]
[package.metadata.docs.rs]