I'm currently working on OSX, cross-compiling my code targeting Raspberry Pi 3 on this docker container: https://github.com/dlecan/rust-crosscompiler-arm
I've set up a docker command that mounts the source and cargo registry inside the container, so running the script is (roughly) equivalent to running cargo.
This works fine, but
rls-vscode doesn't work, since my code doesn't compile for OSX.
Is it possible to set up vscode/RLS/cargo in such a way that it would compile using this setup on save?
Is it possible to set up cargo in such a way that I could invoke my build command through cargo?
Alternatively, is there a better way to cross-compile for Raspberry Pi?