Skip to content

Commit

Permalink
build(msrv): ⬆️ bump MSRV to 1.81
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Jisu-Woniu committed Jan 13, 2025
1 parent 5120ebd commit ad658ee
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ license = "Apache-2.0"
repository = "https://github.com/NJUPT-SAST/rsjudge"

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

[workspace.dependencies]
log = "0.4.22"
Expand Down Expand Up @@ -170,7 +170,7 @@ tokio = { workspace = true, features = ["fs", "rt-multi-thread", "macros", "proc
toml = "0.8.19"

# Unused for now:
# nix = { version = "0.27.1", features = ["fs"] }
# nix = { version = "0.29.0", features = ["fs"] }
# strfmt = "0.2.4"

[features]
Expand All @@ -183,7 +183,7 @@ default = ["grpc", "rest", "mimalloc"]
[build-dependencies]
clap = { version = "4.5.26", features = ["derive"] }
clap_complete = "4.5.42"
clap_mangen = "0.2.25"
clap_mangen = "0.2.26"

[profile.release]
codegen-units = 1
Expand Down
2 changes: 1 addition & 1 deletion crates/rsjudge-amqp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rust-version.workspace = true

[dependencies]
amqprs = { version = "2.1.0", features = ["urispec"] }
thiserror = "2.0.10"
thiserror = "2.0.11"
tokio.workspace = true

rsjudge-traits.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/rsjudge-runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ log.workspace = true
nix = { version = "0.29.0", features = ["user", "resource", "process"] }
rsjudge-traits.workspace = true
rsjudge-utils.workspace = true
thiserror = "2.0.10"
thiserror = "2.0.11"
tokio = { workspace = true, features = ["process", "sync", "time", "signal"] }
tokio-util = "0.7.13"
uzers = "0.12.1"
Expand Down
4 changes: 2 additions & 2 deletions crates/rsjudge-runner/src/utils/resources/rusage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use std::{
future::Future, io, mem::MaybeUninit, os::unix::process::ExitStatusExt, process::ExitStatus,
ptr::addr_of_mut, time::Duration,
time::Duration,
};

use nix::{
Expand Down Expand Up @@ -93,7 +93,7 @@ pub fn wait4<P: Into<Option<Pid>>>(
let res = unsafe {
libc::wait4(
pid.unwrap_or_else(|| Pid::from_raw(-1)).into(),
addr_of_mut!(status),
&raw mut status,
option_bits,
rusage.as_mut_ptr(),
)
Expand Down
2 changes: 1 addition & 1 deletion crates/rsjudge-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rust-version.workspace = true
[dependencies]
log.workspace = true
shell-words = "1.1.0"
thiserror = "2.0.10"
thiserror = "2.0.11"
tokio = { workspace = true, features = ["process", "macros", "rt-multi-thread"] }

[dev-dependencies]
Expand Down

0 comments on commit ad658ee

Please sign in to comment.