gWasm is Golem's new meta use-case which allows Golem's developers/users to deploy their Wasm apps on Golem Network. This API providers convenience structures and functions for creating a gWasm task and connecting with Golem Network all from native Rust code.
For each subtask, two command line arguments are passed to the WASM binary. Conceptually, you should expect your application to be invoked as:
./app input output
inputis the input file path
outputis the expected output file path
The app is expected to create the
output file or the task will fail.
Applications requiring multiple input or output files are currently unsupported.
For more information about how to write gWASM apps see the sp-wasm documentation
- g-flite is a CLI which uses
Errors that can be returned by the library
Convenience async functions for creating gWasm tasks, connecting to a Golem instance, and listening for task's progress as it's computed on Golem.
Convenience types for creating and managing gWasm tasks
Types representing Golem Task's timeout values
Trait specifying the required interface for an object tracking the computation's progress
A convenience function for running a gWasm