File: check-msrv-consistency.sh

package info (click to toggle)
rust-pathfinding 4.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 1,024 kB
  • sloc: sh: 19; makefile: 2
file content (10 lines) | stat: -rwxr-xr-x 198 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#! /bin/sh
#

set -e

MSRV=$(awk -F '"' '/^rust-version =/ {print $2}' < Cargo.toml)
if ! grep "Rust $MSRV" src/lib.rs > /dev/null 2>&1; then
  echo "MSRV $MSRV not found in src/lib.rs"
  exit 1
fi