diff --git a/installation.md b/installation.md index 99c6dd18b5dac7232b4ab62d3d677305d0eb15a2..2b2ff25e20f0102b8f005687f024cdd72d909546 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> +::: +:::::::::::::: + +