Skip to content

Commit 9a0f22e

Browse files
authored
Merge pull request #767 from stlankes/debug
print wasmtime configuration
2 parents b7f63bf + 912d507 commit 9a0f22e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/hermit-wasm/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use env_logger::Builder;
1010
#[cfg(target_os = "hermit")]
1111
use hermit as _;
1212
use hermit_wasm::run_preview1;
13-
use log::{LevelFilter, info};
13+
use log::{LevelFilter, debug, info};
1414

1515
#[derive(Parser, Debug)]
1616
#[command(author, version, about, long_about = None)]
@@ -43,6 +43,7 @@ pub fn main() -> Result<()> {
4343
// First step is to create the Wasm execution engine with some config.
4444
// Currently, we are using the default configuration.
4545
let config = wasmtime::Config::new();
46+
debug!("Configuration of Wasmtime: {config:?}");
4647

4748
if CONFIG.module_and_args.is_empty() {
4849
eprintln!("No WebAssembly module specified. Please provide a .wasm file to run.");

0 commit comments

Comments
 (0)