diff --git a/.gitignore b/.gitignore index 03265b2..cc776d4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ target Cargo.lock .env mastodon-data.toml +libtest.rmeta diff --git a/Cargo.toml b/Cargo.toml index a6f9f32..8366ce3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,5 +28,11 @@ features = ["serde"] default-features = [] all = ["toml"] +[build-dependencies] +skeptic = "0.13.3" + +[dev-dependencies] +skeptic = "0.13.3" + [package.metadata.docs.rs] features = ["all"] diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..a780b3d --- /dev/null +++ b/build.rs @@ -0,0 +1,5 @@ +extern crate skeptic; + +fn main() { + skeptic::generate_doc_tests(&["README.md"]); +} diff --git a/tests/skeptic.rs b/tests/skeptic.rs new file mode 100644 index 0000000..ff46c9c --- /dev/null +++ b/tests/skeptic.rs @@ -0,0 +1 @@ +include!(concat!(env!("OUT_DIR"), "/skeptic-tests.rs"));