configure.ac: Rust 1.{39>41}.0 version bump

Relaxes orphan rules for foreign traits.

This also modifies the error to suggest how to update using rustup.
master
Mike Gerwitz 2020-02-02 00:49:28 -05:00
parent 10b9caa7ad
commit f177b6ae5d
1 changed files with 3 additions and 2 deletions

View File

@ -43,14 +43,15 @@ AC_CHECK_PROGS(CARGO, [cargo])
test -n "$CARGO" || AC_MSG_ERROR([cargo not found])
rustc_ver_req=1.39.0
rustc_ver_req=1.41.0
AC_CHECK_PROGS(RUSTC, [rustc])
AC_MSG_CHECKING([rustc version >= $rustc_ver_req])
rustc_version=$("$RUSTC" --version | cut -d' ' -f2)
AX_COMPARE_VERSION([$rustc_version], [ge], [$rustc_ver_req],
[AC_MSG_RESULT([yes ($rustc_version)])],
[AC_MSG_ERROR([no ($rustc_version)])])
[AC_MSG_RESULT([no ($rustc_version)])
AC_MSG_ERROR([If using rustup, run `rustup update'])])
AC_ARG_VAR([CARGO_BUILD_FLAGS],
[Flags to be passed to `cargo build' when invoked via Make])