Rust 2021?

This commit is contained in:
CDrummond 2022-06-13 13:08:18 +01:00
parent a12971df17
commit 074be07d18
3 changed files with 2 additions and 12 deletions

View File

@ -66,18 +66,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v1
- name: Docker setup
run: |
docker run --rm -v $(pwd):/source dlecan/rust-crosscompiler-arm:stable
- name: Enable 2021 edition
run: |
echo 'cargo-features = ["edition2021"]' > /tmp/bliss-analyser-Cargo.toml
cat Cargo.toml >> /tmp/bliss-analyser-Cargo.toml
mv /tmp/bliss-analyser-Cargo.toml Cargo.toml
- name: Build
run: |
docker run --rm -v $(pwd):/source dlecan/rust-crosscompiler-arm:stable
docker build -t bliss-analyser-cross - < docker/Dockerfile
docker run --rm -v $PWD/target:/build -v $PWD:/src bliss-analyser-cross

View File

@ -2,7 +2,7 @@
name = "bliss-analyser"
version = "0.2.1"
authors = ["Craig Drummond <craig.p.drummond@gmail.com>"]
edition = "2018"
edition = "2021"
license = "GPL-3.0-only"
description = "Analyse audio files with bliss-rs"
repository = "https://github.com/CDrummond/bliss-analyser"

View File

@ -12,7 +12,6 @@ RUN apt-get install -y curl git build-essential gcc-multilib musl-tools musl-dev
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="/root/.cargo/bin/:${PATH}"
RUN rustup default nightly && rustup update
RUN rustup target add aarch64-unknown-linux-gnu && \
rustup target add arm-unknown-linux-gnueabihf