You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I wanted to get rust working to the point of "hello world".
So far so good. I am reading the official rust book.
It shows a command to install rust on the commandline, via a pipe.
This is also fine.
The command also works for me:
curl -sSf https://static.rust-lang.org/rustup.sh | sh
However, while I am not at all a newcomer to Linux, I am a newcomer to
Rust. I know that I will set up my system in some weeks so I may have to
do the command again. Now I am aware that I may be able to back things
up etc... but the problem is that the typical Linux way to install anything is
not the way that I tend to work. I tend to use AppDirs on GoboLinux;
without boring you with details, things will be installed into /Programs/NAME/VERSION
so in this case for Rust it will be /Programs/Rust/ (not sure which version).
I have found that I usually can not understand shell scripts so there is no
way for me to really dig into what the shell script is doing. I automate the
process of compiling from source via my own ruby scripts - a simple URL
is usually enough. Or if no URL and no tarball works, my scripts work
fine with svn, git etc... too. But shell scripts scare me.
To finish this very lengthy introduction :)
What I would like to have is that the book tutorial, which is very good by the
way, also provides an oldschool way to download rust itself via wget. For
this, some URL would be helpful.
In order for this to work, it would be nice if the book itself can provide
the URL directly:
Note that I am writing this here BEFORE I am searching for the URL.
And most likely, some google-fu will find it anyway but it is one step
that could be given in the book itself, which would be convenient
perhaps for other linux users who, despite all the simplifications,
still are quite advanced IMO.
Feel free to close this at any time. Thanks for reading.
The text was updated successfully, but these errors were encountered:
So this repo is for a work-in-progress rewrite of the book that you can read at http://rust-lang.github.io/book/. It has improvements over the current book at https://doc.rust-lang.org/book/, but since it's not as comprehensive yet, we haven't been recommending it.
One thing that has been improved is that https://www.rustup.rs/ is now the recommended way to install rust, over rustup.sh. We've updated the instructions here (this repo is for a reworking of the book), but you've pointed out that we should update the current book too :)
Another improvement that could be made in both places is that we really should be linking to https://www.rust-lang.org/install.html more generally than just under the Windows installation instructions. That page contains a link to the latest stable versions to download, which, if I understand correctly, is what you're looking for.
Our aim with this version of the book is to cover the most common, best practice ways of using Rust, so we likely will not be adding the exact URLs to download the tarballs in the book itself, but we could certainly say something like "For more custom installations, take a look at https://www.rust-lang.org/install.html".
Hello Rust people.
Today I wanted to get rust working to the point of "hello world".
So far so good. I am reading the official rust book.
It shows a command to install rust on the commandline, via a pipe.
This is also fine.
The command also works for me:
However, while I am not at all a newcomer to Linux, I am a newcomer to
Rust. I know that I will set up my system in some weeks so I may have to
do the command again. Now I am aware that I may be able to back things
up etc... but the problem is that the typical Linux way to install anything is
not the way that I tend to work. I tend to use AppDirs on GoboLinux;
without boring you with details, things will be installed into /Programs/NAME/VERSION
so in this case for Rust it will be /Programs/Rust/ (not sure which version).
I have found that I usually can not understand shell scripts so there is no
way for me to really dig into what the shell script is doing. I automate the
process of compiling from source via my own ruby scripts - a simple URL
is usually enough. Or if no URL and no tarball works, my scripts work
fine with svn, git etc... too. But shell scripts scare me.
To finish this very lengthy introduction :)
What I would like to have is that the book tutorial, which is very good by the
way, also provides an oldschool way to download rust itself via wget. For
this, some URL would be helpful.
In order for this to work, it would be nice if the book itself can provide
the URL directly:
https://doc.rust-lang.org/book/getting-started.html
Right at the part "Installing on Linux".
Note that I am writing this here BEFORE I am searching for the URL.
And most likely, some google-fu will find it anyway but it is one step
that could be given in the book itself, which would be convenient
perhaps for other linux users who, despite all the simplifications,
still are quite advanced IMO.
Feel free to close this at any time. Thanks for reading.
The text was updated successfully, but these errors were encountered: