Fix other no_mangle

This commit is contained in:
vyPal 2025-03-11 11:44:22 +01:00
parent 54b1bf1759
commit 243258f1c4

View File

@ -47,7 +47,7 @@ pub fn plugin_impl(_attr: TokenStream, item: TokenStream) -> TokenStream {
pub static GLOBAL_RUNTIME: std::sync::LazyLock<std::sync::Arc<tokio::runtime::Runtime>> = pub static GLOBAL_RUNTIME: std::sync::LazyLock<std::sync::Arc<tokio::runtime::Runtime>> =
std::sync::LazyLock::new(|| std::sync::Arc::new(tokio::runtime::Runtime::new().unwrap())); std::sync::LazyLock::new(|| std::sync::Arc::new(tokio::runtime::Runtime::new().unwrap()));
#[no_mangle] #[unsafe(no_mangle)]
pub static METADATA: pumpkin::plugin::PluginMetadata = pumpkin::plugin::PluginMetadata { pub static METADATA: pumpkin::plugin::PluginMetadata = pumpkin::plugin::PluginMetadata {
name: env!("CARGO_PKG_NAME"), name: env!("CARGO_PKG_NAME"),
version: env!("CARGO_PKG_VERSION"), version: env!("CARGO_PKG_VERSION"),