From 166fef238329927fb5bed2245fbf4e60ea1948db Mon Sep 17 00:00:00 2001 From: Xavier Brinon Date: Sun, 19 Nov 2023 17:25:30 +0000 Subject: [PATCH] install rustup --- .gitignore | 2 ++ README.md | 3 --- README.org | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 3 deletions(-) delete mode 100644 README.md create mode 100644 README.org diff --git a/.gitignore b/.gitignore index 3ca43ae..b0add84 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,5 @@ Cargo.lock # MSVC Windows builds of rustc generate these, which store debugging information *.pdb +# Org mode autosaved +*~ diff --git a/README.md b/README.md deleted file mode 100644 index fd4875e..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Rust_Quickstart - -https://developer.fermyon.com/spin/v2/quickstart \ No newline at end of file diff --git a/README.org b/README.org new file mode 100644 index 0000000..2264594 --- /dev/null +++ b/README.org @@ -0,0 +1,50 @@ +#+title: Rust Quickstart +#+date:[2023-11-19 Sun] +#+author: HaQadosch +#+startup: indent +#+note: based on https://developer.fermyon.com/spin/v2/quickstart +#+link: article https://developer.fermyon.com/spin/v2/quickstart + +* Org shortcuts +** Feetnotes[fn:1] +- create footnote :: ~C-c C-x f~ +- jump to the footnote ref :: ~C-c C-c~ +* Instaling Rust +Looking at the [[https://www.rust-lang.org/learn/get-started][get-started doc]], +let's use ~rustup~ +#+description: installing rust and libs using rustup +#+name: install rustup +#+begin_src shell + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +#+end_src + +Checking if the install went ok +#+description: running version and upgrade to confirm install is ok +#+name: confirm install +#+begin_src shell + rustup --version + rustup upgrade +#+end_src + +#+RESULTS: confirm install +| rustup 1.26.0 (5af9b9484 2023-04-05) +| info: This is the version for the rustup toolchain manager, not the rustc compiler. +| info: The currently active `rustc` version is `rustc 1.74.0 (79e9716c9 2023-11-13)` +| info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu' +| info: checking for self-update +| +| stable-x86_64-unknown-linux-gnu unchanged - rustc 1.74.0 (79e9716c9 2023-11-13) +| +| info: cleaning up downloads & tmp directories + + +Ensure cargo, the package manager is also installed +#+name: confirm cargo installed +#+begin_src shell + cargo --version +#+end_src + +#+RESULTS: confirm cargo installed +| cargo 1.74.0 (ecb9851af 2023-10-18) +* Rust mode for emacs +Woohoo https://github.com/rust-lang/rust-mode