Skip to content

Commit 9a85c31

Browse files
committed
Downgrade Rust edition to 2021 in all crates for compatibility
1 parent 588e291 commit 9a85c31

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

unity-native-plugin-sample/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ unity_native_plugin::unity_native_plugin_entry_point! {
99
}
1010
}
1111

12-
#[no_mangle]
12+
#[unsafe(no_mangle)]
1313
#[allow(non_snake_case)]
1414
extern "system" fn FillTexture(unity_texture: *mut IUnknown, x: f32, y: f32, z: f32, w: f32) {
1515
unsafe {

unity-native-plugin-tester/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "unity-native-plugin-tester"
33
version = "0.8.0"
44
authors = ["Yasuhiro Taniuchi"]
5-
edition = "2024"
5+
edition = "2021"
66
license = "MIT"
77
description = "Unity Native Plugin API Tester Library"
88
homepage = "https://github.com/aosoft/unity-native-plugin-rs"

unity-native-plugin/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ macro_rules! unity_native_plugin_entry_point {
2727
fn $method_load($p: $t) $body_load
2828
fn $method_unload() $body_unload
2929

30-
#[no_mangle]
30+
#[unsafe(no_mangle)]
3131
#[allow(non_snake_case)]
3232
extern "system" fn UnityPluginLoad(
3333
interfaces: *mut unity_native_plugin::IUnityInterfaces,
@@ -36,7 +36,7 @@ macro_rules! unity_native_plugin_entry_point {
3636
$method_load(unity_native_plugin::interface::UnityInterfaces::get());
3737
}
3838

39-
#[no_mangle]
39+
#[unsafe(no_mangle)]
4040
#[allow(non_snake_case)]
4141
extern "system" fn UnityPluginUnload() {
4242
$method_unload();

0 commit comments

Comments
 (0)