mirror of
https://github.com/fluencelabs/marine.git
synced 2024-12-12 14:55:32 +00:00
some misc imporvements
This commit is contained in:
parent
983e824d7d
commit
dd1d1a0951
@ -254,7 +254,9 @@ impl FCEModule {
|
|||||||
|
|
||||||
log::info!(
|
log::info!(
|
||||||
"raw import for {}.{} called with {:?}\n",
|
"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
|
// copy here because otherwise wit_instance will be consumed by the closure
|
||||||
@ -270,7 +272,8 @@ impl FCEModule {
|
|||||||
|
|
||||||
log::info!(
|
log::info!(
|
||||||
"\nraw import for {}.{} finished",
|
"\nraw import for {}.{} finished",
|
||||||
import_namespace, import_name
|
import_namespace,
|
||||||
|
import_name
|
||||||
);
|
);
|
||||||
|
|
||||||
// wit import functions should only change the stack state -
|
// wit import functions should only change the stack state -
|
||||||
|
@ -26,7 +26,7 @@ use crate::path::to_full_path;
|
|||||||
const RESULT_FILE_PATH: &str = "/tmp/ipfs_rpc_file";
|
const RESULT_FILE_PATH: &str = "/tmp/ipfs_rpc_file";
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
let msg = "ipfs_node.main: WASI initialization finished, env {}";
|
let msg = "ipfs_node.main: WASI initialization finished";
|
||||||
unsafe {
|
unsafe {
|
||||||
log_utf8_string(msg.as_ptr() as _, msg.len() as _);
|
log_utf8_string(msg.as_ptr() as _, msg.len() as _);
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ use std::path::PathBuf;
|
|||||||
const RPC_TMP_FILEPATH: &str = "/tmp/ipfs_rpc_file";
|
const RPC_TMP_FILEPATH: &str = "/tmp/ipfs_rpc_file";
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
let msg = "ipfs_rpc.main: WASI initialization finished, env {}";
|
let msg = "ipfs_rpc.main: WASI initialization finished";
|
||||||
unsafe {
|
unsafe {
|
||||||
log_utf8_string(msg.as_ptr() as _, msg.len() as _);
|
log_utf8_string(msg.as_ptr() as _, msg.len() as _);
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,10 @@ version = "0.1.0"
|
|||||||
authors = ["Fluence Labs"]
|
authors = ["Fluence Labs"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "wit_embedder"
|
||||||
|
path = "src/main.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
wit_parser = { path = "../../crates/wit_parser" }
|
wit_parser = { path = "../../crates/wit_parser" }
|
||||||
clap = "2.33.1"
|
clap = "2.33.1"
|
||||||
|
Loading…
Reference in New Issue
Block a user