#![allow(non_snake_case)]
use std::fs;
fn main() {
println!("cargo:rerun-if-changed=Cargo.toml");
println!(
"cargo:rustc-env=CARGO_PKG_VERSION={}",
fs::read_to_string("Cargo.toml")
.expect("Cannot Cargo.toml.")
.lines()
.find(|Line| Line.starts_with("version"))
.expect("Cannot Version.")
.split('=')
.nth(1)
.expect("Cannot nth.")
.trim()
.trim_matches('"')
);
}