From 8a39f36875a749f229276541aa3354494b4fa8d5 Mon Sep 17 00:00:00 2001 From: Continuist Date: Wed, 29 Oct 2025 22:43:42 -0400 Subject: [PATCH] Add re-exports --- libs/sharenet-passport/src/lib.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/libs/sharenet-passport/src/lib.rs b/libs/sharenet-passport/src/lib.rs index b81bfd3..ce197c0 100644 --- a/libs/sharenet-passport/src/lib.rs +++ b/libs/sharenet-passport/src/lib.rs @@ -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;