Skip to content

pixix4/ev3dev-lang-rust-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template for ev3dev-lang-rust

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.

Dependencies

  • cargo
  • docker
  • make (optional)

Setup

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 .

Usage

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>

About

Template for ev3dev-lang-rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published