cargo: bump minimum Rust version to 1.63
authorLuca BRUNO <luca.bruno@coreos.com>
Fri, 18 Nov 2022 09:13:12 +0000 (09:13 +0000)
committerLuca BRUNO <luca.bruno@coreos.com>
Mon, 21 Nov 2022 15:20:07 +0000 (15:20 +0000)
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

.github/workflows/rust.yml
Cargo.toml

index 6e468fd6648ac3042511b0f3029247971dd60d71..a3bb8678b81bc99e83e945c083cec012be72ece0 100644 (file)
@@ -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
 
@@ -38,6 +36,13 @@ jobs:
     steps:
       - name: Checkout repository
         uses: actions/checkout@v2
+      - 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: Remove system Rust toolchain
         run: dnf remove -y rust cargo
       - name: Install toolchain
index 8cee182d4ac0b6afb83a72d62359e1bb6132f49a..e97aeb2bc8ecfe48a3ce25f111126f1ed536d252 100644 (file)
@@ -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 = [