Sha256: a72f374466896cfa6d47f1c823745fa213956b730ee9b20c7f7a2729d6c873b6

Contents?: true

Size: 336 Bytes

Versions: 8

Compression:

Stored size: 336 Bytes

Contents

use std::process::Command;
use std::str;

fn main() {
    let git_rev = match Command::new("git").args(["rev-parse", "HEAD"]).output() {
        Ok(output) => str::from_utf8(&output.stdout).unwrap().trim().to_string(),
        Err(_) => env!("CARGO_PKG_VERSION").to_string(),
    };
    println!("cargo:rustc-env=GIT_REV={git_rev}");
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wasmtime-30.0.2 ./ext/cargo-vendor/wasmtime-cache-30.0.2/build.rs
wasmtime-29.0.0 ./ext/cargo-vendor/wasmtime-cache-29.0.0/build.rs
wasmtime-28.0.0 ./ext/cargo-vendor/wasmtime-cache-28.0.0/build.rs
wasmtime-27.0.0 ./ext/cargo-vendor/wasmtime-cache-27.0.0/build.rs
wasmtime-26.0.0 ./ext/cargo-vendor/wasmtime-cache-26.0.0/build.rs
wasmtime-25.0.2 ./ext/cargo-vendor/wasmtime-cache-25.0.2/build.rs
wasmtime-25.0.1 ./ext/cargo-vendor/wasmtime-cache-25.0.1/build.rs
wasmtime-25.0.0 ./ext/cargo-vendor/wasmtime-cache-25.0.0/build.rs