1
1
<!DOCTYPE html>
2
-
3
- < html >
4
-
5
- < head >
6
- < meta charset ='utf-8 '>
7
-
8
- < title > The Rust Programming Language</ title >
9
-
10
- < link rel ="stylesheet " href ="bootstrap.min.css ">
11
- < link rel ="stylesheet " href ="codemirror.css ">
12
- < link rel ="stylesheet " href ="style.css ">
13
- < link rel ="shortcut icon " href ="favicon.ico " />
14
- </ head >
15
-
16
-
17
- < body >
18
-
19
- <!-- GitHub banner -->
20
- <!--<a href="https://github.com/mozilla/rust"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>-->
21
-
22
- < div class ="container ">
23
- < div class ="row ">
24
-
25
- <!-- Sidebar -->
26
- < div class ="span2 logo ">
27
- < img id ="logo " src ="logos/rust-logo-128x128-blk.png " alt ="rust logo "/>
28
- </ div >
29
- < div id ="nav " class ="span11 ">
30
- < ul class ="unstyled menu top ">
31
- < li class ="menu-header "> < span class ="header-text "> Getting Started</ span >
32
- < ul >
33
- < li >
34
- < ul class ="docs ">
35
- < li > < a href ="http://doc.rust-lang.org/doc/0.8/tutorial.html "> Tutorial</ a > (0.8)</ li >
36
- < li > < a href ="http://doc.rust-lang.org/doc/0.8/rust.html "> Manual</ a > (0.8)</ li >
37
- < li > < a href ="http://doc.rust-lang.org/doc/master/tutorial.html "> Tutorial</ a > (master)</ li >
38
- < li > < a href ="http://doc.rust-lang.org/doc/master/rust.html "> Manual</ a > (master)</ li >
39
- </ ul >
40
- </ li >
41
- </ ul >
42
- </ li >
43
- < li class ="menu-header "> < span class ="header-text "> Documentation</ span >
44
- < ul >
45
- < li >
46
- < ul class ="docs ">
47
- < li > < a href ="http://doc.rust-lang.org/doc/0.8/std/index.html "> std</ a > |
48
- < a href ="http://doc.rust-lang.org/doc/0.8/extra/index.html "> extra</ a > (0.8)</ li >
49
- </ ul >
50
- </ li >
51
- < li >
52
- < ul class ="docs ">
53
- < li > < a href ="http://doc.rust-lang.org/doc/master/std/index.html "> std</ a > |
54
- < a href ="http://doc.rust-lang.org/doc/master/extra/index.html "> extra</ a > (master)</ li >
55
- </ ul >
56
- </ li >
57
- < li > < a href ="http://github.com/mozilla/rust/wiki/Docs "> Other docs</ a > </ li >
58
- </ ul >
59
- </ li >
60
- < li class ="menu-header "> < span class ="header-text "> Downloads</ span >
61
- < ul >
62
- < li > 0.8 - September 26 2013</ li >
63
- < li >
64
- < a href ="http://static.rust-lang.org/dist/rust-0.8.tar.gz "> .tar.gz</ a > |
65
- < a href ="http://static.rust-lang.org/dist/rust-0.8-install.exe "> .exe</ a >
66
- </ li >
67
- < li > < a href ="https://github.com/mozilla/rust/blob/0.8/RELEASES.txt "> Release notes</ a > </ li >
68
- < li > < a href ="https://github.com/mozilla/rust/wiki/Doc-releases "> Previous releases</ a > </ li >
69
- </ ul >
70
- </ li >
71
- < li class ="menu-header "> < span class ="header-text "> Community</ span >
72
- < ul >
73
- < li > < a href ="http://github.com/mozilla/rust "> GitHub</ a > </ li >
74
- < li > < a href ="https://mail.mozilla.org/listinfo/rust-dev "> rust-dev</ a > mailing list</ li >
75
- < li > < a href ="https://mail.mozilla.org/listinfo/rust-commits "> rust-commits</ a > mailing list</ li >
76
- < li > < a href ="http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust "> #rust on irc.mozilla.org</ a > </ li >
77
- < li > < a href ="http://twitter.com/rustlang "> Twitter</ a > </ li >
78
- </ ul >
79
- </ li >
80
- </ ul >
81
- </ div > <!-- #nav -->
82
-
83
- <!-- Main content -->
84
- < div id ="main " class ="span13 ">
85
-
86
- < h1 > Rust < small > a safe, concurrent, practical language</ small > </ h1 >
87
-
88
- < p >
89
- Rust is a curly-brace, block-structured expression
90
- language. It visually resembles the C language family, but
91
- differs significantly in syntactic and semantic details. Its
92
- design is oriented toward concerns of “programming in the
93
- large”, that is, of creating and
94
- maintaining < em > boundaries</ em > – both abstract and
95
- operational – that preserve large-system
96
- < em > integrity</ em > , < em > availability</ em >
97
- and < em > concurrency</ em > .
98
- </ p >
99
-
100
- < p >
101
- It supports a mixture of imperative procedural, concurrent
102
- actor, object-oriented and pure functional styles. Rust also
103
- supports generic programming and metaprogramming, in both
104
- static and dynamic styles.
105
- </ p >
106
-
107
-
108
- < div class ="row ">
109
- < div class ="span3 "> < h2 > A short summary of features</ h2 > </ div >
110
-
111
- < div class ="span10 ">
112
- < table id ="features ">
113
- < tr > < td > Type system</ td > < td > static, nominal, linear, algebraic, locally inferred</ td > </ tr >
114
- < tr > < td > Memory safety</ td > < td > no null or dangling pointers, no buffer overflows</ td > </ tr >
115
- < tr > < td > Concurrency</ td > < td > lightweight tasks with message passing, no shared memory</ td > </ tr >
116
- < tr > < td > Generics</ td > < td > type parameterization with type classes</ td > </ tr >
117
- < tr > < td > Exception handling</ td > < td > unrecoverable unwinding with task isolation</ td > </ tr >
118
- < tr > < td > Memory model</ td > < td > optional task-local GC, safe pointer types with region analysis</ td > </ tr >
119
- < tr > < td > Compilation model</ td > < td > ahead-of-time, C/C++ compatible</ td > </ tr >
120
- < tr > < td > License</ td > < td > dual MIT / Apache 2</ td > </ tr >
121
- </ table >
122
- </ div > <!-- .span10 -->
123
- </ div > <!-- .row -->
124
-
125
-
126
- < div class ="row ">
127
- < div class ="span3 "> < h2 > A very small taste of what it looks like</ h2 > </ div >
128
-
129
- < div class ="span10 ">
130
-
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="utf-8 ">
5
+ < title > The Rust Programming Language</ title >
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
7
+ < meta name ="keywords " content ="Rust, Rust programming language, rustlang, Mozilla Rust ">
8
+
9
+ < link rel ="stylesheet " href ="css/bootstrap.min.css ">
10
+ < link rel ="stylesheet " href ="css/codemirror.css ">
11
+ < link rel ="stylesheet " href ="css/style.css ">
12
+ </ head >
13
+
14
+ < body class ="container ">
15
+ < ul class ="row menu ">
16
+ < li class ="col-xs-2 col-md-2 ">
17
+ < img class ="img-responsive " src ="logos/rust-logo-128x128-blk-v2.png " height ="128 " width ="128 " alt ="Rust logo " />
18
+ </ li >
19
+ < li class ="col-xs-2 col-md-2 "> < h2 > Getting Started</ h2 >
20
+ < ul >
21
+ < li > < a href ="http://doc.rust-lang.org/doc/0.8/tutorial.html "> Tutorial</ a > (0.8)</ li >
22
+ < li > < a href ="http://doc.rust-lang.org/doc/0.8/rust.html "> Manual</ a > (0.8)</ li >
23
+ < li > < a href ="http://doc.rust-lang.org/doc/master/tutorial.html "> Tutorial</ a > (master)</ li >
24
+ < li > < a href ="http://doc.rust-lang.org/doc/master/rust.html "> Manual</ a > (master)</ li >
25
+ </ ul >
26
+ </ li >
27
+ < li class ="col-xs-2 col-md-2 "> < h2 > Documentation</ h2 >
28
+ < ul >
29
+ < li >
30
+ < a href ="http://doc.rust-lang.org/doc/0.8/std/index.html "> std</ a > |
31
+ < a href ="http://doc.rust-lang.org/doc/0.8/extra/index.html "> extra</ a > (0.8)
32
+ </ li >
33
+ < li >
34
+ < a href ="http://doc.rust-lang.org/doc/master/std/index.html "> std</ a > |
35
+ < a href ="http://doc.rust-lang.org/doc/master/extra/index.html "> extra</ a > (master)
36
+ </ li >
37
+ < li >
38
+ < a href ="http://github.com/mozilla/rust/wiki/Docs "> Other docs</ a >
39
+ </ li >
40
+ </ ul >
41
+ </ li >
42
+ < li class ="col-xs-2 col-md-2 "> < h2 > Downloads</ h2 >
43
+ < ul >
44
+ < li >
45
+ 0.8 - Sep. 26 2013
46
+ </ li >
47
+ < li >
48
+ < a href ="http://static.rust-lang.org/dist/rust-0.8.tar.gz "> .tar.gz</ a > |
49
+ < a href ="http://static.rust-lang.org/dist/rust-0.8-install.exe "> .exe</ a >
50
+ </ li >
51
+ < li >
52
+ < a href ="https://github.com/mozilla/rust/blob/0.8/RELEASES.txt "> Release notes</ a >
53
+ </ li >
54
+ < li >
55
+ < a href ="https://github.com/mozilla/rust/wiki/Doc-releases "> Previous releases</ a >
56
+ </ li >
57
+ </ ul >
58
+ </ li >
59
+ < li class ="col-xs-2 col-md-2 "> < h2 > Community</ h2 >
60
+ < ul >
61
+ < li > < a href ="http://github.com/mozilla/rust "> GitHub</ a > |
62
+ < a href ="http://twitter.com/rustlang "> Twitter</ a > </ li >
63
+ < li > < a href ="https://mail.mozilla.org/listinfo/rust-dev "> rust-dev</ a > mailing list</ li >
64
+ < li > < a href ="https://mail.mozilla.org/listinfo/rust-commits "> rust-commits</ a > mailing list</ li >
65
+ < li > < a href ="http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust "> #rust on irc.mozilla.org</ a > </ li >
66
+ </ ul >
67
+ </ li >
68
+ </ ul >
69
+ < div >
70
+ < h1 > Rust < small > a safe, concurrent, practical language</ small > </ h1 >
71
+ < p >
72
+ Rust is a curly-brace, block-structured expression language.
73
+ It visually resembles the C language family, but differs
74
+ significantly in syntactic and semantic details.
75
+ Its design is oriented toward concerns of “programming in the
76
+ large”, that is, of creating and maintaining < em > boundaries</ em >
77
+ – both abstract and operational – that preserve large-system < em >
78
+ integrity</ em > , < em > availability</ em > and < em > concurrency</ em > .
79
+ </ p >
80
+ < p >
81
+ It supports a mixture of imperative procedural, concurrent
82
+ actor, object-oriented and pure functional styles. Rust also
83
+ supports generic programming and metaprogramming, in both
84
+ static and dynamic styles.
85
+ </ p >
86
+
87
+ < div class ="row ">
88
+ < div class ="col-md-3 ">
89
+ < h2 > A short summary of features</ h2 >
90
+ </ div >
91
+ < div class ="col-md-9 ">
92
+ < table class ="table-features table-hover "> < tbody >
93
+ < tr > < td > Type system</ td > < td > static, nominal, linear, algebraic, locally inferred</ td > </ tr >
94
+ < tr > < td > Memory safety</ td > < td > no null or dangling pointers, no buffer overflows</ td > </ tr >
95
+ < tr > < td > Concurrency</ td > < td > lightweight tasks with message passing, no shared memory</ td > </ tr >
96
+ < tr > < td > Generics</ td > < td > type parametrization with type classes</ td > </ tr >
97
+ < tr > < td > Exception handling</ td > < td > unrecoverable unwinding with task isolation</ td > </ tr >
98
+ < tr > < td > Memory model</ td > < td > optional task-local GC, safe pointer types with region analysis</ td > </ tr >
99
+ < tr > < td > Compilation model</ td > < td > ahead-of-time, C/C++ compatible</ td > </ tr >
100
+ < tr > < td > License</ td > < td > dual MIT / Apache 2</ td > </ tr >
101
+ </ tbody > </ table >
102
+ </ div >
103
+ </ div >
104
+ < div class ="row ">
105
+ < div class ="col-md-3 ">
106
+ < h2 > A very small taste of what it looks like</ h2 >
107
+ </ div >
108
+ < div class ="col-md-9 ">
131
109
< pre class ="cm-s-default ">
132
110
< span class ="cm-keyword "> fn</ span > < span class ="cm-def "> main</ span > () {
133
111
< span class ="cm-keyword "> let</ span > < span class ="cm-def "> nums</ span > = [< span class ="cm-number "> 1</ span > , < span class ="cm-number "> 2</ span > ];
@@ -142,16 +120,8 @@ <h1>Rust <small>a safe, concurrent, practical language</small></h1>
142
120
}
143
121
}
144
122
</ pre >
145
-
146
-
147
- </ div > <!-- .span10 -->
148
-
149
- </ div > <!-- .row -->
150
- </ div > <!-- #main -->
151
-
152
- </ div > <!-- .row -->
153
- </ div > <!-- #container -->
154
-
155
- </ body >
156
-
157
- </ html >
123
+ </ div >
124
+ </ div >
125
+ </ div >
126
+ </ body >
127
+ </ html >
0 commit comments