rust-cookbook/build.rs

16 lines
299 B
Rust
Raw Normal View History

2017-02-20 19:22:19 +00:00
extern crate skeptic;
2017-02-25 07:52:30 +00:00
use std::fs;
2017-02-20 19:22:19 +00:00
fn main() {
2017-02-25 07:52:30 +00:00
let paths = fs::read_dir("./pages/").unwrap();
for path in paths {
let p = path.unwrap().path();
let s = p.to_str().unwrap();
if s.contains(".md") {
skeptic::generate_doc_tests(&[s])
}
}
2017-02-20 19:22:19 +00:00
}