{"id":3425,"date":"2024-03-28T10:48:55","date_gmt":"2024-03-28T10:48:55","guid":{"rendered":"https:\/\/voodoo.business\/?p=3425"},"modified":"2024-11-02T00:42:37","modified_gmt":"2024-11-02T00:42:37","slug":"1-install-rust-with-vscode","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2024\/03\/28\/1-install-rust-with-vscode\/","title":{"rendered":"1- Install RUST with VSCODE"},"content":{"rendered":"\n<p>The official VSCODE extension for rust is called (rust-analyzer) by rust-lang.org<\/p>\n\n\n\n<p>To install rust, All you need is the installer, you can get it from rustup.rs, it might fire up a visual studio installer for the builder if you are running windows&#8230;<\/p>\n\n\n\n<p>So, to check that you have rust installed on your computer, You may want to run the following command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rustc --version<\/pre>\n\n\n\n<p>In my case, it responds with (rustc 1.77.0 (aedd173a2 2024-03-17))<\/p>\n\n\n\n<p>To update rust, you will need to run the commadn<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rustup update<\/pre>\n\n\n\n<p>If you want to create a new rust project you CD into a directory where you want the project to be, and issue the command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cargo new projectname<\/pre>\n\n\n\n<p>Now, you can open the projectname directory in VSCODE to start working on a project (Right click, open terminal, then run the command &#8221; code . &#8220;) the dot means current directory<\/p>\n\n\n\n<p>If at any time you want to update the dependancies in your project, you can simply issue the command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cargo update<\/pre>\n\n\n\n<p>from within the project directory, this should update the cargo.lock file etc&#8230;.<\/p>\n\n\n\n<p>To add libraries to cargo, visit crates.io and you can get the names of the libraries you can add to Cargo.toml<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The official VSCODE extension for rust is called (rust-analyzer) by rust-lang.org To install rust, All you need is the installer, you can get it from rustup.rs, it might fire up a visual studio installer for the builder if you are running windows&#8230; So, to check that you have rust installed on your computer, You may [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[197,160,194],"tags":[],"class_list":["post-3425","post","type-post","status-publish","format-standard","hentry","category-rust","category-software-development","category-vs-code"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/3425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=3425"}],"version-history":[{"count":12,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/3425\/revisions"}],"predecessor-version":[{"id":4101,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/3425\/revisions\/4101"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=3425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=3425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=3425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}