mirror of
https://github.com/rust-lang-nursery/rust-cookbook
synced 2024-11-28 14:20:19 +00:00
14 lines
356 B
Rust
14 lines
356 B
Rust
extern crate skeptic;
|
|
|
|
use std::fs;
|
|
|
|
fn main() {
|
|
let paths = fs::read_dir("./src/").unwrap()
|
|
// convert paths to Strings
|
|
.map(|p| p.unwrap().path().to_str().unwrap().to_string())
|
|
// only compile markdown files
|
|
.filter(|p| p.ends_with(".md"))
|
|
.collect::<Vec<_>>();
|
|
|
|
skeptic::generate_doc_tests(&paths[..]);
|
|
}
|