diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index b57d304d4..a659a6d03 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -178,6 +178,11 @@ made to run fish_indent via e.g. (add-hook 'fish-mode-hook (lambda () (add-hook 'before-save-hook 'fish_indent-before-save))) +Minimum Supported Rust Version (MSRV) Policy +-------------------------------------------- + +We support at least the version of ``rustc`` available in Debian Stable. + Rust Style Guide ---------------- diff --git a/build_tools/check.sh b/build_tools/check.sh index ec8bf1226..1db1c5671 100755 --- a/build_tools/check.sh +++ b/build_tools/check.sh @@ -8,6 +8,64 @@ if [ "$FISH_CHECK_LINT" = false ]; then lint=false fi +check_dependency_versions=false +if [ "${FISH_CHECK_DEPENDENCY_VERSIONS:-false}" != false ]; then + check_dependency_versions=true +fi + +if $check_dependency_versions; then + command -v curl + command -v jq + command -v rustup + sort --version-sort = $today) + | "\(.cycle)" + ' | + sort --version-sort | + head -1 + ) + grep -qFx "FROM ubuntu:$ubuntu_oldest_alive_version" \ + docker/ubuntu-oldest-supported.Dockerfile +fi + cargo_args=$FISH_CHECK_CARGO_ARGS target_triple=$FISH_CHECK_TARGET_TRIPLE if [ -n "$target_triple" ]; then