#oc-wasm #minecraft #opencomputers #wrapper #system-interface #wasm-interface

no-std oc-wasm-safe

Safe but low-level wrappers around the OC-Wasm system call interface

8 releases (5 breaking)

new 0.12.0 Apr 6, 2024
0.5.0 Jan 8, 2024
0.4.0 Dec 30, 2022
0.3.1 Nov 18, 2022
0.1.1 Jul 26, 2021

#308 in Games

Download history 70/week @ 2023-12-20 32/week @ 2023-12-27 77/week @ 2024-01-03 98/week @ 2024-01-10 110/week @ 2024-01-17 168/week @ 2024-01-24 238/week @ 2024-01-31 113/week @ 2024-02-07 313/week @ 2024-02-14 162/week @ 2024-02-21 252/week @ 2024-02-28 165/week @ 2024-03-06 205/week @ 2024-03-13 200/week @ 2024-03-20 167/week @ 2024-03-27 385/week @ 2024-04-03

996 downloads per month
Used in 6 crates (5 directly)



OC-Wasm-safe provides a memory-safe but low-level API for Rust code running on OpenComputers computers running the OC-Wasm architecture. This crate provides access to the full capabilities of OpenComputers as well as any other mods that add OpenComputers interoperability by means of Components or Signals. It is generally not meant to be used alone, but rather to provide some useful APIs directly while also serving as a building block for more ergonomic APIs where appropriate.


This crate provides safe but low-level for the Wasm imports available in the OC-Wasm environment.


The panic feature controls how certain system call errors which should be impossible are handled. When the feature is enabled, a panic is generated in those situations. When the feature is disabled, a Wasm unreachable (trap) instruction is executed instead; this produces smaller code but less useful error messages.

The std feature controls whether error::Error implements std::error::Error, which it cannot do in a no_std environment.


~13K SLoC