02bc8b4fc0
* Debug logging * Yield based logging * Reintroduce non-dummy task manager, try add counting for BatchMessageSender, a couple of compiler target introductions on use statements. * Fixed time runtime err * Uncomment forgetme/rememberme * remove diffs from debug * missed commented out forgetme * yet more forgetme comments * * Added missing clientreqestsender clone to wasm client to stop premature drop & busyloop * Removed hacky mem::forget fix * Remove debug panic_hook * Conditional import + use of wasm_utils::console_log * add wasm_util dep * Commenting out or removing debug logging * Remove missed comment * cleanup gitignore * clippy * update go version in ci * removed unused deps * add clippy ignore * remove mixfetch from ci build * add minifetch fix * comment out unused ts builds * stop contract clients killing ci for the moment * wasm target locking for imports * Either remove console_log! macro or introduce cfg(debug_assertions) * downgrade netlink * debug assertions for console_log import * modify config logging (debug -> normal) * remove clone for client_request_sender + grab directly in struct creation * reintroduce debug print for config in debug mode * remove ood / unused custom topology from worker example file * clippy * clippy - ignore todo() tests * modified humantime test in line with new parsing rules
32 lines
869 B
Rust
32 lines
869 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() {
|
|
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!()
|
|
);
|
|
}
|