cargo-stdx-check

Crates.iocargo-stdx-check
lib.rscargo-stdx-check
version0.1.2
sourcesrc
created_at2017-06-25 21:20:00.000826
updated_at2017-07-04 16:08:07.48813
descriptionThe stdx-check tool determines whether any given crate is 'compatible' with stdx
homepagehttps://github.com/davidpeklak/cargo-stdx-check
repositoryhttps://github.com/davidpeklak/cargo-stdx-check
max_upload_size
id20699
size10,308
David Peklak (davidpeklak)

documentation

README

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>
Commit count: 13

cargo fmt