about summary refs log tree commit diff
path: root/doc/rust.md
AgeCommit message (Collapse)AuthorLines
2014-02-02Move doc/ to src/doc/Alex Crichton-3954/+0
We generate documentation into the doc/ directory, so we shouldn't be intermingling source files with generated files
2014-02-02auto merge of #11988 : cmr/rust/11668-squash, r=alexcrichtonbors-5/+1
2014-02-02Change fmt! to format!Byron Williams-5/+1
2014-02-02Remove rustpkg.Corey Richardson-1/+1
I'm sorry :'( Closes #11859
2014-02-02rustc: update docs & propagate @[]/@str removal more.Huon Wilson-1/+1
Various functions can now be made specific to ~[], or just non-managed vectors.
2014-02-02doc: Remove references to `@str` from the documentationPatrick Walton-1/+1
2014-01-29auto merge of #11877 : Armavica/rust/doc-pm-vector, r=alexcrichtonbors-13/+38
This feature already was in the tutorial, but I believe that the tutorial should be a strict subset of the manual. I also added an example.
2014-01-29Removing usage of the do keyword from documentationScott Lawrence-46/+0
2014-01-29Document vector destructuring with wildcard '..'Virgile Andreani-13/+38
2014-01-28Update extract-tests.py to use same test directives as rustdoc.William Ting-15/+15
Closes #11362.
2014-01-24Add '@' subpattern binding and examples to manual and tutorialVirgile Andreani-0/+21
2014-01-24Replace '*' by '..' in the doc of pattern matchingVirgile Andreani-2/+2
2014-01-19document file!Andre Arko-0/+1
2014-01-18doc: fix dangling links in rust.mdAdrien Tétar-12/+9
Fixes #11559 (not that the manual couldn't use a review).
2014-01-17doc: fix rust.md falloutAdrien Tétar-21/+25
2014-01-17Elaborate manual on matching (dereference patterns, lvalue/rvalue matching)Edward Z. Yang-2/+20
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
2014-01-16Document blocks and use statements a little moreAlex Crichton-5/+17
Closes #3862
2014-01-13librustc: Remove `@` pointer patterns from the languagePatrick Walton-7/+7
2014-01-11Add inline attributes documentation.William Ting-6/+28
Closes #7959.
2014-01-11Remove re-exports of std::io::stdio::{print, println} in the prelude.Brendan Zabarauskas-2/+2
The `print!` and `println!` macros are now the preferred method of printing, and so there is no reason to export the `stdio` functions in the prelude. The functions have also been replaced by their macro counterparts in the tutorial and other documentation so that newcomers don't get confused about what they should be using.
2014-01-07'borrowed pointer' -> 'reference'Brian Anderson-21/+21
2014-01-07doc: Title reference manual consistentlyBrian Anderson-1/+1
2014-01-07auto merge of #11350 : kchmck/rust/fix-pdf-glitches, r=alexcrichtonbors-0/+3
I was reading through the tutorial and manual pdfs and noticed some of the code blocks have glitches in their formatting: ![](http://i.imgur.com/9HXZ4dW.png) ![](http://i.imgur.com/Ds2By6j.png) Putting empty lines around the blocks fixes this. I did a search through the other markdown files and made the change there as well.
2014-01-06Fix formatting of some code blocks in pdf docsMick Koch-0/+3
Code blocks apparently need to be surrounded by whitespace to be output correctly when generating pdfs
2014-01-05doc: update reference to new vector size syntaxRich Lane-2/+1
2014-01-02Abort on double-failure. #910Brian Anderson-4/+2
Previously this was an rtabort!, indicating a runtime bug. Promote this to a more intentional abort and print a (slightly) more informative error message. Can't test this sense our test suite can't handle an abort exit.
2013-12-31Update documentation to remove reference to ::rt logginga_m0d-19/+0
2013-12-30auto merge of #11190 : eliovir/rust/patch-3, r=alexcrichtonbors-1/+1
#[ author = "Jane Doe" ]; raises "warning: unknown crate attribute" replace `pkgid` by `crate_id` add `comment`
2013-12-29Update Docs to use crateidLuis de Bethencourt-6/+6
2013-12-29rust.md : update crate attributes.eliovir-2/+2
#[ author = "Jane Doe" ]; raises "warning: unknown crate attribute"
2013-12-17auto merge of #10972 : metajack/rust/pkgid-with-name, r=alexcrichtonbors-1/+1
This change extends the pkgid attribute to allow of explicit crate names, instead of always inferring them based on the path. This means that if your GitHub repo is called `rust-foo`, you can have your pkgid set your library name to `foo`. You'd do this with a pkgid attribute like `github.com/somewhere/rust-foo#foo:1.0`. This is half of the fix for #10922.
2013-12-17Update docs to new syntax.Jack Moffitt-1/+1
2013-12-16doc: Update the documentation to describe the `Pod` trait.Patrick Walton-0/+6
2013-12-15Correct definition of lvalues, fixes #10890Edward Z. Yang-1/+5
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
2013-12-14auto merge of #10944 : metajack/rust/pkgid-docs, r=cmrbors-29/+16
2013-12-13auto merge of #10849 : adridu59/rust/patch-css, r=alexcrichtonbors-1/+0
rustdoc: - fix search-bar layout doc: CSS: - switch to native pandoc toc depth - rm some dead code - clamp width to be readable (we're not Wikipedia!) - don't background-color titles, it's bloating - make syntax-highlighting colors inline with rust-lang.org - space indents @alexcrichton
2013-12-13doc: CSS changes + commit improved faviconAdrien Tétar-1/+0
2013-12-13auto merge of #10913 : cmr/rust/rustdoc_man, r=huonwbors-3/+1
Clarify that it's sundown, and that we don't support magic
2013-12-12Update documentation for new `pkgid` attribute.Jack Moffitt-29/+16
2013-12-11Make 'self lifetime illegal.Erik Price-5/+5
Also remove all instances of 'self within the codebase. This fixes #10889.
2013-12-11proto is gonekud1ing-3/+1
The following files need to be adjusted, too (i can't do it now): - doc/po/ja/rust.md.po - doc/po/rust.md.pot
2013-12-02auto merge of #10773 : jvns/rust/patch-1, r=cmrbors-0/+26
The section on closure types was missing, so I added one. I'm new to Rust, so there are probably important things to say about closure types that I'm missing here. I tested the example with the latest Rust nightly.
2013-12-02Add section on closure types to manualJulia Evans-0/+26
2013-12-02Bring the linkage documentation up-to-dateAlex Crichton-0/+139
This includes documentation for all the previous changes done to linking in #10582. Additionally, this brings the list of feature-gates up-to-date with the currently recognized list of features.
2013-11-29Add generation of static libraries to rustcAlex Crichton-8/+4
This commit implements the support necessary for generating both intermediate and result static rust libraries. This is an implementation of my thoughts in https://mail.mozilla.org/pipermail/rust-dev/2013-November/006686.html. When compiling a library, we still retain the "lib" option, although now there are "rlib", "staticlib", and "dylib" as options for crate_type (and these are stackable). The idea of "lib" is to generate the "compiler default" instead of having too choose (although all are interchangeable). For now I have left the "complier default" to be a dynamic library for size reasons. Of the rust libraries, lib{std,extra,rustuv} will bootstrap with an rlib/dylib pair, but lib{rustc,syntax,rustdoc,rustpkg} will only be built as a dynamic object. I chose this for size reasons, but also because you're probably not going to be embedding the rustc compiler anywhere any time soon. Other than the options outlined above, there are a few defaults/preferences that are now opinionated in the compiler: * If both a .dylib and .rlib are found for a rust library, the compiler will prefer the .rlib variant. This is overridable via the -Z prefer-dynamic option * If generating a "lib", the compiler will generate a dynamic library. This is overridable by explicitly saying what flavor you'd like (rlib, staticlib, dylib). * If no options are passed to the command line, and no crate_type is found in the destination crate, then an executable is generated With this change, you can successfully build a rust program with 0 dynamic dependencies on rust libraries. There is still a dynamic dependency on librustrt, but I plan on removing that in a subsequent commit. This change includes no tests just yet. Our current testing infrastructure/harnesses aren't very amenable to doing flavorful things with linking, so I'm planning on adding a new mode of testing which I believe belongs as a separate commit. Closes #552
2013-11-28Register new snapshotsAlex Crichton-3/+3
2013-11-27Be more strict about doc commentsCorey Richardson-5/+7
Previously, `//// foo` and `/*** foo ***/` were accepted as doc comments. This changes that, so that only `/// foo` and `/** foo ***/` are accepted. This confuses many newcomers and it seems weird. Also update the manual for these changes, and modernify the EBNF for comments. Closes #10638
2013-11-26auto merge of #10312 : thestinger/rust/thread_local, r=alexcritchtonbors-0/+2
This provides a building block for fast thread-local storage. It does not change the safety semantics of `static mut`. Closes #10310
2013-11-26add `#[thread_local]` attributeDaniel Micay-0/+2
This provides a building block for fast thread-local storage. It does not change the safety semantics of `static mut`. Closes #10310
2013-11-26test: Remove all remaining non-procedure uses of `do`.Patrick Walton-18/+12