#cargo #subcommand #multi

app cargo-multi

Extends cargo to run the given command on multiple crates similar to ‘git multi’

15 releases (5 breaking)

Uses old Rust 2015

0.5.0 Nov 5, 2016
0.4.5 Jun 18, 2016
0.4.4 May 13, 2016
0.4.1 Feb 25, 2016

#8 in #multi

Download history 9/week @ 2021-08-07 29/week @ 2021-08-14 56/week @ 2021-08-21 38/week @ 2021-08-28 32/week @ 2021-09-04 36/week @ 2021-09-11 35/week @ 2021-09-18 52/week @ 2021-09-25 28/week @ 2021-10-02 11/week @ 2021-10-09 28/week @ 2021-10-16 20/week @ 2021-10-23 37/week @ 2021-10-30 63/week @ 2021-11-06 11/week @ 2021-11-13 8/week @ 2021-11-20

202 downloads per month

Apache-2.0/MIT

8KB
107 lines

cargo-multi

Crates.io Coverage Status

GitLab CI: master: build status develop: build status

Travis: master: Build Status develop: Build Status

Extends cargo to execute the given command on multiple crates. Inspired by git multi. First cargo-multi checks current directory for cargo workspaces and if found executes a given command in each workspace. Alternatively cargo-multi executes a given command in each crate found in the current directory.

Installation

Use cargo to install this subcommand

cargo install cargo-multi

Usage

Run cargo multi <cargosubcommand> in the directory where you keep your crates.

cargo multi update
cargo multi build
cargo multi test

Example

$ cargo multi update
----------------------
Executing cargo update
----------------------
cargo:
        Updating registry `https://github.com/rust-lang/crates.io-index`
        Updating git2 v0.3.5 -> v0.3.4
        Removing libgit2-sys v0.4.0
        Updating nom v1.2.0 -> v1.2.1
        Updating num_cpus v0.2.10 -> v0.2.11
        Updating regex v0.1.52 -> v0.1.54
        Updating regex-syntax v0.2.3 -> v0.2.5
        Updating tar v0.4.3 -> v0.4.4
        Removing unicode-bidi v0.2.3
        Removing unicode-normalization v0.1.2
        Removing url v0.5.5

cargo-multi:
        Updating registry `https://github.com/rust-lang/crates.io-index`

elm:
        Updating registry `https://github.com/rust-lang/crates.io-index`

gitlab-rs:
        Updating registry `https://github.com/rust-lang/crates.io-index`

hyper:
        Updating registry `https://github.com/rust-lang/crates.io-index`
        Updating num_cpus v0.2.10 -> v0.2.11
        Updating regex v0.1.52 -> v0.1.54
        Updating regex-syntax v0.2.3 -> v0.2.5
        Updating serde v0.6.14 -> v0.6.15
        Updating unicase v1.2.1 -> v1.3.0

json:
        Updating registry `https://github.com/rust-lang/crates.io-index`
        Updating serde v0.6.14 -> v0.6.15

rass:
        Updating registry `https://github.com/rust-lang/crates.io-index`

requests-rs:
        Updating registry `https://github.com/rust-lang/crates.io-index`
        Updating num_cpus v0.2.10 -> v0.2.11
        Updating serde v0.6.14 -> v0.6.15
        Updating unicase v1.2.1 -> v1.3.0

syncthing-rs:
        Updating registry `https://github.com/rust-lang/crates.io-index`
        Updating regex v0.1.53 -> v0.1.54
        Updating regex-syntax v0.2.4 -> v0.2.5

trust:
        Updating registry `https://github.com/rust-lang/crates.io-index`
        Removing aho-corasick v0.5.1
        Removing docopt v0.6.78
        Removing memchr v0.1.10
        Removing regex v0.1.54
        Removing regex-syntax v0.2.5
        Removing rustc-serialize v0.3.18
        Removing strsim v0.3.0
        Removing utf8-ranges v0.1.3

Dependencies

~1.5MB
~26K SLoC

BX