LuckfoxTECH / luckfox-pico

luckfox-pico sdk
277 stars 103 forks source link

Rust cross-compile support #37

Open ChangyouSiom opened 9 months ago

ChangyouSiom commented 9 months ago

Any example for rust cross-compile ?

luckfox-eng33 commented 6 months ago

Since uclibc is not fully supported by rust. Most of 3rd part library won't be built Maybe you can refer to this website https://doc.rust-lang.org/rustc/platform-support/armv7-unknown-linux-uclibceabi.html

joseph-montanez commented 3 months ago

I just came across this and didn't know it was uClibc, but I got a web server to work on the Pico Pro using Rust: https://github.com/joseph-montanez/LuckFox-Rust-WebApp-BusyBox

This includes compiling SQLite binary and library for Rust to use. I'll need to revisit this and switch things over to uClibc to see if it makes a difference. From what I understand as long as I use musl, I have to statically link everything, which is how I get SQLite in my example.