cargo-brew

Crates.iocargo-brew
lib.rscargo-brew
version0.1.4
sourcesrc
created_at2015-11-15 18:04:20.177518
updated_at2016-05-21 10:36:32.950431
descriptionA cargo install wrapper to automatically install binaries into Homebrew.
homepagehttps://github.com/Sean1708/cargo-brew
repositoryhttps://github.com/Sean1708/cargo-brew.git
max_upload_size
id3430
size7,669
Kornel (kornelski)

documentation

README

cargo-brew

Easily integrate cargo install installed binaries into Homebrew!

Installation

Unfortunately you'll have to use cargo install just this once:

$ cargo install cargo-brew --root $(brew --cellar)/cargo-brew/0.1.2
$ brew link cargo-brew

Usage

cargo-brew currently passes all arguments straight through to cargo install and therefore supports all arguments that cargo install does, except for --root since cargo-brew uses that to install things to the right place.

In theory cargo-brew should remove any --root options that you pass but in practice this hasn't been thoroughly tested. At best it'll have no effect but at worst you'll royally screw things up, so just don't bother.

Installing a program is as simple as:

$ cargo brew --git https://github.com/rust-lang-nursery/rustfmt

and uninstalling as simple as:

$ brew uninstall rustfmt

Upgrading

To upgrade cargo-brew, simply cargo brew cargo-brew and cargo-brew will be cargo brewed into the latest version number:

$ cargo brew cargo-brew
Commit count: 27

cargo fmt