Skip to content
/ rustle Public

Install a Cargo application from source without a preexisting Rust installation

Notifications You must be signed in to change notification settings

brson/rustle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

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

Projects that are likely compatible

With the power of multirust

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.

Future work

  • Install libraries as well
  • Deal with native dependencies
  • Windows compatibility
  • Install from crates.io
  • Reduce spew

About

Install a Cargo application from source without a preexisting Rust installation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages