rust/src
Steven Fackler c3825c8351 env! syntax extension changes
env! aborts compilation of the specified environment variable is not
defined and takes an optional second argument containing a custom
error message. option_env! creates an Option<&'static str> containing
the value of the environment variable.

There are no run-pass tests that check the behavior when the environment
variable is defined since the test framework doesn't support setting
environment variables at compile time as opposed to runtime. However,
both env! and option_env! are used inside of rustc itself, which should
act as a sufficient test.

Close #2248
2013-08-08 10:35:42 -07:00
..
compiletest core: option.map_consume -> option.map_move 2013-08-07 08:52:09 -07:00
driver Bring compiletest/rustpkg/driver up to date on std vs core 2013-07-04 16:30:48 -07:00
etc Merge pull request #8284 from huonw/emacs-in-kw 2013-08-04 12:49:11 -07:00
libextra auto merge of #8358 : brson/rust/newrt, r=brson 2013-08-07 16:47:15 -07:00
librust core: option.map_consume -> option.map_move 2013-08-07 08:52:09 -07:00
librustc env! syntax extension changes 2013-08-08 10:35:42 -07:00
librustdoc auto merge of #8294 : erickt/rust/map-move, r=bblum 2013-08-07 13:23:07 -07:00
librusti rusti: Disable tests 2013-08-07 16:32:20 -07:00
librustpkg rustpkg: Disable test_uninstall 2013-08-07 15:40:27 -07:00
libstd Turn on the new runtime 2013-08-07 16:32:20 -07:00
libsyntax env! syntax extension changes 2013-08-08 10:35:42 -07:00
libuv@dfae9c3e95 libsyntax: Fix more merge fallout. 2013-05-22 21:57:11 -07:00
llvm@f67442eee2 Integrate new arm patch and fix an LLVM bug 2013-08-04 10:58:23 -07:00
rt Add support for vanilla linux on arm. 2013-08-04 19:28:06 -04:00
rustllvm Fix build issues once LLVM has been upgraded 2013-08-04 10:58:23 -07:00
test env! syntax extension changes 2013-08-08 10:35:42 -07:00
README.txt Update doc references to new names for std, extra, and std::libc 2013-06-16 23:26:08 -07:00
snapshots.txt register snapshots 2013-08-03 21:09:28 -04:00

This is a preliminary version of the Rust compiler, libraries and tools

Source layout:

librustc/          The self-hosted compiler

libstd/            The standard library (imported and linked by default)
libextra/          The "extras" library (slightly more peripheral code)
libsyntax/         The Rust parser and pretty-printer

rt/                The runtime system
rt/rust_*.cpp      - The majority of the runtime services
rt/isaac           - The PRNG used for pseudo-random choices in the runtime
rt/bigint          - The bigint library used for the 'big' type
rt/uthash          - Small hashtable-and-list library for C, used in runtime
rt/sync            - Concurrency utils
rt/util            - Small utility classes for the runtime.
rt/vg              - Valgrind headers
rt/msvc            - MSVC support
rt/linenoise       - a readline-like line editing library

test/              Testsuite
test/compile-fail  - Tests that should fail to compile
test/run-fail      - Tests that should compile, run and fail
test/run-pass      - Tests that should compile, run and succeed
test/bench         - Benchmarks and miscellanea
test/pretty        - Pretty-printer tests
test/auxiliary     - Dependencies of tests

compiletest/       The test runner

librustpkg/        The package manager and build system

librusti/          The JIT REPL

librustdoc/        The Rust API documentation tool

llvm/              The LLVM submodule

libuv/             The libuv submodule

rustllvm/          LLVM support code

libfuzzer/         A collection of fuzz testers

etc/               Scripts, editor support, misc