From c0c3a211085f058e8f03f62e0acec6a419981316 Mon Sep 17 00:00:00 2001 From: Bastien Orivel Date: Tue, 8 May 2018 20:37:17 +0200 Subject: [PATCH] Replace skeptic by docmatic This removes quite a few dependencies from assert_cli. ``` Removing bitflags v0.9.1 Removing bitflags v1.0.3 Removing bytecount v0.2.0 Removing cargo_metadata v0.3.3 Adding docmatic v0.1.2 Removing error-chain v0.11.0 Removing fuchsia-zircon v0.3.3 Removing fuchsia-zircon-sys v0.3.3 Removing glob v0.2.11 Removing kernel32-sys v0.2.2 Removing proc-macro2 v0.3.8 Removing pulldown-cmark v0.1.2 Removing quote v0.5.2 Removing rand v0.4.2 Removing remove_dir_all v0.5.1 Removing same-file v0.1.3 Removing semver v0.8.0 Removing semver-parser v0.7.0 Removing serde_derive v1.0.51 Removing skeptic v0.13.2 Removing syn v0.13.7 Removing tempdir v0.3.7 Removing unicode-xid v0.1.0 Removing walkdir v1.0.7 Adding which v2.0.0 Removing winapi v0.2.8 Removing winapi-build v0.1.1 ``` --- Cargo.toml | 6 +----- README.md.skt.md | 0 build.rs | 5 ----- tests/docmatic.rs | 6 ++++++ tests/skeptic.rs | 1 - 5 files changed, 7 insertions(+), 11 deletions(-) delete mode 100644 README.md.skt.md delete mode 100644 build.rs create mode 100644 tests/docmatic.rs delete mode 100644 tests/skeptic.rs diff --git a/Cargo.toml b/Cargo.toml index 46aa92a..21930b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,6 @@ documentation = "http://docs.rs/assert_cli/" readme = "README.md" categories = ["development-tools::testing"] keywords = ["cli", "testing", "assert", "command-line-interface"] -build = "build.rs" [[bin]] name = "assert_fixture" @@ -23,11 +22,8 @@ failure_derive = "0.1" serde_json = "1.0" environment = "0.1" -[build-dependencies] -skeptic = "0.13" - [dev-dependencies] -skeptic = "0.13" +docmatic = "0.1" [badges] travis-ci = { repository = "assert-rs/assert_cli" } diff --git a/README.md.skt.md b/README.md.skt.md deleted file mode 100644 index e69de29..0000000 diff --git a/build.rs b/build.rs deleted file mode 100644 index a780b3d..0000000 --- a/build.rs +++ /dev/null @@ -1,5 +0,0 @@ -extern crate skeptic; - -fn main() { - skeptic::generate_doc_tests(&["README.md"]); -} diff --git a/tests/docmatic.rs b/tests/docmatic.rs new file mode 100644 index 0000000..881d572 --- /dev/null +++ b/tests/docmatic.rs @@ -0,0 +1,6 @@ +extern crate docmatic; + +#[test] +fn test_readme() { + docmatic::assert_file("README.md"); +} diff --git a/tests/skeptic.rs b/tests/skeptic.rs deleted file mode 100644 index ff46c9c..0000000 --- a/tests/skeptic.rs +++ /dev/null @@ -1 +0,0 @@ -include!(concat!(env!("OUT_DIR"), "/skeptic-tests.rs"));