commit | 571c6fe724e946e1c6d3ba8861bdfd00590d6a9c | [log] [tgz] |
---|---|---|
author | Alex Legg <alexlegg@google.com> | Mon Mar 11 11:38:57 2019 +1100 |
committer | Alex Legg <alexlegg@google.com> | Mon Mar 11 06:31:50 2019 +0000 |
tree | 783c12cd9bc0f430bba401628bab2e78ea01fda2 | |
parent | e3392ddafbb5fd1e13e118f916f939b265fb0c26 [diff] |
Use Fuchsia directory rust crates Fuchsia no longer uses a separate directory for third party rust crates. This change symlinks rust_crates to the equivalent directory in a Fuchsia root. Change-Id: I7e12f0232225f098d5ca2d3a4a560e2ecf49a8a6
This repository contains utilities for running integration tests for Linux guests under Machina.
First install rust (follow the instructions of the rustup tool):
$ curl https://sh.rustup.rs -sSf | sh $ source ~/.cargo/env
Next we add some new targets for cross-compiling and static linking. Rust supports statically linking libc by replacing the usual gnu libc with musl (see The Rust Book: Advanced Linking).
$ rustup target add x86_64-unknown-linux-musl $ rustup target add aarch64-unknown-linux-musl
Lastly, run the build script for your desired architecture. This will invoke cargo for you as well as create an ext2 image in out/.
$ ./build.sh {arm64|x64}