From c5a50cb3568a029e6c8f9a657be831e49ebd36ec Mon Sep 17 00:00:00 2001 From: "K.J. Valencik" Date: Fri, 28 Jun 2024 13:30:38 -0400 Subject: [PATCH] try adding used --- crates/neon/src/macro_internal/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/neon/src/macro_internal/mod.rs b/crates/neon/src/macro_internal/mod.rs index b4a1fad16..5e0a0845f 100644 --- a/crates/neon/src/macro_internal/mod.rs +++ b/crates/neon/src/macro_internal/mod.rs @@ -7,12 +7,14 @@ use crate::{context::ModuleContext, handle::Handle, result::NeonResult, types::J type Export<'cx> = (&'static str, Handle<'cx, JsValue>); #[linkme::distributed_slice] +#[used] pub static EXPORTS: [for<'cx> fn(&mut ModuleContext<'cx>) -> NeonResult>]; #[linkme::distributed_slice] pub static MAIN: [for<'cx> fn(ModuleContext<'cx>) -> NeonResult<()>]; #[linkme::distributed_slice(EXPORTS)] +#[used] pub(crate) fn dummy_export<'cx>(_cx: &mut ModuleContext<'cx>) -> NeonResult> { unimplemented!() }