steamfetch 0.5.2

neofetch for Steam - Display your Steam stats in terminal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() {
    // Set rpath so the binary looks for Steam API library in the same directory
    // and in ../lib/steamfetch/ (for Homebrew: bin/ -> lib/steamfetch/)
    #[cfg(target_os = "linux")]
    {
        println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN");
        println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN/../lib/steamfetch");
    }

    #[cfg(target_os = "macos")]
    {
        println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path");
        println!("cargo:rustc-link-arg=-Wl,-rpath,@executable_path/../lib/steamfetch");
    }
}