rust - How can I build just the core libraries (libstd, libcore, ...) from source, without building the whole compiler toolchain? -
my current work flow requires me rebuild rust compiler every day "standard crates" libstd target platform ( arm-unknown-linux-gnueabihf ). this not ideal. use nightly compiler, able target arm platform, not include standard libraries arm, host machines platform. how can build libraries source, without building whole compiler toolchain 3 compiler stages, llvm, jemalloc, etc...? can't i'm 100% sure, might work. run: rustc -v --version make note of commit-hash, navigate rust src folder , run: git checkout *your commit-hash* finally compile with: rustc -o --target=arm-unknown-linux-gnueabihf rust/src/libstd/lib.rs this should compile library current working directory. see http://spin.atomicobject.com/2015/02/20/rust-language-c-embedded/ original, , more detailed explanation.