3 ms·
> You will need to install Rust Am I right in saying Rust can produce executables that can be run without any Rust runtime etc being on the target system? Why
by scandox 5y ago
> You will need to install Rust
Am I right in saying Rust can produce executables that can be run without any Rust runtime etc being on the target system? Why would you need to install Rust in cases like this?
- carlmr 5y agoTo build and install it, you could have a binary release instead of using cargo.
- chrisseaton 5y agoRust is a compiler, so you need to install it to compile this application, which you can then use without Rust. You need an oven to bake a cake but not to eat one.
- georgyo 5y agoJava is both a compiler and a run time. You can ship someone a compiled Java and they will still need the JVM to actually run it. Sometimes you need the oven to bake a cake and eat it to.
- chrisseaton 5y agoWell you can AOT Java to a stand-alone binary too - but none of this is relevant to Rust.
- OJFord 5y agoYes you are, but the author hasn't provided those executables, so you need to produce one for your platform yourself; for which you need to install rust. (Presumably it's deemed not worthwhile providing them while it's unstable/in active pre-1.0 development.)