Added `build.rs` to produce a compile error when attempting to build on a non-Unix-like system, and clarified support in `readme.md`. Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
5 lines
125 B
Rust
5 lines
125 B
Rust
fn main() {
|
|
#[cfg(not(target_family = "unix"))]
|
|
std::compile_error!("This crate only supports Unix-like targets");
|
|
}
|