cargo: fix build issue with cargo-c

Using ubuntu 20.04, the build was failing with version
cargo 0.47 / rustc 1.47.

Following this discussion:
https://github.com/rust-lang/cargo/issues/9340

it appears that rustc 1.52 is the minimum version.
This commit is contained in:
Stéphane Cerveau 2021-05-14 12:40:31 +02:00
parent 3b37c87182
commit 6b5e536ca6

View file

@ -13,6 +13,7 @@ endif
cargo = find_program('cargo', version:'>=1.40')
cargo_wrapper = find_program('cargo_wrapper.py')
cargo_c = find_program('cargo-cbuild', required: false)
rustc = find_program('rustc', version:'>=1.52')
if not cargo_c.found()
error('cargo-c missing, install it with: \'cargo install cargo-c\'')