lib.rs
OC-Wasm-sys
489 downloads per month Used in 7 crates (via oc-wasm-safe) . GPL-3.0-only. 7KB 135 lines. OC-Wasm-sys is a collection of raw FFI bindings for Rust code running on OpenComputers computers running the OC-Wasm architecture. You probably don't want to use this crate directly, since your code will be full of unsafe blocks if you access raw FFI bindings. You probably want OC-Wasm-safe, and ...
OC-Wasm-Cassette
OC-Wasm-Cassette provides a convenient wrapper that makes it easy to use an async fn as a top-level function in an OC-Wasm application. Usage is as simple as: async fn main()-> Infallible {// Your code here} #[no_mangle] pub extern "C" fn run(arg: i32)-> i32 {oc_wasm_cassette::run(arg, main)} Dependencies ~770KB
OC-Wasm-futures
507 downloads per month Used in 5 crates. GPL-3.0-only. 135KB 1.5K SLoC OC-Wasm-futures provides a collection of async futures for use in Rust code running on OpenComputers computers running the OC-Wasm architecture. These futures are designed to work with any async executor and provide more ergonomic ways to handle sleeping and making method calls.