Can I use nightly Rust in a Repl?
Rust includes both nightly and stable builds. For an application I'm building I'd like to use nightly builds instead of the stable build (which I think is the default option). Is there a way to do this (I've tried using the
Make a bash repl and then use the terminal like you would on desktop. This might not be possible, but you can see. A common error is that you don't have write access to the disk.
Go search up "Install rust nightly shell".
This is what I found that you can use (not tested):
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs
curl -s https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly # or curl -f -L https://static.rust-lang.org/rustup.sh -O sh rustup.sh --channel=nightly
.replit file in your rust file and then add
run="shell commands" language="rust"
NOTE: Without the correct configuration, your project will not be able to run as it used to.
I would like to help, but I don’t understand. Can you please explain?
@CodeABC123 There are two builds of Rust (a programming language made by Mozilla). In one version of Rust, unstable features (which haven't been tested enough to be stable) are included – the nightly version – while in the other version unstable features are not included – the stable version.