Skip to content

Find Minimum Required Rust Version

Actions
Runs cargo-msrv on multiple paths and finds the highest minimum Rust version required
v1
Latest
Star (0)

README

This README provides information about the detect-rust-minimum-version action.

Description

The detect-rust-minimum-version action is a GitHub Action that detects the minimum required version of Rust for a Rust project. It scans the project's source code and analyzes the Cargo.toml file to determine the minimum required version.

Usage

To use this action, you can include it in your workflow file as follows:

name: Detect Rust Minimum Version

on:
    push:
        branches:
            - main

jobs:
    detect-rust-minimum-version:
        runs-on: ubuntu-latest

        steps:
            - name: Checkout repository
              uses: actions/checkout@v4

            - name: Detect Rust Minimum Version
              id: rust-version
              uses: derrix060/detect-rust-minimum-version@v1
              with:
                repos: repo/my-path1,repo/my-path2
            
            - name: Print version
              run: echo "Minimum rust version is ${{ steps.rust-version.outputs.highest-msrv }}"

Inputs

  • paths (optional): A comma-separated list of relative paths to the directories or files that should be scanned for detecting the minimum required version of Rust. If not provided, the action will default to the current location.

Outputs

  • highest-msrv: The highest minimum Rust version required, based on a AND operation on all paths. It basically means that it is the highest msrv for all the paths.

License

This action is licensed under the MIT License.

Find Minimum Required Rust Version is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Runs cargo-msrv on multiple paths and finds the highest minimum Rust version required
v1
Latest

Find Minimum Required Rust Version is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.