Skip to content
This repository

a safe, concurrent, practical language

auto merge of #13647 : alexcrichton/rust/issue-13641, r=pcwalton

This gives a better NOTE error message when a privacy error is encountered with
a static method. Previously no note was emitted (due to lack of support), but
now a note is emitted indicating that the struct/enum itself is private.

Closes #13641
latest commit 30348f4675
bors bors authored April 20, 2014
Octocat-spinner-32 man auto merge of #13557 : FlaPer87/rust/ls-behind-z, r=brson April 17, 2014
Octocat-spinner-32 mk auto merge of #13513 : alexcrichton/rust/up-llvm, r=brson April 18, 2014
Octocat-spinner-32 src auto merge of #13647 : alexcrichton/rust/issue-13641, r=pcwalton April 20, 2014
Octocat-spinner-32 .gitattributes dist: Tweak the OSX pkg installer March 28, 2014
Octocat-spinner-32 .gitignore Add /dist/ to .gitignore March 09, 2014
Octocat-spinner-32 .gitmodules Build compiler-rt and link it to all crates, similarly to morestack. February 11, 2014
Octocat-spinner-32 .mailmap .mailmap: tolerate different names, emails in shortlog June 05, 2013
Octocat-spinner-32 .travis.yml Let travis check docs for stage1 March 20, 2014
Octocat-spinner-32 AUTHORS.txt Update AUTHORS.txt for 0.10 April 02, 2014
Octocat-spinner-32 CONTRIBUTING.md Various READMEs and docs cleanup January 11, 2014
Octocat-spinner-32 COPYRIGHT Update some copyright dates January 08, 2014
Octocat-spinner-32 LICENSE-APACHE Update license, add license boilerplate to most files. Remainder will… December 03, 2012
Octocat-spinner-32 LICENSE-MIT Update some copyright dates January 08, 2014
Octocat-spinner-32 Makefile.in auto merge of #13142 : alexcrichton/rust/issue-13118, r=brson March 27, 2014
Octocat-spinner-32 README.md Add git to README.md dependency list because configure requires it April 18, 2014
Octocat-spinner-32 RELEASES.txt Minor adjustments to the 0.10 release notes. April 02, 2014
Octocat-spinner-32 configure llvm: Add an option to statically link libstdc++ April 17, 2014
README.md

The Rust Programming Language

This is a compiler for Rust, including standard libraries, tools and documentation.

Quick Start

  1. Download a binary installer for your platform.
  2. Read the tutorial.
  3. Enjoy!

Note: Windows users can read the detailed getting started notes on the wiki.

Building from Source

  1. Make sure you have installed the dependencies:
    • g++ 4.4 or clang++ 3.x
    • python 2.6 or later (but not 3.x)
    • perl 5.0 or later
    • GNU make 3.81 or later
    • curl
    • git
  2. Download and build Rust:

    You can either download a tarball or build directly from the repo.

    To build from the tarball do:

    $ curl -O http://static.rust-lang.org/dist/rust-nightly.tar.gz
    $ tar -xzf rust-nightly.tar.gz
    $ cd rust-nightly
    

    Or to build from the repo do:

    $ git clone https://github.com/mozilla/rust.git
    $ cd rust
    

    Now that you have Rust's source code, you can configure and build it:

    $ ./configure
    $ make && make install
    

    Note: You may need to use sudo make install if you do not normally have permission to modify the destination directory. The install locations can be adjusted by passing a --prefix argument to configure. Various other options are also supported, pass --help for more information on them.

    When complete, make install will place several programs into /usr/local/bin: rustc, the Rust compiler, and rustdoc, the API-documentation tool. system.

  3. Read the tutorial.
  4. Enjoy!

Notes

Since the Rust compiler is written in Rust, it must be built by a precompiled "snapshot" version of itself (made in an earlier state of development). As such, source builds require a connection to the Internet, to fetch snapshots, and an OS that can execute the available snapshot binaries.

Snapshot binaries are currently built and tested on several platforms:

  • Windows (7, 8, Server 2008 R2), x86 only
  • Linux (2.6.18 or later, various distributions), x86 and x86-64
  • OSX 10.7 (Lion) or greater, x86 and x86-64

You may find that other platforms work, but these are our officially supported build environments that are most likely to work.

Rust currently needs about 1.5 GiB of RAM to build without swapping; if it hits swap, it will take a very long time to build.

There is a lot more documentation in the wiki.

License

Rust is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.

Something went wrong with that request. Please try again.