Skip to content

Commit 775548c

Browse files
committed
migration to edition 2025
1 parent 06cd71d commit 775548c

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace]
2-
resolver = "2"
2+
resolver = "3"
33
members = [
44
"interface",
55
"host",
@@ -23,11 +23,11 @@ members = [
2323

2424
[workspace.package]
2525
version = "0.4.2"
26-
edition = "2021"
26+
edition = "2024"
2727
license = "MIT"
2828
repository = "https://github.com/xxshady/relib"
2929
readme = "README.md"
30-
rust-version = "1.83.0"
30+
rust-version = "1.85.0"
3131

3232
[workspace.metadata.release]
3333
pre-release-commit-message = "v{{version}}"

examples/live_reload/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[workspace]
2-
resolver = "2" # edition "2021" implies resolver "2"
2+
resolver = "3" # edition "2021" implies resolver "2"
33
members = ["host", "module"]
44

55
[workspace.package]
66
version = "0.1.0"
7-
edition = "2021" # or set a later one
7+
edition = "2024" # or set a later one
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#[relib_module::export]
22
fn main() {
3-
println!("change me! 12");
3+
println!("change me!");
44
}

module/src/unloading_core/windows_dealloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ unsafe extern "system" fn DllMain(_: *mut c_void, reason: u32, lpv_reserved: *mu
7272
//
7373
// we are interested in this callback because it's called when module is being unloaded
7474
// and standard library uses it to call thread-local destructors
75-
#[link_section = ".CRT$XLB"]
75+
#[unsafe(link_section = ".CRT$XLB")]
7676
#[used]
7777
static SUPER_SPECIAL_CALLBACK: extern "system" fn(*mut c_void, u32, *mut c_void) =
7878
callback_to_ensure_tls_destructors_are_called_before_dllmain;

testing/host_as_dylib/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use cfg_if::cfg_if;
44
use relib_host::{Module, ModuleExportsForHost};
55
use test_host_shared::dylib_filename;
66

7-
#[no_mangle]
7+
#[unsafe(no_mangle)]
88
pub extern "C" fn main() {
99
testing_release_backtrace_in_host____();
1010
}

0 commit comments

Comments
 (0)