Debian Codegraph @

third_party/rust/winreg/build.rs

raw
1 fn main() {
2 if std::env::var("CARGO_CFG_WINDOWS").is_err() {
3 eprintln!("error: winreg is only supported on Windows platforms");
4 eprintln!(
5 "help: if your application is multi-platform, use \
6 `[target.'cfg(windows)'.dependencies] winreg = \"...\"`"
7 );
8 eprintln!("help: if your application is only supported on Windows, use `--target x86_64-pc-windows-gnu` or some other windows platform");
9 std::process::exit(1);
10 }
11 }