Skip to content

Commit 2a8b438

Browse files
bors[bot]asomers
andauthored
Merge #1792
1792: Raise the MSRV to 1.56.1 r=rtzoeller a=asomers Nix's code hasn't changed. However, Serde accidentally raised its MSRV to 1.51.0 in a patch release, due to a Cargo bug. They don't plan to change it back. Nix does not depend on Serde, but it's used by cargo-hack, which we build as part of our CI process. So we need to either raise our MSRV, or else install a separate toolchain during CI just to build cargo-hack. serde-rs/serde#2255 Co-authored-by: Alan Somers <[email protected]>
2 parents dde5f86 + c6371db commit 2a8b438

File tree

7 files changed

+16
-28
lines changed

7 files changed

+16
-28
lines changed

.cirrus.yml

+6-22
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99
RUSTDOCFLAGS: -D warnings
1010
TOOL: cargo
1111
# The MSRV
12-
TOOLCHAIN: 1.46.0
12+
TOOLCHAIN: 1.56.1
1313
ZFLAGS:
1414

1515
# Tests that don't require executing the build binaries
@@ -94,9 +94,6 @@ task:
9494
PATH: $HOME/.cargo/bin:$PATH
9595
RUSTFLAGS: --cfg qemu -D warnings
9696
TOOL: cross
97-
# Cross needs at least 1.51.0 after Serde accidentally raised its MSRV.
98-
# And Clippy has too many false positives from 1.51.0 through 1.53.0
99-
TOOLCHAIN: 1.54.0
10097
matrix:
10198
- name: Linux arm gnueabi
10299
env:
@@ -146,18 +143,18 @@ task:
146143
matrix:
147144
- name: Linux aarch64
148145
arm_container:
149-
image: rust:1.46
146+
image: rust:1.56
150147
env:
151148
RUSTFLAGS: --cfg graviton -D warnings
152149
TARGET: aarch64-unknown-linux-gnu
153150
- name: Linux x86_64
154151
container:
155-
image: rust:1.46
152+
image: rust:1.56
156153
env:
157154
TARGET: x86_64-unknown-linux-gnu
158155
- name: Linux x86_64 musl
159156
container:
160-
image: rust:1.46
157+
image: rust:1.56
161158
env:
162159
TARGET: x86_64-unknown-linux-musl
163160
setup_script:
@@ -183,7 +180,7 @@ task:
183180
# Tasks for cross-compiling, but no testing
184181
task:
185182
container:
186-
image: rust:1.46
183+
image: rust:1.56
187184
env:
188185
BUILD: check
189186
HOST: x86_64-unknown-linux-gnu
@@ -214,27 +211,18 @@ task:
214211
- name: Illumos
215212
env:
216213
TARGET: x86_64-unknown-illumos
217-
# illumos toolchain isn't available via rustup until 1.50
218-
TOOLCHAIN: 1.50.0
219-
container:
220-
image: rust:1.50
221214
# Cross claims to support running tests on iOS, but it actually doesn't.
222215
# https://github.com/rust-embedded/cross/issues/535
223216
- name: iOS aarch64
224217
env:
225218
# cargo hack tries to invoke the iphonesimulator SDK for iOS
226219
NOHACK: 1
227220
TARGET: aarch64-apple-ios
228-
# Rustup only supports cross-building from arbitrary hosts for iOS at
229-
# 1.49.0 and above. Below that it's possible to cross-build from a macOS
230-
# host, but macOS VMs are more expensive than Linux VMs.
231-
TOOLCHAIN: 1.49.0
232221
- name: iOS x86_64
233222
env:
234223
# cargo hack tries to invoke the iphonesimulator SDK for iOS
235224
NOHACK: 1
236225
TARGET: x86_64-apple-ios
237-
TOOLCHAIN: 1.49.0
238226
# Cross testing on powerpc fails with "undefined reference to renameat2".
239227
# Perhaps cross is using too-old a version?
240228
- name: Linux powerpc
@@ -254,10 +242,6 @@ task:
254242
- name: macOS aarch64
255243
env:
256244
TARGET: aarch64-apple-darwin
257-
# macOS aarch64 toolchain isn't available via rustup until 1.49
258-
TOOLCHAIN: 1.49.0
259-
container:
260-
image: rust:1.49
261245
- name: NetBSD x86_64
262246
env:
263247
TARGET: x86_64-unknown-netbsd
@@ -271,7 +255,7 @@ task:
271255

272256
task:
273257
container:
274-
image: rust:1.46
258+
image: rust:1.56
275259
env:
276260
BUILD: check
277261
name: Redox x86_64

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ This project adheres to [Semantic Versioning](https://semver.org/).
88

99
### Changed
1010

11+
- The MSRV is now 1.56.1
12+
([#1792](https://github.com/nix-rust/nix/pull/1792))
13+
1114
### Fixed
1215

1316
### Removed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "nix"
33
description = "Rust friendly bindings to *nix APIs"
44
edition = "2018"
55
version = "0.25.0"
6-
rust-version = "1.46"
6+
rust-version = "1.56"
77
authors = ["The nix-rust Project Developers"]
88
repository = "https://github.com/nix-rust/nix"
99
license = "MIT"

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Tier 3:
8989

9090
## Minimum Supported Rust Version (MSRV)
9191

92-
nix is supported on Rust 1.46.0 and higher. Its MSRV will not be
92+
nix is supported on Rust 1.56.1 and higher. Its MSRV will not be
9393
changed in the future without bumping the major or minor version.
9494

9595
## Contributing

src/sys/signal.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -911,10 +911,11 @@ pub fn sigprocmask(how: SigmaskHow, set: Option<&SigSet>, oldset: Option<&mut Si
911911
/// # Arguments
912912
///
913913
/// * `pid` - Specifies which processes should receive the signal.
914-
/// - If positive, specifies an individual process
914+
/// - If positive, specifies an individual process.
915915
/// - If zero, the signal will be sent to all processes whose group
916916
/// ID is equal to the process group ID of the sender. This is a
917-
/// variant of [`killpg`].
917+
#[cfg_attr(target_os = "fuchsia", doc = "variant of `killpg`.")]
918+
#[cfg_attr(not(target_os = "fuchsia"), doc = "variant of [`killpg`].")]
918919
/// - If `-1` and the process has super-user privileges, the signal
919920
/// is sent to all processes exclusing system processes.
920921
/// - If less than `-1`, the signal is sent to all processes whose

src/sys/socket/addr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2244,7 +2244,7 @@ pub mod sys_control {
22442244
///
22452245
/// # References
22462246
///
2247-
/// https://developer.apple.com/documentation/kernel/sockaddr_ctl
2247+
/// <https://developer.apple.com/documentation/kernel/sockaddr_ctl>
22482248
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
22492249
#[repr(transparent)]
22502250
pub struct SysControlAddr(pub(in super::super) libc::sockaddr_ctl);

test/sys/test_timerfd.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ pub fn test_timerfd_unset() {
6565

6666
timer.unset().unwrap();
6767

68-
assert!(timer.get().unwrap() == None);
68+
assert!(timer.get().unwrap().is_none());
6969
}

0 commit comments

Comments
 (0)