Skip to content

Commit

Permalink
try adding used
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvalencik committed Jun 28, 2024
1 parent cf5cd36 commit c5a50cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/neon/src/macro_internal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Export<'cx>>];

#[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<Export<'cx>> {
unimplemented!()
}
Expand Down

0 comments on commit c5a50cb

Please sign in to comment.