mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
feat(ios,android): setup uniffi infra (#8828)
This commit is contained in:
8
packages/frontend/mobile-native/src/lib.rs
Normal file
8
packages/frontend/mobile-native/src/lib.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
use affine_common::hashcash::Stamp;
|
||||
|
||||
uniffi::setup_scaffolding!("affine_mobile_native");
|
||||
|
||||
#[uniffi::export]
|
||||
pub fn hashcash_mint(resource: String, bits: u32) -> String {
|
||||
Stamp::mint(resource, Some(bits)).format()
|
||||
}
|
||||
Reference in New Issue
Block a user