OC2R Rust Client
Thin, synchronous access to the OC2R high-level API from Rust. The crate mirrors
the stock Lua helpers (devices.lua, robot.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.
Development
The crate targets rust nightly for some size optimisations and relies on miniserde and libc.
To ease developpemnt we use cross-rs, but you can install all toolchain component or your local computer and replace cross with cargo.
By default the option "-Zfmt-debug=none" is set meaning all debug print (:?) are off. If you can disable this option at any time.
Compilation
Simply cross clippy --all-targets to compile all examples
Examples
Examples of how to use the crate are in the examples directory.
Build them with:
cross build --release --example example-names
Copy the resulting binaries from
target/<triple>/release/examples/ into Minux (an Import/Export card works
well), mark them as executable and then execute them inside the VM.