Skip to content

Commit 6c68dfb

Browse files
committed
build(msrv): ⬆️ bump MSRV to 1.82
Features from Rust 1.82 can be used now. Notable changes: - [`&raw (const|mut)` for extract raw pointer from a reference](rust-lang/rust#127679)
1 parent 5120ebd commit 6c68dfb

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

Cargo.lock

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ license = "Apache-2.0"
2020
repository = "https://github.com/NJUPT-SAST/rsjudge"
2121

2222
# MSRV is set to N - 2, where N is the current stable version.
23-
rust-version = "1.81"
23+
rust-version = "1.82"
2424

2525
[workspace.dependencies]
2626
log = "0.4.22"
@@ -170,7 +170,7 @@ tokio = { workspace = true, features = ["fs", "rt-multi-thread", "macros", "proc
170170
toml = "0.8.19"
171171

172172
# Unused for now:
173-
# nix = { version = "0.27.1", features = ["fs"] }
173+
# nix = { version = "0.29.0", features = ["fs"] }
174174
# strfmt = "0.2.4"
175175

176176
[features]
@@ -183,7 +183,7 @@ default = ["grpc", "rest", "mimalloc"]
183183
[build-dependencies]
184184
clap = { version = "4.5.26", features = ["derive"] }
185185
clap_complete = "4.5.42"
186-
clap_mangen = "0.2.25"
186+
clap_mangen = "0.2.26"
187187

188188
[profile.release]
189189
codegen-units = 1

crates/rsjudge-amqp/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ rust-version.workspace = true
1111

1212
[dependencies]
1313
amqprs = { version = "2.1.0", features = ["urispec"] }
14-
thiserror = "2.0.10"
14+
thiserror = "2.0.11"
1515
tokio.workspace = true
1616

1717
rsjudge-traits.workspace = true

crates/rsjudge-runner/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ log.workspace = true
1717
nix = { version = "0.29.0", features = ["user", "resource", "process"] }
1818
rsjudge-traits.workspace = true
1919
rsjudge-utils.workspace = true
20-
thiserror = "2.0.10"
20+
thiserror = "2.0.11"
2121
tokio = { workspace = true, features = ["process", "sync", "time", "signal"] }
2222
tokio-util = "0.7.13"
2323
uzers = "0.12.1"

crates/rsjudge-runner/src/utils/resources/rusage.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use std::{
44
future::Future, io, mem::MaybeUninit, os::unix::process::ExitStatusExt, process::ExitStatus,
5-
ptr::addr_of_mut, time::Duration,
5+
time::Duration,
66
};
77

88
use nix::{
@@ -93,7 +93,7 @@ pub fn wait4<P: Into<Option<Pid>>>(
9393
let res = unsafe {
9494
libc::wait4(
9595
pid.unwrap_or_else(|| Pid::from_raw(-1)).into(),
96-
addr_of_mut!(status),
96+
&raw mut status,
9797
option_bits,
9898
rusage.as_mut_ptr(),
9999
)

crates/rsjudge-utils/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rust-version.workspace = true
1212
[dependencies]
1313
log.workspace = true
1414
shell-words = "1.1.0"
15-
thiserror = "2.0.10"
15+
thiserror = "2.0.11"
1616
tokio = { workspace = true, features = ["process", "macros", "rt-multi-thread"] }
1717

1818
[dev-dependencies]

0 commit comments

Comments
 (0)