mirror of
https://github.com/actix/actix-web.git
synced 2024-11-18 15:41:17 +00:00
19 lines
370 B
Rust
19 lines
370 B
Rust
|
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() {
|
||
|
}
|