Skip to content

Commit c60541d

Browse files
bors[bot]adamgreig
andauthored
Merge #433
433: Change CI to build with Rust 1.32 and document that as MSRV r=reitermarkus a=adamgreig This PR adds a documented MSRV, per rust-embedded/wg#445 As far as I can tell none of the Azure pipelines use Xargo or nightly Rust, so I think this small change should be sufficient, but we'll see what CI makes of it. Co-authored-by: Adam Greig <[email protected]>
2 parents 8d7c07d + c79c0b2 commit c60541d

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,14 @@ $ QEMU_STRACE=1 cross run --target aarch64-unknown-linux-gnu
329329
work because `cross` use docker containers only mounts the Cargo project so
330330
the container doesn't have access to the rest of the filesystem.
331331

332+
## Minimum Supported Rust Version (MSRV)
333+
334+
This crate is guaranteed to compile on stable Rust 1.32.0 and up. It *might*
335+
compile with older versions but that may change in any new patch release.
336+
337+
Some cross-compilation targets require a later Rust version, and using Xargo
338+
requires a nightly Rust toolchain.
339+
332340
## License
333341

334342
Licensed under either of

azure-pipelines.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
vmImage: $(VM_IMAGE)
1515
variables:
1616
VM_IMAGE: ubuntu-latest
17-
TOOLCHAIN: stable
17+
TOOLCHAIN: 1.32.0
1818
CARGO_NET_RETRY: 3
1919
CARGO_HTTP_CHECK_REVOKE: false
2020
strategy:
@@ -32,7 +32,7 @@ jobs:
3232
powerpc-unknown-linux-gnu: { TARGET: powerpc-unknown-linux-gnu, CPP: 1, DYLIB: 1, STD: 1, RUN: 1, RUNNERS: qemu-user qemu-system }
3333
# powerpc64-unknown-linux-gnu: { TARGET: powerpc64-unknown-linux-gnu, CPP: 1, DYLIB: 1, STD: 1, RUN: 1, RUNNERS: qemu-user qemu-system }
3434
powerpc64le-unknown-linux-gnu: { TARGET: powerpc64le-unknown-linux-gnu, CPP: 1, DYLIB: 1, STD: 1, RUN: 1, RUNNERS: qemu-user qemu-system }
35-
riscv64gc-unknown-linux-gnu: { TARGET: riscv64gc-unknown-linux-gnu, CPP: 1, STD: 1, RUN: 1 }
35+
riscv64gc-unknown-linux-gnu: { TARGET: riscv64gc-unknown-linux-gnu, CPP: 1, STD: 1, RUN: 1, TOOLCHAIN: 1.42.0 }
3636
s390x-unknown-linux-gnu: { TARGET: s390x-unknown-linux-gnu, CPP: 1, DYLIB: 1, STD: 1, RUN: 1, RUNNERS: qemu-system }
3737
# sparc64-unknown-linux-gnu: { TARGET: sparc64-unknown-linux-gnu, CPP: 1, DYLIB: 1, STD: 1, RUN: 1, RUNNERS: qemu-system }
3838
x86_64-unknown-linux-gnu: { TARGET: x86_64-unknown-linux-gnu, CPP: 1, DYLIB: 1, STD: 1, RUN: 1, RUNNERS: native qemu-user qemu-system, DEPLOY: 1, CRATES_IO_PUBLISH: 1 }
@@ -62,14 +62,14 @@ jobs:
6262
x86_64-unknown-netbsd: { TARGET: x86_64-unknown-netbsd, CPP: 1, DYLIB: 1, STD: 1 }
6363
sparcv9-sun-solaris: { TARGET: sparcv9-sun-solaris, CPP: 1, DYLIB: 1, STD: 1 }
6464
x86_64-sun-solaris: { TARGET: x86_64-sun-solaris, CPP: 1, DYLIB: 1, STD: 1 }
65-
asmjs-unknown-emscripten: { TARGET: asmjs-unknown-emscripten, STD: 1, RUN: 1 }
65+
asmjs-unknown-emscripten: { TARGET: asmjs-unknown-emscripten, STD: 1, RUN: 1, TOOLCHAIN: 1.40.0 }
6666
# `cargo run` fails with an assertion error (https://github.com/rust-lang/cargo/issues/4689) on `wasm32-unknown-emscripten`.
6767
wasm32-unknown-emscripten: { TARGET: wasm32-unknown-emscripten, STD: 1 }
6868
thumbv6m-none-eabi: { TARGET: thumbv6m-none-eabi, STD: 1 }
6969
thumbv7em-none-eabi: { TARGET: thumbv7em-none-eabi, STD: 1 }
7070
thumbv7em-none-eabihf: { TARGET: thumbv7em-none-eabihf, STD: 1 }
7171
thumbv7m-none-eabi: { TARGET: thumbv7m-none-eabi, STD: 1 }
72-
x86_64-pc-windows-msvc: { TARGET: x86_64-pc-windows-msvc, CPP: 1, STD: 1, RUN: 1, VM_IMAGE: vs2017-win2016, DEPLOY: 1 }
72+
x86_64-pc-windows-msvc: { TARGET: x86_64-pc-windows-msvc, CPP: 1, STD: 1, RUN: 1, VM_IMAGE: vs2017-win2016, DEPLOY: 1, TOOLCHAIN: 1.38.0 }
7373
timeoutInMinutes: 360
7474
steps:
7575
- template: ci/azure-install-rust.yml

0 commit comments

Comments
 (0)