wiki:rust

Version 8 (modified by ken@…, 2 years ago) ( diff )

--

Rust

There are releases at https://github.com/rust-lang/rust but do NOT use those to try to bootstrap - the tarballs are much smaller, various essential parts are missing. The only real benefit of looking at releases there is that it's possible to see the versions.

The source needs to be downloaded from https://static.rust-lang.org/dist/ as rustc-<VERSION>-src.tar.gz : this site is NOT searchable.

Building newer versions

Firefox-97 will need at least rustc-1.57.0. That version would need an amended sed to force the correct (rust) curl and curl-sys crates (not tested). Using rustc-1.58.0 picks up new enough crates and works. However, there are a lot more test failures (in the absence of gdb, only one failure is not in 'assembly'), as with 1.56 these seem to be caused by the tests using -Werror.

Building with the shipped llvm

This should always be reliable, but the build is a lot slower than with system llvm.

The changes in config.toml to use shipped llvm are:

  1. Comment out link-shared = true
  2. Remove the [target-...] sections with their pointers to llvm-config.

Up
Top

Note: See TracWiki for help on using the wiki.