Cross Compiling
To cross compile, the rust tool chain for armv5te-musl needs to be installed
To tell rust to compile for armv5te-musl by default and to set the correct linker
include the following in .cargo/config.toml
[]
= "armv5te-unknown-linux-musleabi"
[]
= "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
[]
= true
= true