Skip to content

Commit

Permalink
build: increase Minimum Supported Rust Version (MSRV) to 1.60 (#74)
Browse files Browse the repository at this point in the history
Needed to update `tempfile` dev-dependency.

It seems older Rust versions validate dev-dependencies with registry
even if build does not need dev-dependencies. And that fails with error:

```
0.749     Updating crates.io index
33.93 error: failed to select a version for the requirement `rustix = "^0.38.21"`
33.93 candidate versions found which didn't match: 0.38.9, 0.38.8, 0.38.7, ...
33.93 location searched: crates.io index
33.93 required by package `tempfile v3.8.1`
33.93     ... which satisfies dependency `tempfile = "^3.8.1"` of package `posix-acl v1.1.0 (/root/build)`
```
  • Loading branch information
intgr committed Dec 10, 2023
1 parent 64dfaac commit ae6f4bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "posix-acl"
version = "1.1.0"
edition = "2018"
rust-version = "1.42.0"
rust-version = "1.60.0"

# Metadata
authors = ["Marti Raudsepp <marti@juffo.org>"]
Expand Down
2 changes: 1 addition & 1 deletion varia/Dockerfile.tests
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ FROM rustlang/rust:nightly AS cargo-base-nightly
ENV components="" buildflags="--tests"

#### Base image for MSRV
FROM rust:1.42.0 AS cargo-base-msrv
FROM rust:1.60.0 AS cargo-base-msrv
# Don't build tests: dev-dependencies are incompatible with MSRV.
ENV components="" buildflags=""

Expand Down

0 comments on commit ae6f4bd

Please sign in to comment.