%general-entities; ]> $LastChangedBy$ $Date$ Rustc-&rust-version; Rust Introduction to Rust The Rust programming language is designed to be a safe, concurrent, practical language. As with many other programming languages, rustc (the rust compiler) needs a binary from which to bootstrap. It will download a stage0 binary, and several cargo files (these are actually .tar.gz source archives) at the start of the build, so you cannot compile it without an internet connection. The current rustbuild build-system will use all available processors, although it does not scale well and often falls back to just using one core while waiting for a library to compile. At the moment Rust does not provide any guarantees of a stable ABI, and it is likely that the next few versions of firefox will each require the latest version of Rust. &lfs80_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &rust-md5sum; Download size: &rust-size; Estimated disk space required: &rust-buildsize; Estimated build time: &rust-time; Rust Dependencies Required , (if not using the recommended ), Recommended Optional (often required for the testsuite, but some of the gdb tests may still fail), User Notes: Installation of Rust Install Rust by running the following commands: ./configure --prefix=/usr \ --llvm-root=/opt/llvm3 \ --enable-llvm-link-shared \ --docdir=/usr/share/doc/rustc-&rust-version; && ./x.py build The testsuite in this package selects random subsets of the possible tests. There is no correlation between how long a particular run of the testsuite takes, and how many tests were run. On occasion, the chosen tests will run in much less than 1.0 SBU, on other occasions they may take more than 20 SBU. Although it is normal to run the testsuite for a compiler, in this case that is very hard to recommend. Nevertheless, if you insist on running the tests issue ./x.py test: as with the build, that will use all available CPUs. Now, as the root user: test -f /usr/lib/libLLVM-3.9.so || ln -sv /opt/llvm3/lib/libLLVM-3.9.so /usr/lib && ./x.py dist --install Command Explanations --llvm-root=/opt/llvm3 --enable-llvm-link-shared: This tells rust to use the system version of llvm3 installed in /opt/llvm3, linking to the shared libraries. : If you did not install a system version of , use this alternative command to build the shipped static version of llvm. It will compile for all the available linux cross-compilers (Aarch64, MIPS, PowerPC, SystemZ, etc) but with this switch it will only install for the host architecture. : use this if you need to link against a version of LLVM-3 which was compiled against . ln -sv /opt/llvm3/lib/libLLVM-3.9.so /usr/lib: Although the build of Rust finds the shared library in /opt/llvm3/lib, several of the steps run by the rustbuild installer do not find libLLVM-3.9.so. This conditional symlink fixes that, and works even if libLLVM-3.9.{0,1} has already been installed in /usr. Omit this command if you did not install a system version of . Contents Installed Programs Installed Libraries Installed Directories rust-gdb, rust-lldb, rustc, rustdoc. Many libraries (libarena, libflate, libfmt_macros, libgetopts, libgraphviz, liblog, libproc_macro, librustc*, libserialize, libstd, libsyntax, libterm, libtest), all containing a hash in their names. ~/.cargo, /usr/lib/rustlib, and /usr/share/doc/rustc-&rust-version;. Short Descriptions rust-gdb is a Python wrapper script for gdb. rust-gdb rust-lldb is a Python wrapper script for LLDB (the LLVM debugger). rust=lldb rustc is the rust compiler. rustc rustdoc generates documentation from rust source code. rustdoc libstd-<16-byte-hash>.so is the Rust Standard Library, the foundation of portable Rust software. libstd-<16-byte-hash>.so