20 lines
418 B
Rust
20 lines
418 B
Rust
#![forbid(unsafe_code)]
|
|
#![deny(clippy::disallowed_types)]
|
|
|
|
//! Mechanical UniFFI exports for Apple presentation code.
|
|
|
|
uniffi::setup_scaffolding!();
|
|
|
|
#[uniffi::export]
|
|
pub fn product_name() -> String {
|
|
ironstorage::PRODUCT_NAME.to_owned()
|
|
}
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
#[test]
|
|
fn bridge_reads_product_name_from_storage_crate() {
|
|
assert_eq!(super::product_name(), ironstorage::PRODUCT_NAME);
|
|
}
|
|
}
|