Skip to content

Commit 8e9a840

Browse files
Migrate build system to 2024 edition
1 parent 3278cb5 commit 8e9a840

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

build_system/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "y"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
[dependencies]
77
boml = "0.3.1"

build_system/src/main.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ pub enum Command {
6060

6161
fn main() {
6262
if env::var("RUST_BACKTRACE").is_err() {
63-
env::set_var("RUST_BACKTRACE", "1");
63+
unsafe {
64+
env::set_var("RUST_BACKTRACE", "1");
65+
}
6466
}
6567

6668
let command = match env::args().nth(1).as_deref() {

build_system/src/utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::path::{Path, PathBuf};
1010
use std::process::{Command, ExitStatus, Output};
1111

1212
#[cfg(unix)]
13-
extern "C" {
13+
unsafe extern "C" {
1414
fn raise(signal: c_int) -> c_int;
1515
}
1616

0 commit comments

Comments
 (0)