sunfishcode closed Issue #783:
given an example that displays output on stdout - like a "hello world" application -
wasmtime --env
appears to drop stdout entirely.><> cat src/main.rs fn main() { println!("hello world!"); } ><> cargo build --target wasm32-wasi Finished dev [unoptimized + debuginfo] target(s) in 0.00s ><> wasmtime ./target/wasm32-wasi/debug/wasm32-wasi-demo.wasm hello world! ><> wasmtime --env 'FOO=bar' ./target/wasm32-wasi/debug/wasm32-wasi-demo.wasm ><>
Tested with both 0.8.0 and the development release available on the releases page. Both demonstrate the same issue.
Last updated: Dec 23 2024 at 12:05 UTC