diff --git a/CHANGELOG.md b/CHANGELOG.md index cfd28a68cf..73fb883d41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ [Full changelog](https://github.com/mozilla/glean/compare/v70.2.0...main) +* Rust + * glean-sym: Ensure UniFFI symbols are always included ([#3660](https://github.com/mozilla/glean/pull/3660)) * iOS * Re-enable the SQLite backend by default ([#3650](https://github.com/mozilla/glean/pull/3650)) diff --git a/glean-core/glean-sym/src/lib.rs b/glean-core/glean-sym/src/lib.rs index 0acd87e90c..8aec4ee1b1 100644 --- a/glean-core/glean-sym/src/lib.rs +++ b/glean-core/glean-sym/src/lib.rs @@ -129,14 +129,12 @@ pub struct UniFfiTag; /// The namespace glean-sym FFI items are placed in. /// Required by UniFFI to match up items. #[allow(clippy::large_const_arrays)] // this is moved into the `static` below, we can't make it a static itself. -#[cfg(feature = "active")] const UNIFFI_META_CONST_NAMESPACE_GLEAN_SYM: ::uniffi::MetadataBuffer = ::uniffi::MetadataBuffer::from_code(::uniffi::metadata::codes::NAMESPACE) .concat_str("glean_sym") .concat_str("glean_sym"); #[doc(hidden)] #[unsafe(no_mangle)] -#[cfg(feature = "active")] pub static UNIFFI_META_NAMESPACE_GLEAN_SYM: [::std::primitive::u8; UNIFFI_META_CONST_NAMESPACE_GLEAN_SYM.size] = UNIFFI_META_CONST_NAMESPACE_GLEAN_SYM.into_array();