1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-12-18 01:43:58 +01:00
actix-web/build.rs

19 lines
370 B
Rust
Raw Normal View History

2017-10-26 15:12:23 +02:00
extern crate skeptic;
use std::{env, fs};
#[cfg(unix)]
fn main() {
if env::var("USE_SKEPTIC").is_ok() {
// generates doc tests for `README.md`.
skeptic::generate_doc_tests(&["README.md"]);
} else {
let f = env::var("OUT_DIR").unwrap() + "/skeptic-tests.rs";
let _ = fs::File::create(f);
}
}
#[cfg(not(unix))]
fn main() {
}