showpid 1.0.9

Cross-platform CLI utility to bring a window to foreground by PID (Windows, Linux, macOS)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Build script for showpid
//! Performs platform detection and sets compile-time configuration

fn main() {
    // Print platform information during build
    println!("cargo:rustc-cfg=platform=\"{}\"", std::env::var("TARGET").unwrap());

    // Ensure we only build on supported platforms
    let target = std::env::var("TARGET").unwrap();
    if !(target.contains("windows") || target.contains("linux") || target.contains("apple")) {
        println!(
            "cargo:warning=showpid is designed for Windows, Linux, and macOS. Your target '{}' may not work correctly.",
            target
        );
    }
}