Command interface

    Now, why limit ourselves to standard library functions? The same approach can be used to call just any host functions from WebAssembly. WasmEdge provides a WASI-like extension to access any command line programs in the host operating system.

    Application developers for WasmEdge can use our Rust interface crate to access this functionality. In , make sure that you have this dependency.

    In the Rust application, you can now use the API methods to start a new process for the operating system command program, pass in arguments via the method as well as via the STDIN, and receives the return values via the .