From e3e0718e59810592875e71d13db1fcb636208963 Mon Sep 17 00:00:00 2001 From: Giovanni Bajo Date: Tue, 25 Dec 2018 11:06:30 +0100 Subject: [PATCH] Switch to docmatic for testing README. Similar to skpetic, but it does not add itself as a build dependency, which means that all downstream users of LZ4 don't need to build skeptic (and all its dependencies). See https://github.com/budziq/rust-skeptic/issues/60. --- Cargo.toml | 6 +----- build.rs | 5 ----- tests/docmatic.rs | 6 ++++++ tests/skeptic.rs | 1 - 4 files changed, 7 insertions(+), 11 deletions(-) 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 a2f26d3cb..b8d144666 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,6 @@ license = "MIT" version = "1.23.1" readme = "README.md" authors = [ "Jens Heyens ", "Artem V. Navrotskiy " ] -build = "build.rs" description = "Rust LZ4 bindings library." repository = "https://github.com/bozaro/lz4-rs" documentation = "https://bozaro.github.io/lz4-rs/lz4/" @@ -20,7 +19,4 @@ lz4-sys = { path = "lz4-sys", version = "1.8.3" } [dev-dependencies] rand = "0.6.1" -skeptic = "0.13.3" - -[build-dependencies] -skeptic = "0.13.3" +docmatic = "0.1" diff --git a/build.rs b/build.rs deleted file mode 100644 index a780b3d35..000000000 --- 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 000000000..881d5729e --- /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 ff46c9c01..000000000 --- a/tests/skeptic.rs +++ /dev/null @@ -1 +0,0 @@ -include!(concat!(env!("OUT_DIR"), "/skeptic-tests.rs"));