#lego #first #ev3 #fll #ev3dev

fll-rs

Movement and ui apis for lego ev3 robots intended for use in the FIRST Lego League competition

5 releases

0.1.4 May 7, 2023
0.1.3 May 2, 2023
0.1.2 May 2, 2023
0.1.1 Mar 28, 2023
0.1.0 Mar 28, 2023

#149 in Robotics

42 downloads per month

MIT/Apache

89KB
1.5K SLoC

Cross Compiling

To cross compile, the rust tool chain for armv5te-musl needs to be installed

rustup target add armv5te-unknown-linux-musleabi

To tell rust to compile for armv5te-musl by default and to set the correct linker include the following in .cargo/config.toml

[build]
target = "armv5te-unknown-linux-musleabi"

[target.armv5te-unknown-linux-musleabi]
linker = "rust-lld"

See https://crates.io/crates/ev3dev-lang-rust for information about cross compiling your code

Reducing Binary Size

Enabling global lto causes more aggressive dead code elimination

Setting strip to true removes debugging information from the binary

[profile.release]
lto = true
strip = true

Dependencies

~15MB
~254K SLoC