feature/7-add-wasm-api-in-sharenet-passport-for-creating-and-editing-passports #8
1 changed files with 18 additions and 0 deletions
|
|
@ -10,6 +10,24 @@ pub mod infrastructure;
|
|||
#[cfg(any(target_arch = "wasm32", feature = "force-wasm"))]
|
||||
pub mod wasm;
|
||||
|
||||
// Re-export WASM API functions when building for WASM target
|
||||
#[cfg(any(target_arch = "wasm32", feature = "force-wasm"))]
|
||||
pub use wasm::{
|
||||
create_passport,
|
||||
import_from_recovery,
|
||||
import_from_encrypted_data,
|
||||
export_to_encrypted_data,
|
||||
sign_message,
|
||||
generate_recovery_phrase,
|
||||
validate_recovery_phrase,
|
||||
create_user_profile,
|
||||
update_user_profile,
|
||||
delete_user_profile,
|
||||
change_passport_password,
|
||||
get_passport_metadata,
|
||||
validate_passport_file,
|
||||
};
|
||||
|
||||
#[cfg(any(target_arch = "wasm32", feature = "force-wasm"))]
|
||||
#[cfg(test)]
|
||||
pub mod wasm_test;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue