4 ms·
I have a small question : I have installed 1.4 through rustup.sh. What is the clean way to upgrade to 1.5 ? I don't think there is some kind of 'rustup.sh upgr
by seren 11y ago
I have a small question : I have installed 1.4 through rustup.sh.
What is the clean way to upgrade to 1.5 ? I don't think there is some kind of 'rustup.sh upgrade' Delete 1.4 & reinstall ? Or downloading rustup 1.5 will apply a clean install on the existing one ?
- steveklabnik 11y agoRun rustup.sh again, and it will Just Work. (If not, that's a bug.) If you want to have multiple versions installed at the same time, https://github.com/brson/multirust https://github.com/brson/multirust is super cool. Generally speaking, installation is something we're working on: working with Linux package maintainers, rolling rustup and multirust together and making them work well cross-platform, etc.
- jumpwah 11y agoIt's also easy to have multiple versions installed using nix.
- ones_and_zeros 11y agoAny plans to offer official Rust Docker images? Or is this it? https://hub.docker.com/r/jimmycuadra/rust/ https://hub.docker.com/r/jimmycuadra/rust/
- steveklabnik 11y agoThere aren't any plans at the moment, no.
- lambda 11y agoWhat benefit would Docker images have over the existing upstream distribution or distro packaging? The Rust compiler doesn't have any particularly complicated dependencies, either installing the binaries directly from rust-lang.org or installing packages from your distro (if your distro has packages yet) should work fine. Container images are great for daemons with possibly complicated dependency sets that might have conflicting version requirements with other packages and can benefit from isolation from other packages that containerization gives, but seem like a pretty heavyweight solution for just installing a compiler.
- Drdrdrq 11y agoOne benefit: one could install latest version of Rust on any distribution. Debian stable for instance usually lags behind (with good reason, but still...). I imagine it is mostly useful for checking out Rust though, not for normal use.
- lambda 11y agoThe installer from https://www.rust-lang.org https://www.rust-lang.org works fine on Debian stable. Right now, you can just use the upstream rustup.sh script for platforms that don't yet have it packaged (like Debian stable), or install from your distro for those that do (or use rustup.sh on those as well if you like). What I'm not seeing is the value of a Docker image. Rust doesn't have much in the way of runtime dependencies, which is where the value of a container generally comes in. I don't know of a platform where Docker image would work but rustup.sh would not.
- nitrogen 11y agoI'd attribute it to IMO bad devops habits encouraged by Docker. It's too easy in Docker to depend on someone's unofficial image ("FROM rustxyz" vs. "FROM debian + download deps + install rust"). Having official images would at least reduce the number of people building their infrastructure on unverified/unofficial images.
- Drdrdrq 11y agoSo you think running some script on my machine is preferable to running a container? If I don't like having Rust around, with containers I can just remove it. With script - yeah, maybe, with some digging for correct parameters and assuming it cleans up after itself properly (which is far from trivial). Packages are of course preferable if available and up-to-date.
- steveklabnik 11y agorustup.sh has an --uninstall flag that should remove everything cleanly.
- e12e 11y agoStrongly recommend multirust. It can eat a bit of space if you end up with both stable, beta and nightly installed (but that can still be a good idea -- obviously lots of new projects will experiment with some new features). But multirust takes a lot of cues from other similar tools for sandboxing. I just did: $ multirust update $ multirust show-default multirust: default toolchain: stable multirust: default location: (...) rustc 1.5.0 (3d7cd77e4 2015-12-04) cargo 0.6.0-nightly (e1ed995 2015-10-22) $ multirust list-toolchains beta nightly stable $ du -hs ~/.multirust/ 996M /home/e12e/.multirust/
- eoi 11y agoAlso worth noting is multirust-rs, a reimplementation of multirust in Rust, which notably adds Windows support. I haven't tried anything fancy with it yet but so far it just works. https://github.com/Diggsey/multirust-rs https://github.com/Diggsey/multirust-rs
- steveklabnik 11y agoThe intention is to unify this, multirust, and rustup.sh. It will probably just be branded "rustup."
- toqueteos 11y agoThank you so much for posting this. I was expecting something like this to pop but never tried searching.
- hatsunearu 11y agorustup.sh is really freaking awesome. I was shocked at how insane it is to set up Go when I peeped at my friend installing it. Never heard of programming but you still want to compile a project? Step 1: run rustup.sh (curl -sSf https://static.rust-lang.org/rustup.sh https://static.rust-lang.org/rustup.sh | sh) Step 2: clone the repo of the project or your regional equivalent Step 3: cargo build --release (or now with the new cargo install feature, cargo install) Step 4: Enjoy