a0178d28f7
* wasm: mix-fetch: remove harbour master client and use Nym API client * wasm: mix-fetch: fix up internal tester * Release Typescript SDK v1.4.1 * remove bump version tool from workspace * ts-sdk: contract clients: update and re-run autogen * ts: fix linting errors * update go * pin minimatch typings to fix lint errors * bump versions to rc * Update publish-sdk-npm.yml * Update publish-sdk-npm.yml * Update publish-sdk-npm.yml * Update publish-sdk-npm.yml * try disable typedoc because of minimatch errors * bump versions to rc0 * limit packages published to only wasm clients * TS SDK 1.4.1-rc1 * simplify version dependencies and add dist to dev mode * add back version complexity for CI * TS SDK 1.4.1-rc2 * ts-sdk: fix minimatch dependency and correct casing on `selfAddress` function call * wasm: rename `main` to `main_js` to avoid collision errors in exporting main from tests see https://github.com/wasm-bindgen/wasm-bindgen/issues/2206 * improve wasm js tests * TS SDK 1.4.1-rc3 * update example docs * TS SDK 1.4.1 release * update docs dependencies to SDK 1.4.1 * update yarn lock file after TS SDK 1.4.1 publish * Update ci-lint-typescript.yml * Update ci-lint-typescript.yml * Update ci-nym-wallet-storybook.yml * Bump node tester version and add additional yarn install step to fix linting --------- Co-authored-by: Mark Sinclair <mmsinclair@users.noreply.github.com>
32 lines
872 B
Rust
32 lines
872 B
Rust
// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
#[cfg(target_arch = "wasm32")]
|
|
pub mod client;
|
|
#[cfg(target_arch = "wasm32")]
|
|
pub mod config;
|
|
#[cfg(target_arch = "wasm32")]
|
|
pub mod encoded_payload_helper;
|
|
#[cfg(target_arch = "wasm32")]
|
|
pub mod error;
|
|
#[cfg(target_arch = "wasm32")]
|
|
mod helpers;
|
|
#[cfg(target_arch = "wasm32")]
|
|
mod response_pusher;
|
|
#[cfg(target_arch = "wasm32")]
|
|
use wasm_bindgen::prelude::*;
|
|
#[cfg(target_arch = "wasm32")]
|
|
use wasm_utils::set_panic_hook;
|
|
|
|
#[wasm_bindgen(start)]
|
|
#[cfg(target_arch = "wasm32")]
|
|
pub fn main_js() {
|
|
wasm_utils::console_log!("[rust main]: setting panic hook");
|
|
set_panic_hook();
|
|
wasm_utils::console_log!("[rust main]: rust module loaded");
|
|
wasm_utils::console_log!(
|
|
"wasm client version used: {}",
|
|
nym_bin_common::bin_info_owned!()
|
|
);
|
|
}
|