2016-09-21 19:50:30 +00:00
|
|
|
#[cfg(target_os = "linux")]
|
|
|
|
|
pub mod os {
|
2018-12-04 10:21:42 +01:00
|
|
|
pub const FAMILY: &str = "unix";
|
|
|
|
|
pub const OS: &str = "linux";
|
|
|
|
|
pub const DLL_PREFIX: &str = "lib";
|
|
|
|
|
pub const DLL_SUFFIX: &str = ".so";
|
|
|
|
|
pub const DLL_EXTENSION: &str = "so";
|
|
|
|
|
pub const EXE_SUFFIX: &str = "";
|
|
|
|
|
pub const EXE_EXTENSION: &str = "";
|
2016-09-21 19:50:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[cfg(target_os = "macos")]
|
|
|
|
|
pub mod os {
|
2018-12-04 10:21:42 +01:00
|
|
|
pub const FAMILY: &str = "unix";
|
|
|
|
|
pub const OS: &str = "macos";
|
|
|
|
|
pub const DLL_PREFIX: &str = "lib";
|
|
|
|
|
pub const DLL_SUFFIX: &str = ".dylib";
|
|
|
|
|
pub const DLL_EXTENSION: &str = "dylib";
|
|
|
|
|
pub const EXE_SUFFIX: &str = "";
|
|
|
|
|
pub const EXE_EXTENSION: &str = "";
|
2016-09-21 19:50:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[cfg(target_os = "ios")]
|
|
|
|
|
pub mod os {
|
2018-12-04 10:21:42 +01:00
|
|
|
pub const FAMILY: &str = "unix";
|
|
|
|
|
pub const OS: &str = "ios";
|
|
|
|
|
pub const DLL_PREFIX: &str = "lib";
|
|
|
|
|
pub const DLL_SUFFIX: &str = ".dylib";
|
|
|
|
|
pub const DLL_EXTENSION: &str = "dylib";
|
|
|
|
|
pub const EXE_SUFFIX: &str = "";
|
|
|
|
|
pub const EXE_EXTENSION: &str = "";
|
2016-09-21 19:50:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[cfg(target_os = "freebsd")]
|
|
|
|
|
pub mod os {
|
2018-12-04 10:21:42 +01:00
|
|
|
pub const FAMILY: &str = "unix";
|
|
|
|
|
pub const OS: &str = "freebsd";
|
|
|
|
|
pub const DLL_PREFIX: &str = "lib";
|
|
|
|
|
pub const DLL_SUFFIX: &str = ".so";
|
|
|
|
|
pub const DLL_EXTENSION: &str = "so";
|
|
|
|
|
pub const EXE_SUFFIX: &str = "";
|
|
|
|
|
pub const EXE_EXTENSION: &str = "";
|
2016-09-21 19:50:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[cfg(target_os = "dragonfly")]
|
|
|
|
|
pub mod os {
|
2018-12-04 10:21:42 +01:00
|
|
|
pub const FAMILY: &str = "unix";
|
|
|
|
|
pub const OS: &str = "dragonfly";
|
|
|
|
|
pub const DLL_PREFIX: &str = "lib";
|
|
|
|
|
pub const DLL_SUFFIX: &str = ".so";
|
|
|
|
|
pub const DLL_EXTENSION: &str = "so";
|
|
|
|
|
pub const EXE_SUFFIX: &str = "";
|
|
|
|
|
pub const EXE_EXTENSION: &str = "";
|
2016-09-21 19:50:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[cfg(target_os = "netbsd")]
|
|
|
|
|
pub mod os {
|
2018-12-04 10:21:42 +01:00
|
|
|
pub const FAMILY: &str = "unix";
|
|
|
|
|
pub const OS: &str = "netbsd";
|
|
|
|
|
pub const DLL_PREFIX: &str = "lib";
|
|
|
|
|
pub const DLL_SUFFIX: &str = ".so";
|
|
|
|
|
pub const DLL_EXTENSION: &str = "so";
|
|
|
|
|
pub const EXE_SUFFIX: &str = "";
|
|
|
|
|
pub const EXE_EXTENSION: &str = "";
|
2016-09-21 19:50:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[cfg(target_os = "openbsd")]
|
|
|
|
|
pub mod os {
|
2018-12-04 10:21:42 +01:00
|
|
|
pub const FAMILY: &str = "unix";
|
|
|
|
|
pub const OS: &str = "openbsd";
|
|
|
|
|
pub const DLL_PREFIX: &str = "lib";
|
|
|
|
|
pub const DLL_SUFFIX: &str = ".so";
|
|
|
|
|
pub const DLL_EXTENSION: &str = "so";
|
|
|
|
|
pub const EXE_SUFFIX: &str = "";
|
|
|
|
|
pub const EXE_EXTENSION: &str = "";
|
2016-09-21 19:50:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[cfg(target_os = "android")]
|
|
|
|
|
pub mod os {
|
2018-12-04 10:21:42 +01:00
|
|
|
pub const FAMILY: &str = "unix";
|
|
|
|
|
pub const OS: &str = "android";
|
|
|
|
|
pub const DLL_PREFIX: &str = "lib";
|
|
|
|
|
pub const DLL_SUFFIX: &str = ".so";
|
|
|
|
|
pub const DLL_EXTENSION: &str = "so";
|
|
|
|
|
pub const EXE_SUFFIX: &str = "";
|
|
|
|
|
pub const EXE_EXTENSION: &str = "";
|
2016-09-21 19:50:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[cfg(target_os = "solaris")]
|
|
|
|
|
pub mod os {
|
2018-12-04 10:21:42 +01:00
|
|
|
pub const FAMILY: &str = "unix";
|
|
|
|
|
pub const OS: &str = "solaris";
|
|
|
|
|
pub const DLL_PREFIX: &str = "lib";
|
|
|
|
|
pub const DLL_SUFFIX: &str = ".so";
|
|
|
|
|
pub const DLL_EXTENSION: &str = "so";
|
|
|
|
|
pub const EXE_SUFFIX: &str = "";
|
|
|
|
|
pub const EXE_EXTENSION: &str = "";
|
2016-09-21 19:50:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[cfg(target_os = "haiku")]
|
2016-10-03 22:29:03 +00:00
|
|
|
pub mod os {
|
2018-12-04 10:21:42 +01:00
|
|
|
pub const FAMILY: &str = "unix";
|
|
|
|
|
pub const OS: &str = "haiku";
|
|
|
|
|
pub const DLL_PREFIX: &str = "lib";
|
|
|
|
|
pub const DLL_SUFFIX: &str = ".so";
|
|
|
|
|
pub const DLL_EXTENSION: &str = "so";
|
|
|
|
|
pub const EXE_SUFFIX: &str = "";
|
|
|
|
|
pub const EXE_EXTENSION: &str = "";
|
2016-09-21 19:50:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[cfg(all(target_os = "emscripten", target_arch = "asmjs"))]
|
2016-10-03 22:29:03 +00:00
|
|
|
pub mod os {
|
2018-12-04 10:21:42 +01:00
|
|
|
pub const FAMILY: &str = "unix";
|
|
|
|
|
pub const OS: &str = "emscripten";
|
|
|
|
|
pub const DLL_PREFIX: &str = "lib";
|
|
|
|
|
pub const DLL_SUFFIX: &str = ".so";
|
|
|
|
|
pub const DLL_EXTENSION: &str = "so";
|
|
|
|
|
pub const EXE_SUFFIX: &str = ".js";
|
|
|
|
|
pub const EXE_EXTENSION: &str = "js";
|
2016-09-21 19:50:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[cfg(all(target_os = "emscripten", target_arch = "wasm32"))]
|
2016-10-03 22:29:03 +00:00
|
|
|
pub mod os {
|
2018-12-04 10:21:42 +01:00
|
|
|
pub const FAMILY: &str = "unix";
|
|
|
|
|
pub const OS: &str = "emscripten";
|
|
|
|
|
pub const DLL_PREFIX: &str = "lib";
|
|
|
|
|
pub const DLL_SUFFIX: &str = ".so";
|
|
|
|
|
pub const DLL_EXTENSION: &str = "so";
|
|
|
|
|
pub const EXE_SUFFIX: &str = ".js";
|
|
|
|
|
pub const EXE_EXTENSION: &str = "js";
|
2016-09-21 19:50:30 +00:00
|
|
|
}
|
2016-10-18 13:43:18 -07:00
|
|
|
|
|
|
|
|
#[cfg(target_os = "fuchsia")]
|
|
|
|
|
pub mod os {
|
2018-12-04 10:21:42 +01:00
|
|
|
pub const FAMILY: &str = "unix";
|
|
|
|
|
pub const OS: &str = "fuchsia";
|
|
|
|
|
pub const DLL_PREFIX: &str = "lib";
|
|
|
|
|
pub const DLL_SUFFIX: &str = ".so";
|
|
|
|
|
pub const DLL_EXTENSION: &str = "so";
|
|
|
|
|
pub const EXE_SUFFIX: &str = "";
|
|
|
|
|
pub const EXE_EXTENSION: &str = "";
|
2016-10-18 13:43:18 -07:00
|
|
|
}
|
2017-08-18 11:50:20 +02:00
|
|
|
|
|
|
|
|
#[cfg(target_os = "l4re")]
|
|
|
|
|
pub mod os {
|
2018-12-04 10:21:42 +01:00
|
|
|
pub const FAMILY: &str = "unix";
|
|
|
|
|
pub const OS: &str = "l4re";
|
|
|
|
|
pub const DLL_PREFIX: &str = "lib";
|
|
|
|
|
pub const DLL_SUFFIX: &str = ".so";
|
|
|
|
|
pub const DLL_EXTENSION: &str = "so";
|
|
|
|
|
pub const EXE_SUFFIX: &str = "";
|
|
|
|
|
pub const EXE_EXTENSION: &str = "";
|
2017-08-18 11:50:20 +02:00
|
|
|
}
|
2018-07-30 15:50:51 +02:00
|
|
|
|
2019-04-07 08:39:54 -06:00
|
|
|
#[cfg(target_os = "redox")]
|
|
|
|
|
pub mod os {
|
|
|
|
|
pub const FAMILY: &str = "unix";
|
|
|
|
|
pub const OS: &str = "redox";
|
|
|
|
|
pub const DLL_PREFIX: &str = "lib";
|
|
|
|
|
pub const DLL_SUFFIX: &str = ".so";
|
|
|
|
|
pub const DLL_EXTENSION: &str = "so";
|
|
|
|
|
pub const EXE_SUFFIX: &str = "";
|
|
|
|
|
pub const EXE_EXTENSION: &str = "";
|
|
|
|
|
}
|