Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

library-ifying of tools - turning cargo, rustdoc, fuzzer, into libraries, as per #3543 #3672

Closed
wants to merge 387 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
387 commits
Select commit Hold shift + click to select a range
056fc13
Mention other languages.
graydon Oct 10, 2012
d81a7ab
Minor fixes to the runtime and scheduling part of manual.
graydon Oct 10, 2012
8f9bb5d
Fix markings about future in manual, remove out-of-date marker.
graydon Oct 10, 2012
19f1c31
Remove mention of block-comment nesting.
graydon Oct 10, 2012
58807b0
Mention doc comments.
graydon Oct 10, 2012
c639f44
Tidy up macro_rules grammar.
graydon Oct 11, 2012
304a245
Mention deprecation of crate files.
graydon Oct 11, 2012
ff37c65
Remove mention of argv.
graydon Oct 11, 2012
cad6733
Remove mention of res_item, add const_item. Reword a bit.
graydon Oct 11, 2012
3d31a6b
Remove several references to resources; add section for Constants.
graydon Oct 11, 2012
a1f9a0f
Merge pull request #3718 from killerswan/manpage_04
catamorphism Oct 11, 2012
b7b2217
Update tutorial install instructions
brson Oct 11, 2012
4c833af
Copy README install instructions from tutorial
brson Oct 11, 2012
38ccaed
Copyedit sections 1 and 2 of tutorial
catamorphism Oct 11, 2012
6627ac6
Copyedit section 3 of tutorial
catamorphism Oct 11, 2012
d7b8512
Copyedit section 4 of tutorial
catamorphism Oct 11, 2012
1a8b00a
Copyedit sections 5 and 6 of the tutorial
catamorphism Oct 11, 2012
7582a48
Copyedit sections 7 and 8 of the tutorial
catamorphism Oct 11, 2012
6d25051
Copyedit sections 9 and 10 of the tutorial
catamorphism Oct 11, 2012
39acb06
Copyedit sections 11-13 of the tutorial. That's all, folks!
catamorphism Oct 11, 2012
97ecde2
Conditional usage of LLVM DebugFlag
lucab Oct 8, 2012
012bb7d
Typo: an -> a.
graydon Oct 11, 2012
860573e
Reword para on diverging functions.
graydon Oct 11, 2012
c9cee7c
Reorder function sections.
graydon Oct 11, 2012
a2cace4
manual: remove a mode.
graydon Oct 11, 2012
9e6df28
manual: capitalize 'Copy'.
graydon Oct 11, 2012
bc68a88
manual: improve description of unsafe functions.
graydon Oct 11, 2012
dfd00ec
manual: link to kinds, remove kind-list.
graydon Oct 11, 2012
0673b49
manual: remove mention of tags, now very obsolete.
graydon Oct 11, 2012
9cba4af
manual: describe structs, split out handling of recursion from enums,…
graydon Oct 11, 2012
d81196c
manual: improve description of traits.
graydon Oct 11, 2012
06a17a7
manual: disambiguate field expressions from method-call expressions.
graydon Oct 11, 2012
c4237db
manual: capitalize examples, remove mention of named impls, change RC…
graydon Oct 11, 2012
a8e1d83
manual: remove all mention of constraints.
graydon Oct 11, 2012
c2fd04f
manual: s/Self type/Self types/.
graydon Oct 11, 2012
78f29f2
manual: remove vestigial mention of tasking from definition of statem…
graydon Oct 11, 2012
25d8ca1
manual: pluralize; decls can introduce multiple names.
graydon Oct 11, 2012
43fd84a
Fix doctest.
graydon Oct 11, 2012
009cf53
manual: add section for path expressions.
graydon Oct 11, 2012
e257f39
manual: add section for unary move expressions.
graydon Oct 11, 2012
c46706f
manual: add borrow operator to symbolic unary operator list; mention…
graydon Oct 11, 2012
2c34ffa
manual: link to expressions in lval/rval section.
graydon Oct 11, 2012
382e85c
manual: "with" -> ".." for FRU.
graydon Oct 11, 2012
c87ff5e
manual: remove box-specific language.
graydon Oct 11, 2012
41bce91
Fix tutorial link to tasks
catamorphism Oct 11, 2012
5a8ba07
Make to_str pure and fix const parameters for str-mutating functions
catamorphism Oct 11, 2012
1ab914d
Write option::chain and result::chain with `match move`
catamorphism Oct 11, 2012
d882274
Remove Copy bound from std::timer::delayed_send
catamorphism Oct 11, 2012
3a2e9e4
manual: s/unique/owned/, s/shared/managed/, fix rval/lval more.
graydon Oct 11, 2012
edf493f
manual: fix exponents on number types.
graydon Oct 11, 2012
eff4a36
manual: mention overloading, traits on the arithmetic and bitwise ope…
graydon Oct 11, 2012
1d47c0a
manual: note overloading and traits for comparison ops.
graydon Oct 11, 2012
44f8a8e
manual: remove 'trivial cast', it's an unused definition.
graydon Oct 11, 2012
04e6b09
manual: remove mention of >>>.
graydon Oct 11, 2012
2bb141c
manual: remove mention of do-while loops.
graydon Oct 11, 2012
1a885f6
manual: add section on lambda expressions.
graydon Oct 11, 2012
f6606af
Remove invalid FIXME
catamorphism Oct 11, 2012
71813b3
Exports are fixed, hooray
catamorphism Oct 11, 2012
fc4da29
Update FIXME number
catamorphism Oct 11, 2012
2749076
Update FIXME number
catamorphism Oct 11, 2012
d2efd7e
Update FIXME number
catamorphism Oct 11, 2012
bfbb719
Update FIXME numbers
catamorphism Oct 11, 2012
6854265
Remove comment that is now false
catamorphism Oct 11, 2012
ec63112
Update FIXME number
catamorphism Oct 11, 2012
72fc2b5
Remove unneeded no_rt flag
catamorphism Oct 11, 2012
fb667cd
Update FIXME number
catamorphism Oct 11, 2012
63dc831
Remove obsolete FIXME
catamorphism Oct 11, 2012
3764ec7
Remove obsolete FIXME
catamorphism Oct 11, 2012
6986acb
Update FIXME numbers
catamorphism Oct 11, 2012
66cea37
Fix from_buf in test cases
catamorphism Oct 11, 2012
db679a7
Remove obsolete FIXME
catamorphism Oct 11, 2012
41752b0
Update FIXME numbers
catamorphism Oct 11, 2012
acaad93
Remove obsolete comment
catamorphism Oct 11, 2012
97c2255
Use truncate in typeck::infer; gets rid of FIXME
catamorphism Oct 11, 2012
7509a3d
Remove obsolete FIXME
catamorphism Oct 11, 2012
915897b
Remove obsolete comment
catamorphism Oct 11, 2012
668b39c
Use match move in pingpong, delete a FIXME
catamorphism Oct 12, 2012
06d0bf7
Use a constant vector for the sudoku board, delete a FIXME
catamorphism Oct 12, 2012
c090dca
Uncomment nested module in test, delete a FIXME
catamorphism Oct 12, 2012
f1de001
Annotate FIXMEs in reflect-visit-data
catamorphism Oct 12, 2012
b24cba8
Un-XFAIL reflect-visit-type
catamorphism Oct 12, 2012
5a849ea
Use match move in select-macro, get rid of a FIXME
catamorphism Oct 12, 2012
3c1ff31
Un-XFAIL task-compare
catamorphism Oct 12, 2012
945d57a
Export VecUnboxedRepr from vec so a test case can use it
catamorphism Oct 12, 2012
dd54431
Fix pipe-select-macro
catamorphism Oct 12, 2012
2d116db
Use move instead of ref in select-macro
catamorphism Oct 12, 2012
55b5284
Re-xfail two tests that I tried to resurrect (no time right now)
catamorphism Oct 12, 2012
44bffd2
Revert "Use a constant vector for the sudoku board, delete a FIXME"
catamorphism Oct 12, 2012
693866d
Change FIXME number
catamorphism Oct 12, 2012
fd85a00
manual: add section on do-expressions.
graydon Oct 11, 2012
515f88f
manual: rewrite for-expression section to reflect this year's definit…
graydon Oct 12, 2012
1d69b81
manual: "to" -> ".."
graydon Oct 12, 2012
533cce8
manual: remove unusual production name in match-expr grammar.
graydon Oct 12, 2012
544d36b
manual: fixes to match expression examples and explanation.
graydon Oct 12, 2012
73d4417
manual: remove 'analogy' between return and return. meaningless.
graydon Oct 12, 2012
a1c831b
manual: avoid describing 'assert' as 'like check', note future removal.
graydon Oct 12, 2012
196cc02
manual: add 'item', remove statement that built-in types are keywords.
graydon Oct 12, 2012
45dc69d
manual: example fixup.
graydon Oct 12, 2012
9ea5e6a
manual: fix vec and str types to discuss definite / indefinite size.
graydon Oct 12, 2012
089e257
manual: capitalize more examples properly.
graydon Oct 12, 2012
9bbff50
manual: fix various examples.
graydon Oct 12, 2012
7090953
manual: rewrite the section on type kinds.
graydon Oct 12, 2012
d471e24
manual: remove description of references (modes) from memory-slots se…
graydon Oct 12, 2012
0b1a401
manual: fix bullet list.
graydon Oct 12, 2012
d81d4f1
manual: remove as many ~"" literals as possible.
graydon Oct 12, 2012
13ea161
manual: remove as many ~[] literals as possible.
graydon Oct 12, 2012
588d97d
manual: fix accidentally broken test.
graydon Oct 12, 2012
5bca5f7
manual: fix one more nit.
graydon Oct 12, 2012
140d16a
Fix tutorial-ffi tests
catamorphism Oct 12, 2012
bb4dd06
manual: Lightly copyedit the macros section
catamorphism Oct 12, 2012
91315c3
manual: Lightly copyedit the crates section
catamorphism Oct 12, 2012
c33bff9
tutorial: add note about mutability of vectors
Oct 12, 2012
39c0d35
Merge pull request #3734 from dbp/tutorial-fixes
brson Oct 12, 2012
45d1cd8
Copyedit "Items and attributes" section in docs
catamorphism Oct 12, 2012
1bede1f
Replace several common macros of the form #m[...] with m!(...)
killerswan Oct 12, 2012
fe05837
Merge pull request #3746 from killerswan/nuke_fmt
catamorphism Oct 12, 2012
57b4d10
bump version to 0.5.
graydon Oct 12, 2012
cb55e24
Use the Nth impl when translating a static method call, instead
nikomatsakis Oct 13, 2012
98887cc
remove ctor from ast (take 2) (no review: just dead code removal)
nikomatsakis Oct 8, 2012
335e5ca
Add a colon, make an error message clearer
catamorphism Sep 19, 2012
c5fa613
Make moves explicit in libsyntax
catamorphism Oct 13, 2012
d0ed13c
Make moves explicit in rustc::middle
catamorphism Oct 13, 2012
ea5e3d2
Make moves explicit in doc examples
catamorphism Sep 19, 2012
beb7471
Make moves explicit in cargo
catamorphism Sep 19, 2012
2d7d12b
Make moves explicit in compiletest
catamorphism Sep 19, 2012
30a6279
Make moves explicit in core tests
catamorphism Sep 19, 2012
90d06b8
Make moves explicit in std tests
catamorphism Sep 19, 2012
d52f988
Make moves explicit in rustdoc
catamorphism Sep 19, 2012
e18c6bb
Make moves explicit in aux test files
catamorphism Sep 19, 2012
f5f3a75
Make moves explicit in bench tests
catamorphism Sep 19, 2012
2145348
Make moves explicit in cfail tests
catamorphism Sep 19, 2012
3ebd878
Make moves explicit in rpass tests
catamorphism Sep 19, 2012
71dbbe1
Make moves explicit in rfail tests
catamorphism Sep 19, 2012
632d606
Test that functional struct update exprs get rejected if...
catamorphism Oct 13, 2012
9abc7f0
(For legacy code:) In liveness, require that by-move arguments are rv…
catamorphism Sep 6, 2012
c4155f5
Change the kind checker to ignore results of last-use
catamorphism Sep 19, 2012
c6780fb
Make trans ignore last use
catamorphism Sep 19, 2012
f1e5b36
Remove unneeded parens
catamorphism Oct 13, 2012
9406f81
Avoid repeating 'try adding a move' hint
catamorphism Oct 13, 2012
e9caa3f
Add an &str.to_managed method to allow creating non-constant @str val…
Dretch Oct 4, 2012
07edf90
Implement to_managed without using an upcall function, as suggested b…
Dretch Oct 6, 2012
01aaeef
Use gpgv for signature verification in cargo
lucab Oct 14, 2012
ab89b5c
libstd: make Serializer a trait-level typaram
erickt Oct 13, 2012
f6211ab
Add various test cases (xfailed)
catamorphism Oct 15, 2012
7237268
Allow enum discriminator exprs to refer to declared consts
catamorphism Oct 15, 2012
0643466
Fix whitespace
catamorphism Oct 15, 2012
2a1aa9f
Check whether loans conflict with old loans or with themselves.
nikomatsakis Oct 14, 2012
c886629
rustc: Implement monomorphic default methods. r=nmatsakis
pcwalton Oct 8, 2012
4f9e7ba
Un-xfail test for #3521; it works now
catamorphism Oct 15, 2012
c5b82a6
Add test cases for #3668
catamorphism Oct 15, 2012
91ae541
rustc: Merge module and type namespaces. r=brson
pcwalton Oct 15, 2012
7d84505
Error out in resolve if structs try to capture type parameters
catamorphism Oct 15, 2012
d293286
Add test case for Issue 2895
catamorphism Oct 16, 2012
bbc46d5
Add test for Issue 2823
catamorphism Oct 16, 2012
b38092e
In ty::normalize_ty, don't replace self_regions with None
catamorphism Oct 16, 2012
4dc67c5
rustc: Implement intra-crate static methods on anonymous trait implem…
pcwalton Oct 16, 2012
a92c3db
add missing pub from multifile example in sec 12.3
nikomatsakis Oct 17, 2012
1679960
Change a use of map::get to map::find
catamorphism Oct 17, 2012
081a043
Remove integer suffixes
catamorphism Oct 17, 2012
47c83f1
Export std::net_url::encode_component
catamorphism Oct 17, 2012
7f12cc4
Merge pull request #3716 from Blei/fix-3656
catamorphism Oct 17, 2012
ebce097
Merge pull request #3706 from erickt/str-with-capacity
catamorphism Oct 17, 2012
f5e71f5
Merge pull request #3719 from lucab/lucab/to-upstream/pull-2
catamorphism Oct 17, 2012
5cf0c65
Merge pull request #3764 from lucab/lucab/to-upstream/pull-3
catamorphism Oct 17, 2012
e94e82c
Extraneous sigil patrol: ~"string literals"
bstrie Oct 12, 2012
5e1d0ba
Sigil patrol: change fn@ fn& fn~ to @fn &fn ~fn
bstrie Oct 13, 2012
f7ce3dc
Extraneous sigil patrol: turn &[] literals into []
bstrie Oct 13, 2012
ca5506a
fix the indentation of foreign constant
crabtw Oct 8, 2012
66151d0
remove duplicate visibility and fix indentation
crabtw Oct 14, 2012
7236472
word => word_space
catamorphism Oct 17, 2012
b532a8e
Line length
catamorphism Oct 17, 2012
32baf1c
Add a module to getopts to support verbose option definition
killerswan Oct 11, 2012
f2544d8
Fix long lines
catamorphism Oct 17, 2012
fd6be2f
std::treemap - changing types to reflect constraints, adding equality…
Oct 4, 2012
bbc90b6
Fix whitespace
catamorphism Oct 17, 2012
33adb7a
Merge pull request #3739 from killerswan/usagemsg
catamorphism Oct 17, 2012
cf8bded
Enable configure to detect 32 bit systems on 64 bit kernels
arkaitzj Oct 16, 2012
d9f1426
Fix copy warnings in str
catamorphism Oct 17, 2012
7dde840
Fix copy warnings in str
catamorphism Oct 17, 2012
e7e1bab
libsyntax: refactor the parser to consider foreign items as items
Blei Oct 9, 2012
fdd7b4d
core: first working sketch of a condition system.
graydon Oct 17, 2012
0f2fc71
Add examples to the parsing limitations section of the macro tutorial.
paulstansifer Oct 18, 2012
e28a161
Merge pull request #3799 from paulstansifer/master
catamorphism Oct 18, 2012
2c1ed18
Check pandoc's version correctly for >=1.10.
Oct 18, 2012
c0cee3e
libcore: Make run::program_output UTF-8 safe
tychosci Oct 18, 2012
6ce4cf7
rustdoc: Make markdown_writer::pandoc_writer UTF-8 safe
tychosci Oct 18, 2012
4e03ffd
rustc: optimize away some mallocs when building GEP args
erickt Oct 18, 2012
b18a151
Make with_bytes_reader/with_bytes_writer pure
erickt Oct 18, 2012
e3b1471
Rewrite io::ByteBuf into a struct
erickt Oct 18, 2012
95423d2
libcore: call [u8] values bytes, not bufs
erickt Oct 18, 2012
a7ecde3
libcore: minor code cleanup.
erickt Oct 18, 2012
ac50046
Simplify str::to_managed
erickt Oct 18, 2012
fe41cce
Rename str::to_unique to str::to_owned.
erickt Oct 18, 2012
141ef23
Merge pull request #3805 from erickt/incoming
catamorphism Oct 18, 2012
fa38c12
test: Fix failing tests. r=rustbot
pcwalton Oct 18, 2012
b03c71f
Remove dead type definition
catamorphism Oct 18, 2012
55f043d
Merge pull request #3802 from rfw/fix_pandoc_configure
catamorphism Oct 18, 2012
7dda889
Merge pull request #3803 from tychosci/readclose
catamorphism Oct 18, 2012
eeae552
Revert "Simplify str::to_managed"
erickt Oct 18, 2012
754704e
rustc: Implement intra-crate static methods on anonymous trait implem…
pcwalton Oct 18, 2012
acf2d20
core: add previous-handler save and restore for proper nesting.
graydon Oct 18, 2012
33795bc
configure: fix use of bash-specific here strings (also awk, please no…
graydon Oct 18, 2012
e0b71dd
configure: note dep on head.
graydon Oct 18, 2012
3d76a75
configure: check for pandoc version properly.
luqmana Oct 19, 2012
c81953c
Merge pull request #3811 from luqmana/incoming
catamorphism Oct 19, 2012
34aabe5
Add Luqman Aden to AUTHORS
catamorphism Oct 19, 2012
6c4ad31
core: Add type params to condition handling so interface is safe.
graydon Oct 19, 2012
c97944f
core: add potential "simpler interface" to core::condition, also redu…
graydon Oct 19, 2012
10612ee
Remove superfluous by-ref in option::get, option::get_default, option…
catamorphism Oct 19, 2012
8492a02
Fix Windows breakage
catamorphism Oct 19, 2012
81e66ae
Renaming trait name UniqueStr to Trimmable
vertexclique Oct 15, 2012
0243d86
Add Mahmut Bulut to AUTHORS
catamorphism Oct 19, 2012
89de49c
core: add 3rd proposed interface (trap/in) to conditions.
graydon Oct 19, 2012
c05d96c
Valgrind check disable
vertexclique Oct 15, 2012
55d134d
Some tweaks to the valgrind makefile code
brson Oct 20, 2012
15777de
Fix run-pass/issue-2895 for 32-bit archs
brson Oct 20, 2012
0e2437b
uv: implement a way to get client's ip/port.
luqmana Oct 19, 2012
79e538d
uv: use just getpeername for both ipv4 and ipv6.
luqmana Oct 20, 2012
781f8cb
std: Add test for getpeername
brson Oct 20, 2012
9555ee7
std: rename getpeername to get_peer_addr
luqmana Oct 20, 2012
8dd8136
std: Use unique ports in tcp tests
brson Oct 21, 2012
55e40a1
Add new uv functions to rustrt.def.in
brson Oct 21, 2012
4174688
libsyntax: adapt the pretty printer for the new fixed size array syntax
Blei Oct 9, 2012
ac81fff
Remove old fixed-length vector syntax
bstrie Oct 10, 2012
684d945
Fix a pprint test for fixed-length vecs
bstrie Oct 11, 2012
614624a
No longer parse old fixed-length vec sytnax
bstrie Oct 12, 2012
41c37d9
...missed a merge marker on that last rebase
bstrie Oct 12, 2012
f3df50f
Parse and report obsolete fixed-length vector syntax
brson Oct 20, 2012
8a8fbe3
Remove remaining uses of old fixed-length vec syntax
brson Oct 20, 2012
8378757
Remove obsolete fixed-length string test
brson Oct 21, 2012
9980f25
Long lines
brson Oct 21, 2012
191d162
std: Shuffle around test ports some more
brson Oct 21, 2012
4edb881
Talk about ends, rather than means, in macro tutorial introduction.
paulstansifer Oct 21, 2012
082d3d5
Merge pull request #3823 from paulstansifer/master
brson Oct 21, 2012
7c79801
Fix ICE stemming from use of unique pointers in unreachable blocks.
jdm Oct 21, 2012
42c05fe
Correct propagation of mutability from components to base in borrowck
nikomatsakis Oct 22, 2012
46d4bbb
Simplify the AST representation of ty param bounds
catamorphism Oct 17, 2012
dd66e75
Preliminary support for labeled break/continue for `loop`s
catamorphism Oct 18, 2012
dca0776
Incorporate review comments (mostly fixing indentation)
catamorphism Oct 22, 2012
14e7df7
Fix breakage (forgot to commit this...
catamorphism Oct 22, 2012
2eea07b
Merge pull request #3826 from jdm/doublefail
brson Oct 22, 2012
64e1ecb
Long lines
brson Oct 22, 2012
5fc4e51
docs: Remove unfinished sentence in manual. Closes #3806
brson Oct 22, 2012
5a86f5d
rustc: Convert two printlns in trans into debug!
brson Oct 22, 2012
763a8e7
xfail-fast issue-3656
brson Oct 22, 2012
586b22a
Merge pull request #3832 from Dretch/concatdocstrs
brson Oct 22, 2012
f1da442
`submodule sync` won't work in a leaf submodule.
g2p Oct 22, 2012
9ee5fff
Add Gabriel to AUTHORS.txt
brson Oct 22, 2012
3bdaba1
library-ifying of tools - turning cargo, rustdoc, fuzzer, into librar…
Oct 4, 2012
930d0b7
library-tool-conversion: update tests.mk for librustdoc and libcargo
Oct 22, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ Aleksander Balicki <balicki.aleksander@gmail.com>
Alex Rønne Petersen <alex@lycus.org>
Alexander Stavonin <a.stavonin@gmail.com>
Andreas Gal <gal@mozilla.com>
Andrew Paseltiner <apaseltiner@gmail.com>
Arkaitz Jimenez <arkaitzj@gmail.com>
Armin Ronacher <armin.ronacher@active-4.com>
Austin Seipp <mad.one@gmail.com>
auREAX <mark@xn--hwg34fba.ws>
Ben Blum <bblum@andrew.cmu.edu>
Ben Striegel <ben.striegel@gmail.com>
Benjamin Herr <ben@0x539.de>
Expand Down Expand Up @@ -39,13 +41,16 @@ Erick Tryzelaar <erick.tryzelaar@gmail.com>
Erik Rose <erik@mozilla.com>
Evan McClanahan <evan@evanmcc.com>
Francisco Souza <f@souza.cc>
Gabriel <g2p.code@gmail.com>
Gareth Daniel Smith <garethdanielsmith@gmail.com>
Glenn Willen <gwillen@nerdnet.org>
Gonçalo Cabrita <_@gmcabrita.com>
Graham Fawcett <fawcett@uwindsor.ca>
Grahame Bowland <grahame@angrygoats.net>
Haitao Li <lihaitao@gmail.com>
Ian D. Bollinger <ian.bollinger@gmail.com>
Ivano Coppola <rgbfirefox@gmail.com>
Jacob Harris Cryer Kragh <jhckragh@gmail.com>
Jacob Parker <j3parker@csclub.uwaterloo.ca>
Jason Orendorff <jorendorff@mozilla.com>
Jed Davis <jld@panix.com>
Expand All @@ -68,7 +73,9 @@ Kevin Cantu <me@kevincantu.org>
Lennart Kudling
Lindsey Kuper <lindsey@rockstargirl.org>
Luca Bruno <lucab@debian.org>
Luqman Aden <laden@csclub.uwaterloo.ca>
Magnus Auvinen <magnus.auvinen@gmail.com>
Mahmut Bulut <mahmutbulut0@gmail.com>
Margaret Meyerhofer <mmeyerho@andrew.cmu.edu>
Marijn Haverbeke <marijnh@gmail.com>
Matt Brubeck <mbrubeck@limpet.net>
Expand Down Expand Up @@ -103,4 +110,5 @@ Tomoki Aonuma <uasi@99cm.org>
Tycho Sci <tychosci@gmail.com>
Vincent Belliard <vincent@famillebelliard.fr>
Wade Mealing <wmealing@gmail.com>
Yasuhiro Fujii <y-fujii@mimosa-pudica.net>
Zack Corr <zackcorr95@gmail.com>
16 changes: 13 additions & 3 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -120,19 +120,28 @@ CFG_CORELIB :=$(call CFG_LIB_NAME,core)
CFG_STDLIB :=$(call CFG_LIB_NAME,std)
CFG_LIBRUSTC :=$(call CFG_LIB_NAME,rustc)
CFG_LIBSYNTAX :=$(call CFG_LIB_NAME,syntax)
CFG_LIBFUZZER :=$(call CFG_LIB_NAME,fuzzer)
CFG_LIBCARGO :=$(call CFG_LIB_NAME,cargo)
CFG_LIBRUSTDOC :=$(call CFG_LIB_NAME,rustdoc)

STDLIB_GLOB :=$(call CFG_LIB_GLOB,std)
CORELIB_GLOB :=$(call CFG_LIB_GLOB,core)
LIBRUSTC_GLOB :=$(call CFG_LIB_GLOB,rustc)
LIBSYNTAX_GLOB :=$(call CFG_LIB_GLOB,syntax)
LIBFUZZER_GLOB :=$(call CFG_LIB_GLOB,fuzzer)
LIBCARGO_GLOB :=$(call CFG_LIB_GLOB,cargo)
LIBRUSTDOC_GLOB :=$(call CFG_LIB_GLOB,rustdoc)
STDLIB_DSYM_GLOB :=$(call CFG_LIB_DSYM_GLOB,std)
CORELIB_DSYM_GLOB :=$(call CFG_LIB_DSYM_GLOB,core)
LIBRUSTC_DSYM_GLOB :=$(call CFG_LIB_DSYM_GLOB,rustc)
LIBSYNTAX_DSYM_GLOB :=$(call CFG_LIB_DSYM_GLOB,syntax)
LIBFUZZER_DSYM_GLOB :=$(call CFG_LIB_DSYM_GLOB,fuzzer)
LIBCARGO_DSYM_GLOB :=$(call CFG_LIB_DSYM_GLOB,cargo)
LIBRUSTDOC_DSYM_GLOB :=$(call CFG_LIB_DSYM_GLOB,rustdoc)

# version-string calculation
CFG_GIT_DIR := $(CFG_SRC_DIR).git
CFG_RELEASE = 0.4
CFG_RELEASE = 0.5
CFG_VERSION = $(CFG_RELEASE)

ifneq ($(wildcard $(CFG_GIT)),)
Expand All @@ -144,8 +153,9 @@ ifneq ($(wildcard $(CFG_GIT_DIR)),)
endif
endif

ifdef CFG_DISABLE_VALGRIND
$(info cfg: disabling valgrind (CFG_DISABLE_VALGRIND))
ifdef CFG_ENABLE_VALGRIND
$(info cfg: enabling valgrind (CFG_ENABLE_VALGRIND))
else
CFG_VALGRIND :=
endif
ifdef CFG_BAD_VALGRIND
Expand Down
63 changes: 36 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,52 +6,61 @@ documentation.

## Installation

The Rust compiler is slightly unusual in that it is written in Rust and
therefore must be built by a precompiled "snapshot" version of itself (made in
an earlier state of development). As such, source builds require that:
The Rust compiler currently must be built from a [tarball], unless you
are on Windows, in which case using the [installer][win-exe] is
recommended.

* You are connected to the internet, to fetch snapshots.
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.

* You can at least execute snapshot binaries of one of the forms we offer
them in. Currently we build and test snapshots on:
Snapshot binaries are currently built and tested on several platforms:

* Windows (7, server 2008 r2) x86 only
* Linux 2.6.x (various distributions) x86 and x86-64
* OSX 10.6 ("Snow Leopard") or 10.7 ("Lion") x86 and x86-64
* Windows (7, Server 2008 R2), x86 only
* Linux (various distributions), x86 and x86-64
* OSX 10.6 ("Snow Leopard") or greater, x86 and x86-64

You may find other platforms work, but these are our "tier 1" supported build
environments that are most likely to work. Further platforms will be added to
the list in the future via cross-compilation.
You may find that other platforms work, but these are our "tier 1"
supported build environments that are most likely to work.

To build from source you will also need the following prerequisite packages:
> ***Note:*** Windows users should read the detailed
> [getting started][wiki-start] notes on the wiki. Even when using
> the binary installer the Windows build requires a MinGW installation,
> the precise details of which are not discussed here.

To build from source you will also need the following prerequisite
packages:

* g++ 4.4 or clang++ 3.x
* python 2.6 or later
* python 2.6 or later (but not 3.x)
* perl 5.0 or later
* gnu make 3.81 or later
* curl

Assuming you're on a relatively modern Linux/OSX system and have met the
prerequisites, something along these lines should work:
Assuming you're on a relatively modern *nix system and have met the
prerequisites, something along these lines should work.

$ wget http://dl.rust-lang.org/dist/rust-0.4.tar.gz
$ tar -xzf rust-0.4.tar.gz
$ cd rust-0.4
$ ./configure
$ make && make install

When complete, make install will place the following programs into
/usr/local/bin:

* rustc, the Rust compiler
* rustdoc, the API-documentation tool
* cargo, the Rust package manager
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.

In addition to a manual page under /usr/local/share/man and a set of host and
target libraries under /usr/local/lib/rustc.
When complete, `make install` will place several programs into
`/usr/local/bin`: `rustc`, the Rust compiler; `rustdoc`, the
API-documentation tool, and `cargo`, the Rust package manager.

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.
[wiki-start]: https://github.com/mozilla/rust/wiki/Note-getting-started-developing-Rust
[tarball]: http://dl.rust-lang.org/dist/rust-0.4.tar.gz
[win-exe]: http://dl.rust-lang.org/dist/rust-0.4-install.exe


## License
Expand Down
2 changes: 1 addition & 1 deletion RELEASES.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Version 0.4 (October 2012)
--------------------------

* ~1500 changes, numerous bugfixes
* ~2000 changes, numerous bugfixes

* Syntax
* All keywords are now strict and may not be used as identifiers anywhere
Expand Down
99 changes: 90 additions & 9 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ need_cmd cmp
need_cmd mkdir
need_cmd printf
need_cmd cut
need_cmd head
need_cmd grep
need_cmd xargs
need_cmd cp
Expand Down Expand Up @@ -257,6 +258,16 @@ case $CFG_CPUTYPE in
err "unknown CPU type: $CFG_CPUTYPE"
esac

# Detect 64 bit linux systems with 32 bit userland and force 32 bit compilation
if [ $CFG_OSTYPE = unknown-linux-gnu -a $CFG_CPUTYPE = x86_64 ]
then
file -L "$SHELL" | grep -q "x86[_-]64"
if [ $? != 0 ]; then
CFG_CPUTYPE=i686
fi
fi


DEFAULT_HOST_TRIPLE="${CFG_CPUTYPE}-${CFG_OSTYPE}"

CFG_SRC_DIR="$(cd $(dirname $0) && pwd)/"
Expand All @@ -283,7 +294,7 @@ else
fi

opt sharedstd 1 "build libstd as a shared library"
opt valgrind 1 "run tests with valgrind (memcheck by default)"
opt valgrind 0 "run tests with valgrind (memcheck by default)"
opt helgrind 0 "run tests with helgrind instead of memcheck"
opt docs 1 "build documentation"
opt optimize 1 "build optimized rust code"
Expand All @@ -295,6 +306,7 @@ opt manage-submodules 1 "let the build manage the git submodules"
opt mingw-cross 0 "cross-compile for win32 using mingw"
opt clang 0 "prefer clang to gcc for building the runtime"
opt local-rust 0 "use an installed rustc rather than downloading a snapshot"
opt pax-flags 0 "apply PaX flags to rustc binaries (required for GRSecurity/PaX-patched kernels)"
valopt prefix "/usr/local" "set installation prefix"
valopt local-rust-root "/usr/local" "set prefix for local rust binary"
valopt llvm-root "" "set LLVM root"
Expand Down Expand Up @@ -343,14 +355,69 @@ probe CFG_PDFLATEX pdflatex
probe CFG_XETEX xetex
probe CFG_LUATEX luatex
probe CFG_NODE nodejs node
if [ "$CFG_OSTYPE" = "unknown-linux-gnu" ]
then
probe CFG_PAXCTL paxctl /sbin/paxctl
probe CFG_ZCAT zcat
fi

if [ ! -z "$CFG_PANDOC" ]
then
PV=$(pandoc --version | awk '/^pandoc/ {print $2}')
if [ "$PV" \< "1.8" ]
PANDOC_VER_LINE=$(pandoc --version | grep '^pandoc ')
PANDOC_VER=${PANDOC_VER_LINE#pandoc }
PV_MAJOR_MINOR=${PANDOC_VER%.[0-9]*}
PV_MAJOR=${PV_MAJOR_MINOR%%[.][0-9]*}
PV_MINOR=${PV_MAJOR_MINOR#[0-9]*[.]}
PV_MINOR=${PV_MINOR%%[.][0-9]*}
if [ "$PV_MAJOR" -lt "1" ] || [ "$PV_MINOR" -lt "8" ]
then
step_msg "pandoc $PV is too old. disabling"
BAD_PANDOC=1
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. disabling"
BAD_PANDOC=1
fi
fi

if [ "$CFG_OSTYPE" = "unknown-linux-gnu" ]
then
if [ ! -z "$CFG_ENABLE_PAX_FLAGS" -a -z "$CFG_PAXCTL" ]
then
err "enabled PaX markings but no paxctl binary found"
fi

if [ -z "$CFG_DISABLE_PAX_FLAGS" ]
then
# GRSecurity/PaX detection. This can be very flaky.
GRSEC_DETECTED=

# /dev/grsec only exists if CONFIG_GRKERNSEC_NO_RBAC is not set.
# /proc/sys/kernel/grsecurity is not available if ÇONFIG_GRKERNSEC_SYSCTL is not set.
if [ -e /dev/grsec -o -d /proc/sys/kernel/grsecurity ]
then
GRSEC_DETECTED=1
# /proc/config.gz is normally only available to root, and only if CONFIG_IKCONFIG_PROC has been set.
elif [ -r /proc/config.gz -a ! -z "$CFG_ZCAT" ]
then
if "$CFG_ZCAT" /proc/config.gz | grep --quiet "CONFIG_GRKERNSEC=y"
then
GRSEC_DETECTED=1
fi
# Flaky.
elif grep --quiet grsec /proc/version
then
GRSEC_DETECTED=1
fi

if [ ! -z "$GRSEC_DETECTED" ]
then
step_msg "GRSecurity: yes"
if [ ! -z "$CFG_PAXCTL" ]
then
CFG_ENABLE_PAX_FLAGS=1
else
warn "GRSecurity kernel detected but no paxctl binary found: not setting CFG_ENABLE_PAX_FLAGS"
fi
else
step_msg "GRSecurity: no"
fi
fi
fi

Expand Down Expand Up @@ -523,15 +590,23 @@ then
msg "git: submodule sync"
"${CFG_GIT}" submodule --quiet sync

msg "git: submodule update"
"${CFG_GIT}" submodule --quiet update --init
need_ok "git failed"

msg "git: submodule foreach sync"
"${CFG_GIT}" submodule --quiet foreach --recursive 'if test -e .gitmodules; then git submodule sync; fi'
need_ok "git failed"

msg "git: submodule foreach update"
"${CFG_GIT}" submodule --quiet update --init --recursive
need_ok "git failed"

# NB: this is just for the sake of getting the submodule SHA1 values
# and status written into the build log.
msg "git: submodule status"
"${CFG_GIT}" submodule status --recursive

msg "git: submodule update"
"${CFG_GIT}" submodule --quiet update --init --recursive
need_ok "git failed"

msg "git: submodule clobber"
"${CFG_GIT}" submodule --quiet foreach --recursive git clean -dxf
need_ok "git failed"
Expand Down Expand Up @@ -699,6 +774,12 @@ putvar CFG_C_COMPILER
putvar CFG_LIBDIR
putvar CFG_DISABLE_MANAGE_SUBMODULES

if [ ! -z "$CFG_ENABLE_PAX_FLAGS" ]
then
putvar CFG_ENABLE_PAX_FLAGS
putvar CFG_PAXCTL
fi

if [ ! -z $BAD_PANDOC ]
then
CFG_PANDOC=
Expand Down
2 changes: 1 addition & 1 deletion doc/lib/codemirror-rust.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CodeMirror.defineMode("rust", function() {
"as": "op", "true": "atom", "false": "atom", "assert": "op", "check": "op",
"claim": "op", "extern": "ignore", "unsafe": "ignore", "import": "else-style",
"export": "else-style", "copy": "op", "log": "op",
"use": "op", "self": "atom"
"use": "op", "self": "atom", "pub": "atom", "priv": "atom"
};
var typeKeywords = function() {
var keywords = {"fn": "fn"};
Expand Down
7 changes: 4 additions & 3 deletions doc/prep.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ while ((line = lines[cur++]) != null) {
var html = '<pre class="cm-s-default">', curstr = "", curstyle = null;
function add(str, style) {
if (style != curstyle) {
if (curstyle) html += '<span class="cm-' + curstyle + '">' + curstr
+ "</span>";
else if (curstr) html += curstr;
if (curstyle) html +=
'<span class="cm-' + CodeMirror.htmlEscape(curstyle) + '">' +
CodeMirror.htmlEscape(curstr) + "</span>";
else if (curstr) html += CodeMirror.htmlEscape(curstr);
curstr = str; curstyle = style;
} else curstr += str;
}
Expand Down
Loading