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.rsexamples/invoke-method.rsexamples/redstone.rsexamples/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.