tests: only use PipeWriter if rust-version >= 1.87
By using conditional compilation, we now support running the test suite with Rust versions 1.83 to 1.86 again. This allows us to lower the `rust-version` specified in the root Cargo.toml (because it was controlling the toolchain used in CI) to 1.83, resolving #230. This solution keeps tests operational on our MSRV while also lowering it. It would have been unsatisfying to have an MSRV which could not compile the tests. `rustversion` was selected as the dependency to control the conditional compilation since it was already a build dependency needed by `vergen-gitcl`, so no new dependencies were added.
This commit is contained in:
parent
c0497c990d
commit
0fd0dd75e9
4 changed files with 38 additions and 10 deletions
5
Cargo.lock
generated
5
Cargo.lock
generated
|
|
@ -530,9 +530,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "rustversion"
|
||||
version = "1.0.21"
|
||||
version = "1.0.22"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8a0d197bd2c9dc6e53b84da9556a69ba4cdfab8619eb41a8bd1cc2027a0f6b1d"
|
||||
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
||||
|
||||
[[package]]
|
||||
name = "sd-notify"
|
||||
|
|
@ -635,6 +635,7 @@ name = "testwl"
|
|||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"rustix",
|
||||
"rustversion",
|
||||
"wayland-protocols",
|
||||
"wayland-server",
|
||||
"wl_drm",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue