Skip to content

Commit

Permalink
cargo: bump minimum Rust version to 1.63
Browse files Browse the repository at this point in the history
This bumps MSRV to 1.63, in order to prepare for the next version
of gtk-rs stack.

Ref: https://gtk-rs.org/blog/2022/10/18/new-release.html
  • Loading branch information
lucab committed Nov 18, 2022
1 parent 0dbd87c commit e35130c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ env:
CARGO_PROJECT_FEATURES: "v2021_5,cap-std-apis"
# TODO: Automatically query this from the C side
LATEST_LIBOSTREE: "v2022_6"
# Minimum supported Rust version (MSRV)
ACTION_MSRV_TOOLCHAIN: 1.58.1
# Pinned toolchain for linting
ACTION_LINTS_TOOLCHAIN: 1.64.0

Expand All @@ -40,6 +38,13 @@ jobs:
uses: actions/checkout@v2
- name: Remove system Rust toolchain
run: dnf remove -y rust cargo
- name: Detect crate MSRV
shell: bash
run: |
msrv=$(cargo metadata --format-version 1 --no-deps | \
jq -r '.packages | .[0].rust_version')
echo "Crate MSRV: $msrv"
echo "ACTION_MSRV_TOOLCHAIN=$msrv" >> $GITHUB_ENV
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ license = "MIT"
name = "ostree"
readme = "rust-bindings/README.md"
repository = "https://github.com/ostreedev/ostree"
rust-version = "1.63.0"
version = "0.16.0"

exclude = [
Expand Down

0 comments on commit e35130c

Please sign in to comment.