statsrelay 3.0.1

Swiss army knife for aggregation, filtering, relaying, sharding of statsd, prometheus, and other metrics systems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::env;
use std::path;

fn main() {
    let src = env::var("CARGO_MANIFEST_DIR").unwrap();
    let dst = path::Path::new(&env::var("OUT_DIR").unwrap()).join("built.rs");
    let mut options = built::Options::default();
    options.set_git(true);
    options.set_dependencies(true);
    built::write_built_file_with_opts(&options, src.as_ref(), &dst)
        .expect("Failed to acquire build-time information");
}