From e44a48de385c1b21b957ea76f7e9b1e7c4c912b3 Mon Sep 17 00:00:00 2001 From: Orestis Malaspinas <orestis.malaspinas@hesge.ch> Date: Thu, 28 Jun 2018 09:02:51 +0200 Subject: [PATCH] ajout mineur installation --- installation.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/installation.md b/installation.md index 99c6dd1..2b2ff25 100644 --- a/installation.md +++ b/installation.md @@ -50,7 +50,7 @@ rustc --help - Dans un fichier `hello_world.rs`{.bash}. - <pre><code class=lang-rust" data-trim="hljs rust"> + <pre><code data-trim="hljs rust" class="lang-rust"> fn main() { // présent dans tout programme Rust println!("Hello, World!"); // macro d'affichage } @@ -96,6 +96,8 @@ $ cargo build --release # compilation avec optimisations Finished release [optimized] target(s) in 0.35s </code></pre> +:::::::::::::: {.columns} +::: {.column width="50%"} - Le fichier `Cargo.toml`{.sh}: <pre><code data-trim="hljs sh"> @@ -106,3 +108,16 @@ authors = ["Your Name you@example.com"] [dependencies] </code></pre> +::: +::: {.column width="50%"} +- Le fichier `Cargo.lock`{.sh}: + +<pre><code data-trim="hljs sh"> +[[package]] +name = "hello_world" +version = "0.1.0" +</code></pre> +::: +:::::::::::::: + + -- GitLab