Unfortunately, Rust 1.41 (as available in Debian 10) is too old for
object v0.23.0, a dependency of maturin:
error[E0658]: subslice patterns are unstable
--> /root/.cargo/registry/src/github.com-
1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:162:41
|
162 | [0x7f, b'E', b'L', b'F', 1, ..] => FileKind::Elf32,
| ^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/62254
... so we have to resort to rustup.
python3-setuptools python3-wheel pkg-config tcl-dev
libreadline-dev bison flex libffi-dev ccache python3-venv
binutils-powerpc64-linux-gnu binutils-powerpc64le-linux-gnu
- autoconf gperf libgmp-dev libmpfr-dev libssl-dev
+ autoconf gperf libgmp-dev libmpfr-dev libssl-dev curl
- export PATH="/usr/lib/ccache:$PATH"
- export CCACHE_BASEDIR="$PWD"
- export CCACHE_DIR="$PWD/ccache"
- export CCACHE_COMPILERCHECK=content
- ccache --zero-stats || true
- ccache --show-stats || true
+ - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
+ - source $HOME/.cargo/env
after_script:
- export CCACHE_DIR="$PWD/ccache"
- ccache --show-stats