Skip to content

Commit

Permalink
Update MSRV to 1.65.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nastevens committed May 10, 2024
1 parent 709bd24 commit 07d630e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 65 deletions.
83 changes: 20 additions & 63 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
on:
push:
branches: [ staging, trying, master ]
pull_request:
push: # Run CI for all branches except GitHub merge queue tmp branches
branches-ignore:
- "gh-readonly-queue/**"
pull_request: # Run CI for PRs on any branch
merge_group: # Run CI for the GitHub merge queue

name: CI
name: Build

env:
RUSTFLAGS: '--deny warnings'

jobs:
ci-linux:
name: CI
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable]
FEATURES: ["", "--features=async-tokio", "--features=mio-evented"]
TARGET:
- aarch64-unknown-linux-gnu
- aarch64-unknown-linux-musl
- arm-unknown-linux-gnueabi
- arm-unknown-linux-gnueabihf
- armv7-unknown-linux-gnueabihf
- i686-unknown-linux-gnu
- i686-unknown-linux-musl
- mips-unknown-linux-gnu
- mips64-unknown-linux-gnuabi64
- mips64el-unknown-linux-gnuabi64
- mipsel-unknown-linux-gnu
- powerpc-unknown-linux-gnu
# - powerpc64-unknown-linux-gnu
- powerpc64-unknown-linux-gnu
- powerpc64le-unknown-linux-gnu
- riscv64gc-unknown-linux-gnu
- s390x-unknown-linux-gnu
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl

include:
# MSRV
- rust: 1.46.0
- rust: 1.65.0
TARGET: x86_64-unknown-linux-gnu

# Test nightly but don't fail
Expand All @@ -58,37 +58,11 @@ jobs:
command: build
args: --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}

- name: Test
uses: actions-rs/cargo@v1
with:
use-cross: true
command: test
args: --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}

ci-linux-msrv:
name: CI
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.46.0]
FEATURES: ["", "--features=async-tokio", "--features=mio-evented"]
TARGET:
- x86_64-unknown-linux-gnu

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.TARGET }}
override: true

- name: Build
- name: Build all features
uses: actions-rs/cargo@v1
with:
command: build
args: --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}
args: --target=${{ matrix.TARGET }} --all-features

- name: Test
uses: actions-rs/cargo@v1
Expand All @@ -97,29 +71,12 @@ jobs:
command: test
args: --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}

ci-macos:
name: CI
runs-on: macos-11

strategy:
matrix:
rust: [stable, 1.46.0]
TARGET: [x86_64-apple-darwin]

steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.TARGET }}
override: true

- uses: actions-rs/cargo@v1
- name: Test all features
uses: actions-rs/cargo@v1
with:
command: build
args: --target=${{ matrix.TARGET }}
use-cross: true
command: test
args: --target=${{ matrix.TARGET }} --all-features

checks:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -152,7 +109,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.46.0
toolchain: 1.65.0
components: clippy

- uses: actions-rs/clippy-check@v1
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [master] - Unreleased

### Changed

- Minimum supported Rust version updated to 1.65.0

## [0.6.1] - 2021-11-22

### Changed
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sysfs_gpio

[![Build Status](https://github.com/rust-embedded/rust-sysfs-gpio/workflows/CI/badge.svg)](https://github.com/rust-embedded/rust-sysfs-gpio/actions)
[![Version](https://img.shields.io/crates/v/sysfs-gpio.svg)](https://crates.io/crates/sysfs-gpio)
![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.46+-blue.svg)
![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.65+-blue.svg)
[![License](https://img.shields.io/crates/l/sysfs-gpio.svg)](https://github.com/rust-embedded/rust-sysfs-gpio/blob/master/README.md#license)

- [API Documentation](https://docs.rs/sysfs_gpio)
Expand Down Expand Up @@ -85,7 +85,7 @@ The following features are planned for the library:

## Minimum Supported Rust Version (MSRV)

This crate is guaranteed to compile on stable Rust 1.46.0 and up. It *might*
This crate is guaranteed to compile on stable Rust 1.65.0 and up. It *might*
compile with older versions but that may change in any new patch release.

## Cross Compiling
Expand Down

0 comments on commit 07d630e

Please sign in to comment.