#minecraft #oc-wasm #opencomputers #immersive

no-std oc-wasm-immersive

High-level APIs for the Immersive family of machines

5 releases (3 breaking)

0.4.0 Jan 8, 2024
0.3.0 Jan 2, 2023
0.2.1 Aug 13, 2022
0.2.0 Aug 13, 2022
0.1.0 Jun 13, 2022

#693 in Games

Download history 9/week @ 2024-01-06 106/week @ 2024-02-17 9/week @ 2024-02-24

115 downloads per month

GPL-3.0-only

150KB
2.5K SLoC

OC-Wasm-Immersive provides high-level APIs for accessing components provided by Immersive Engineering and Immersive Technology for applications running in the OC-Wasm architecture.


lib.rs:

This crate provides high-level APIs for accessing components provided by Immersive Engineering and Immersive Technology.

As a general rule, APIs in this crate accept an Invoker and a Buffer scratch buffer, the latter being used for encoding parameters and decoding return values. This buffer can be reused between API calls to reduce heap allocations. In some cases the return value of an API may borrow from the scratch buffer.

Features

  • The alloc feature enables APIs that require dynamic memory allocation.
  • The std feature enables integration with the Rust standard library that can only be done outside no_std mode, and also enables alloc.

Important

You must depend on oc-wasm-futures with the proper-waker feature in your own application if your chosen executor requires the proper-waker feature.

Dependencies

~2.5MB
~58K SLoC