File libsignal-client-visibility-hidden.patch of Package libsignal
Do not export internal glue symbols from the final cdylib. See https://github.com/rust-lang/rust/issues/73958
These symbols aren't actually FFI, upstream just either:
1° tries to poorly reinvent #[used] attribute which they don't even need here,
2° does poor man's debug symbols for crash dumps
--- libsignal-0.72.1/rust/bridge/shared/types/src/node/mod.rs.orig 2025-05-15 01:52:18.000000000 +0200
+++ libsignal-0.72.1/rust/bridge/shared/types/src/node/mod.rs 2025-07-04 19:00:59.511205324 +0200
@@ -17,7 +17,6 @@ pub use neon::types::buffer::TypedArray;
macro_rules! node_register {
( $name:ident ) => {
::paste::paste! {
- #[unsafe(no_mangle)] // necessary because we are linking as a cdylib
#[allow(non_upper_case_globals)]
#[linkme::distributed_slice($crate::node::LIBSIGNAL_FNS)]
static [<signal_register_node_ $name>]: (&str, $crate::node::JsFn) =