Install the tracing_subscriber in host's main.rs, so that RUST_LOG=host=trace works from the cli. (It already worked in tests, via test_log.)
And finally, implement --mapdir as a command line flag, stolen out of the wasmtime cli. I had to rejigger how preopens are constructed slightly to make this work out.
Use the latest wasmtime, which needed the following to make the
tracing: true
feature in wasmtime-wit-bindgen actually emit something useful: https://github.com/bytecodealliance/wasmtime/pull/6209Install the tracing_subscriber in host's main.rs, so that RUST_LOG=host=trace works from the cli. (It already worked in tests, via test_log.)
And finally, implement
--mapdir
as a command line flag, stolen out of the wasmtime cli. I had to rejigger how preopens are constructed slightly to make this work out.Sample output: