libpkgx 0.4.0

Install and run `pkgx` packages
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    #[cfg(unix)]
    let dist_url = option_env!("PKGX_DIST_URL").unwrap_or("https://dist.pkgx.dev");
    #[cfg(windows)]
    let dist_url = option_env!("PKGX_DIST_URL").unwrap_or("https://dist.pkgx.dev/v2");
    let default_pantry_tarball_filename = "pantry.tgz";
    let pantry_url =
        option_env!("PKGX_PANTRY_TARBALL_FILENAME").unwrap_or(default_pantry_tarball_filename);

    println!("cargo:rustc-env=PKGX_DIST_URL={dist_url}");
    println!("cargo:rustc-env=PKGX_PANTRY_TARBALL_FILENAME={pantry_url}");
}