@@ -2,31 +2,25 @@ \section{Getting Started}
2
2
3
3
\subsection {Installing Rust }
4
4
5
- \begin {frame }[c]{Rustup.rs}
6
- \begin {quote }
7
- «rustup is an installer for \\
8
- the systems programming language Rust» \\
9
- \vspace {0.5em}
10
- {\normalfont \small --- www.rustup.rs}
11
- \end {quote }
12
- \end {frame }
5
+ \begin {frame }[fragile]{Rustup}
6
+ The best way to install and update the Rust toolchain is rustup
7
+ (\url {https://rustup.rs/}).
8
+
9
+ It makes it easy to:
10
+
11
+ \begin {itemize }
12
+ \item Install different Rust versions
13
+ \item Install cross compilation toolchains
14
+ \end {itemize }
15
+
16
+ \vspace {1em}
17
+
18
+ To download the installer script:
13
19
14
- \begin {frame }[fragile]{Rustup.rs}
15
- \begin {itemize }
16
- \item Official installation method by now
17
- \item Makes it easy to:
18
- \begin {itemize }
19
- \item Install different Rust versions
20
- \item Install cross compilation toolchains
21
- \end {itemize }
22
- \item Written in Rust itself
23
- \pause \item Installing is easy:
24
20
\begin {minted }{sh}
25
- $ curl https://sh.rustup.rs -sSf | sh
21
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
22
+ -o rustup.sh
26
23
\end {minted }
27
- \pause Obviously you shouldn't do that ;)
28
- \item Alternatively you can use \url {https://play.rust-lang.org/}
29
- \end {itemize}
30
24
\end {frame }
31
25
32
26
\subsection {Cargo, Rust's Package Manager }
@@ -36,6 +30,7 @@ \subsection{Cargo, Rust's Package Manager}
36
30
\item Fetches and builds your project’s dependencies
37
31
\item Invokes rustc or another build tool with the correct parameters
38
32
to build your project
33
+ \item Has built-in support for cross-compilation
39
34
\end {itemize }
40
35
\end {frame }
41
36
\begin {frame }[fragile]{Cargo -- Create a New Project}
@@ -101,7 +96,7 @@ \subsection{Cargo, Rust's Package Manager}
101
96
\end {frame}
102
97
103
98
\begin {frame}[fragile,c]{Cargo -- Testing}
104
- Rust has integrated unit testing\footnote {\url {https://doc.rust-lang.org/book/testing.html}}
99
+ Rust has integrated unit testing\footnote {\url {https://doc.rust-lang.org/book/ch11-00- testing.html}}
105
100
106
101
\begin {minted}{rust}
107
102
#[test]
0 commit comments