2025-10-29 21:54:09 +01:00
2025-10-29 20:35:12 +01:00
2025-10-29 21:54:09 +01:00
2025-10-29 21:54:09 +01:00
2025-10-29 21:54:09 +01:00
2025-10-29 17:08:31 +01:00
2025-10-29 17:41:33 +01:00
2025-10-29 21:54:09 +01:00

OC2R Rust Client

Thin, synchronous access to the OC2R high-level API from Rust. The crate mirrors the stock Lua helpers (devices.lua) so you can list devices, invoke methods, subscribe to events, and work with typed wrappers for common peripherals.

Documentation

See docs/index.md for the full guide and docs/wrappers.md for device-by-device examples.

Examples

We ship three binaries that mirror Lua scripts:

  • examples/list-devices.rs
  • examples/invoke-method.rs
  • examples/redstone.rs
  • examples/redstone-events.rs

Build them with:

# Install instructions: https://github.com/cross-rs/cross#installation
cross build --release --example list-devices

Copy the resulting binaries from target/<triple>/release/examples/ into Minux (an Import/Export card works well), then execute them inside the VM.

Development

The crate targets stable Rust 1.74+ and relies on miniserde and libc. Use cross clippy --all-targets before submitting changes. CI scripts are still in flight; for now the cross build and cross clippy invocations exercised in the examples are the reference.

Description
No description provided
Readme 233 KiB
Languages
Rust 99.7%
Shell 0.3%