This is a template for creating and building projects with ev3dev-lang-rust
. It contains all the necessary files to cross compile the "Hello World" example for ev3dev platform.
cargo
docker
make
(optional)
A docker setup is required. The build works by running docker run
.
If you have problems with the provided docker image you can rebuild it locally with:
docker build -t pixix4/ev3dev-rust:latest .
Build this project:
make
# or with powershell on windows
docker run --rm -v ${PWD}:/build -w /build pixix4/ev3dev-rust:latest cargo build --release --target armv5te-unknown-linux-musleabi
The resulting binary can be found at ./target/armv5te-unknown-linux-musleabi/release/<ARTIFACT>
. To execute the binary, copy it onto the robot an execute:
brickrun -r ./<ARTIFACT>