Skip to content

Commit

Permalink
Update MSRV to 1.60 and check on the CI
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sdroege authored and daniel-abramov committed Dec 8, 2023
1 parent 85463b2 commit e9604ac
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit e9604ac

Please sign in to comment.