#cargo #cargo-toml #check #determine #compatible #whether #stdx

app cargo-stdx-check

The stdx-check tool determines whether any given crate is 'compatible' with stdx

3 releases

Uses old Rust 2015

0.1.2 Jul 4, 2017
0.1.1 Jul 2, 2017
0.1.0 Jun 25, 2017

#714 in Cargo plugins

MIT license

10KB
214 lines

cargo-stdx-check

Build Status Latest Version

A cargo custom command to test crates against stdx.

Installation

Install cargo-stdx-check with

cargo install cargo-stdx-check

Run as cargo custom command

Once installed, you can run cargo-stdx-check as a cargo custom commmand. In your crate, or any crate you want to check run

cargo stdx-check

cargo-stdx-check will perform the following steps:

  • Backup the Cargo.toml and Cargo.lock files as Cargo.toml.bk and Cargo.lock.bk
  • Add stdx as a dependency to Cargo.toml (from its git repository, not from crates.io)
  • Run cargo test
  • Check for duplicates of dependencies in Cargo.lock

Note that with the current version of stdx the step cargo test will always fail, because it requires a version of the chrono crate that it cannot find.

Options

Help

cargo stdx-check --help
cargo stdx-check -h

cargo test only

cargo stdx-check test

Check for duplicates only

cargo stdx-check dupes

Specify stdx version

To specify a version of stdx from crates.io, run

cargo stdx-check --stdxversion <version>

To specify a git repository to load stdx from, run

cargo stdx-check --stdxgit <repository>

Dependencies

~6–12MB
~165K SLoC