Expand description
Rust bindings into the C++ library rpi-rgb-led-matrix.
§Features
§c-stubs
Instead of linking to the C++ library, we make stub C functions ourselves with the same signature to enable limited testing on non-raspberry pi computers.
§stdcpp-static-link
By default, we link dynamically to libstdc++ as the underlying C++ library requires access
to the C++ standard library. However, sometimes people want to statically link so everything
is bundled in a single binary. Enabling this feature changes our build behavior to statically
link to libstdc++.
libstdc++.a must be “visible” to rustc when compiling. This means it is in the global linker
search path, or you’ve passed it in manually, like:
RUSTFLAGS="-L /PATH/TO/LIBSTDC++/DIR/" cargo build --features="stdcpp-static-link"Modules§
- c_stubs
- rust implemented stubs of the C++ library for testing on non rpi hosts
Structs§
- CLed
Matrix Options - The Rust representation of
CLedMatrixOptions, which contains parameters to specify your hardware setup. - CLed
Runtime Options - The Rust representation of
CLedRuntimeOptions, which contains parameters to specify how the library behaves at runtime.
Enums§
- CLed
Canvas - The C handle for
LedCanvas. - CLed
Font - The C handle for
LedFont. - CLed
Matrix - The C handle for
LedMatrix.