One-line installation of Rust applications.
Need to show your friends that Rust application you made, but your friends don't Rust? That's when you need to rustle.
If your Cargo crate produces static binaries then this script can install it in one line. It downloads the Rust nightly, builds your application, then packages and installs it.
Install a crate:
curl -sf https://raw.githubusercontent.com/brson/rustle/master/rustle.sh | sh -s -- https://github.com/ogham/exa
exa
Then to uninstall:
sudo /usr/local/lib/rustle/uninstall.sh --components=exa
or more compactly:
sudo /usr/local/lib/rustle/uninstall.sh
which will uninstall everything installed by rustle.
If the project doesn't build on the current nightly, then it's
possible to specify other revisions with the --toolchain
flag,
which accepts the same values as multirust.
curl -sf https://raw.githubusercontent.com/brson/rustle/master/rustle.sh | sh -s -- https://github.com/gchp/iota --toolchain nightly-2015-02-19
iota
- https://github.com/gchp/iota. A text editor.
- https://github.com/ogham/exa. An alternative to ls.
- https://github.com/BurntSushi/xsv. A fast CSV toolkit.
rustle uses multirust to acquire Rust. If it detects that multirust is already installed then it will use the available copy, which can greatly reduce installation times by reusing multirust's toolchain cache. If multirust is not already installed then rustle will download and install it to a temporary location.
- Install libraries as well
- Deal with native dependencies
- Windows compatibility
- Install from crates.io
- Reduce spew