Out Of Memory가 나서 서버에서 끊기는 경우가 있다.)$ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
자세한건 여기 참고
target부분을 바꾸고 설치한다.$ rustup target add --toolchain <toolchain> <target>...
# e.g. rustup target add aarch64-unknown-linux-musl
# 리스트는 rustc --print=target-list로 볼 수 있다.
$ rustup toolchain list
stable-x86_64-unknown-linux-gnu (active, default)
cargo build --target=<원하는 플랫폼>
이렇게 하면 빌드가 된다. run로 변경시 시뮬레이션이 가능하다.
만약 C등의 외부 라이브러리가 종속된 경우라면, 링커 설정이 필요하며, 혹시 가상환경을 쓸 가능성이 존재한다면 cross를 사용하는 것을 추천한다.