From c36b73d2972736108e6f8b84e361e4f5f7b94700 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Tue, 6 Jun 2023 18:22:18 -0400 Subject: Rust API : Add the noexports feature to not export the ABI functions (for when you're statically compiling several Rust modules that use the API...only one needs to export it) --- rust/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rust/src') diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 9cbe32e9..06591236 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -550,12 +550,14 @@ pub fn add_optional_plugin_dependency(name: S) { } // Provide ABI version automatically so that the core can verify binary compatibility +#[cfg(not(feature = "noexports"))] #[no_mangle] #[allow(non_snake_case)] pub extern "C" fn CorePluginABIVersion() -> u32 { plugin_abi_version() } +#[cfg(not(feature = "noexports"))] #[no_mangle] pub extern "C" fn UIPluginABIVersion() -> u32 { plugin_ui_abi_version() -- cgit v1.3.1