tzf-rs 0.4.1

Fast convert longitude,latitude to timezone name.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::env;
use std::process::Command;

fn main() {
    match env::var_os("TZF_RS_BUILD_PB") {
        Some(_) => prost_build::Config::new()
            .out_dir("src/gen/")
            .compile_protos(&["./tzinfo.proto"], &["."])
            .unwrap(),
        None => println!("no need for pb"),
    }

    Command::new("cargo")
        .args(&["fmt", "--", "src/*.rs"])
        .status()
        .expect("cargo fmt failed");
}