Make sure our README example(s) always compile

master
Paul Woolcock 6 years ago
parent 0d8522fe76
commit 80391aebc9
  1. 1
      .gitignore
  2. 6
      Cargo.toml
  3. 5
      build.rs
  4. 1
      tests/skeptic.rs

1
.gitignore vendored

@ -2,3 +2,4 @@ target
Cargo.lock Cargo.lock
.env .env
mastodon-data.toml mastodon-data.toml
libtest.rmeta

@ -28,5 +28,11 @@ features = ["serde"]
default-features = [] default-features = []
all = ["toml"] all = ["toml"]
[build-dependencies]
skeptic = "0.13.3"
[dev-dependencies]
skeptic = "0.13.3"
[package.metadata.docs.rs] [package.metadata.docs.rs]
features = ["all"] features = ["all"]

@ -0,0 +1,5 @@
extern crate skeptic;
fn main() {
skeptic::generate_doc_tests(&["README.md"]);
}

@ -0,0 +1 @@
include!(concat!(env!("OUT_DIR"), "/skeptic-tests.rs"));
Loading…
Cancel
Save