| 1 |
use cfg_aliases::cfg_aliases; |
| 2 |
|
| 3 |
#[test] |
| 4 |
fn basic_setup() { |
| 5 |
// Same as in the docs. |
| 6 |
// Note that tests build this already, but unfortunately this doesn't catch clippy lints! |
| 7 |
// See https://github.com/rust-lang/rust/issues/56232 |
| 8 |
cfg_aliases! { |
| 9 |
// Platforms |
| 10 |
wasm: { target_arch = "wasm32" }, |
| 11 |
android: { target_os = "android" }, |
| 12 |
macos: { target_os = "macos" }, |
| 13 |
linux: { target_os = "linux" }, |
| 14 |
// Backends |
| 15 |
surfman: { all(unix, feature = "surfman", not(wasm)) }, |
| 16 |
glutin: { all(feature = "glutin", not(wasm)) }, |
| 17 |
wgl: { all(windows, feature = "wgl", not(wasm)) }, |
| 18 |
dummy: { not(any(wasm, glutin, wgl, surfman)) }, |
| 19 |
}; |
| 20 |
} |