From 841a8d075462de9d5c5273a9c4e7ff2cef3178f9 Mon Sep 17 00:00:00 2001 From: Federico Melo Date: Tue, 25 Mar 2025 13:19:46 -0500 Subject: [PATCH 1/4] Update VS Code extension recommendations --- book/chapters/chapter-3-vscode.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/chapters/chapter-3-vscode.adoc b/book/chapters/chapter-3-vscode.adoc index cdb2024..ceb6178 100644 --- a/book/chapters/chapter-3-vscode.adoc +++ b/book/chapters/chapter-3-vscode.adoc @@ -13,9 +13,9 @@ https://code.visualstudio.com/[Visual Studio Code] dominated the JavaScript ecos == Core language setup -There are two primary plugins, *rust* (https://marketplace.visualstudio.com/items?itemName=rust-lang.rust[rust-lang.rust]) and *rust-analyzer* (https://marketplace.visualstudio.com/items?itemName=matklad.rust-analyzer[matklad.rust-analyzer]). They promise similar features but I could never get the *rust* plugin to work reliably. *Rust-analyzer* has been great from day one. +For VS Code, you'll want to install the *rust-analyzer* extension (https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer[rust-lang.rust-analyzer]). This is the official extension for Rust development in VS Code, providing features like code completion, go to definition, and inline hints. -WARNING: The *rust* (https://marketplace.visualstudio.com/items?itemName=rust-lang.rust[rust-lang.rust]) and *rust-analyzer* (https://marketplace.visualstudio.com/items?itemName=matklad.rust-analyzer[matklad.rust-analyzer]) plugins don't work well together. If you are exploring both, make sure you disable one to get a fair view of the other. +NOTE: There used to be an older *rust* extension (https://marketplace.visualstudio.com/items?itemName=rust-lang.rust[rust-lang.rust]) but it has been deprecated in favor of rust-analyzer. If you have the old extension installed, you should uninstall it and switch to rust-analyzer. To install *rust-analyzer*, search for it in the extensions pane or press `Ctrl+Shift+P` then enter: From ffa3baf82ae7bd8d6f0a3da904822645ee3aec01 Mon Sep 17 00:00:00 2001 From: Federico Melo Date: Tue, 25 Mar 2025 13:20:00 -0500 Subject: [PATCH 2/4] Update VS Code extension configurations --- book/chapters/chapter-3-vscode.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/book/chapters/chapter-3-vscode.adoc b/book/chapters/chapter-3-vscode.adoc index ceb6178..4a1d1ee 100644 --- a/book/chapters/chapter-3-vscode.adoc +++ b/book/chapters/chapter-3-vscode.adoc @@ -47,7 +47,8 @@ You can run `cargo clippy` yourself or set rust-analyzer to run `clippy` on save [source,json] ---- { - "rust-analyzer.checkOnSave.command": "clippy" + "rust-analyzer.checkOnSave": true, + "rust-analyzer.check.command": "clippy", } ---- From b6bac59472ac4d868c017a76455c6fcba616b82f Mon Sep 17 00:00:00 2001 From: Federico Melo Date: Tue, 25 Mar 2025 13:23:50 -0500 Subject: [PATCH 3/4] Deprecate better-toml in favor of even-better-toml --- book/chapters/chapter-3-vscode.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/book/chapters/chapter-3-vscode.adoc b/book/chapters/chapter-3-vscode.adoc index 4a1d1ee..8a1ac2b 100644 --- a/book/chapters/chapter-3-vscode.adoc +++ b/book/chapters/chapter-3-vscode.adoc @@ -95,15 +95,15 @@ Install with `Ctrl+Shift+P` then: ext install vadimcn.vscode-lldb ---- -=== https://marketplace.visualstudio.com/items?itemName=bungcip.better-toml[better-toml] +=== https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml[even-better-toml] -https://marketplace.visualstudio.com/items?itemName=bungcip.better-toml[bungcip.better-toml] adds syntax highlighting for TOML files +https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml[even-better-toml] adds syntax highlighting for TOML files Install with `Ctrl+Shift+P` then: [source,sh] ---- -ext install bungcip.better-toml +ext install tamasfe.even-better-toml ---- === https://marketplace.visualstudio.com/items?itemName=serayuzgur.crates[crates] From f1adcf8f9f9a76284b5da4276b6b9e67d7ae155b Mon Sep 17 00:00:00 2001 From: Federico Melo Date: Tue, 25 Mar 2025 13:25:30 -0500 Subject: [PATCH 4/4] Deprecate crates in favor of Dependi --- book/chapters/chapter-3-vscode.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/book/chapters/chapter-3-vscode.adoc b/book/chapters/chapter-3-vscode.adoc index 8a1ac2b..76f60f9 100644 --- a/book/chapters/chapter-3-vscode.adoc +++ b/book/chapters/chapter-3-vscode.adoc @@ -106,9 +106,9 @@ Install with `Ctrl+Shift+P` then: ext install tamasfe.even-better-toml ---- -=== https://marketplace.visualstudio.com/items?itemName=serayuzgur.crates[crates] +=== https://marketplace.visualstudio.com/items?itemName=fill-labs.dependi[dependi] -https://marketplace.visualstudio.com/items?itemName=serayuzgur.crates[serayuzgur.crates] shows you the latest versions of your dependencies and gives you quick access to update them. +https://marketplace.visualstudio.com/items?itemName=fill-labs.dependi[fill-labs.dependi] shows you the latest versions of your dependencies and gives you quick access to update them. image./images/blog/node-to-rust/vs-code-crates.gif[Inline crate versions] @@ -116,7 +116,7 @@ Install with `Ctrl+Shift+P` then: [source,sh] ---- -ext install serayuzgur.crates +ext install fill-labs.dependi ---- === https://marketplace.visualstudio.com/items?itemName=belfz.search-crates-io[search-crates-io]