Add re-exports
Some checks are pending
Sharenet Passport CI / test-native (push) Waiting to run
Sharenet Passport CI / test-wasm-headless (push) Waiting to run
Sharenet Passport CI / test-wasm-webdriver (push) Waiting to run
Sharenet Passport CI / build-wasm (push) Waiting to run
Sharenet Passport CI / lint (push) Waiting to run
Some checks are pending
Sharenet Passport CI / test-native (push) Waiting to run
Sharenet Passport CI / test-wasm-headless (push) Waiting to run
Sharenet Passport CI / test-wasm-webdriver (push) Waiting to run
Sharenet Passport CI / build-wasm (push) Waiting to run
Sharenet Passport CI / lint (push) Waiting to run
This commit is contained in:
parent
e7db02ab73
commit
8a39f36875
1 changed files with 18 additions and 0 deletions
|
|
@ -10,6 +10,24 @@ pub mod infrastructure;
|
||||||
#[cfg(any(target_arch = "wasm32", feature = "force-wasm"))]
|
#[cfg(any(target_arch = "wasm32", feature = "force-wasm"))]
|
||||||
pub mod 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(any(target_arch = "wasm32", feature = "force-wasm"))]
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
pub mod wasm_test;
|
pub mod wasm_test;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue