From dd1d1a095198fa826f6179c9fa9519d9323e87b6 Mon Sep 17 00:00:00 2001 From: vms Date: Tue, 23 Jun 2020 20:00:31 +0300 Subject: [PATCH] some misc imporvements --- engine/src/module/fce_module.rs | 7 +++++-- examples/ipfs_node/wasm/ipfs_node/src/main.rs | 2 +- examples/ipfs_node/wasm/ipfs_rpc/src/main.rs | 2 +- tools/wit_embedder/Cargo.toml | 4 ++++ 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/engine/src/module/fce_module.rs b/engine/src/module/fce_module.rs index e63e3d65..14c189d7 100644 --- a/engine/src/module/fce_module.rs +++ b/engine/src/module/fce_module.rs @@ -254,7 +254,9 @@ impl FCEModule { log::info!( "raw import for {}.{} called with {:?}\n", - import_namespace, import_name, inputs + import_namespace, + import_name, + inputs ); // copy here because otherwise wit_instance will be consumed by the closure @@ -270,7 +272,8 @@ impl FCEModule { log::info!( "\nraw import for {}.{} finished", - import_namespace, import_name + import_namespace, + import_name ); // wit import functions should only change the stack state - diff --git a/examples/ipfs_node/wasm/ipfs_node/src/main.rs b/examples/ipfs_node/wasm/ipfs_node/src/main.rs index 5d10124b..77fcd5d6 100644 --- a/examples/ipfs_node/wasm/ipfs_node/src/main.rs +++ b/examples/ipfs_node/wasm/ipfs_node/src/main.rs @@ -26,7 +26,7 @@ use crate::path::to_full_path; const RESULT_FILE_PATH: &str = "/tmp/ipfs_rpc_file"; pub fn main() { - let msg = "ipfs_node.main: WASI initialization finished, env {}"; + let msg = "ipfs_node.main: WASI initialization finished"; unsafe { log_utf8_string(msg.as_ptr() as _, msg.len() as _); } diff --git a/examples/ipfs_node/wasm/ipfs_rpc/src/main.rs b/examples/ipfs_node/wasm/ipfs_rpc/src/main.rs index 245fee8c..4f7ac8e0 100644 --- a/examples/ipfs_node/wasm/ipfs_rpc/src/main.rs +++ b/examples/ipfs_node/wasm/ipfs_rpc/src/main.rs @@ -25,7 +25,7 @@ use std::path::PathBuf; const RPC_TMP_FILEPATH: &str = "/tmp/ipfs_rpc_file"; pub fn main() { - let msg = "ipfs_rpc.main: WASI initialization finished, env {}"; + let msg = "ipfs_rpc.main: WASI initialization finished"; unsafe { log_utf8_string(msg.as_ptr() as _, msg.len() as _); } diff --git a/tools/wit_embedder/Cargo.toml b/tools/wit_embedder/Cargo.toml index d8a6df46..598d403c 100644 --- a/tools/wit_embedder/Cargo.toml +++ b/tools/wit_embedder/Cargo.toml @@ -4,6 +4,10 @@ version = "0.1.0" authors = ["Fluence Labs"] edition = "2018" +[[bin]] +name = "wit_embedder" +path = "src/main.rs" + [dependencies] wit_parser = { path = "../../crates/wit_parser" } clap = "2.33.1"