graph-networks-registry 0.6.0

The Graph Networks Registry types and helpers
Documentation
1
2
3
4
5
6
7
8
use std::env;

// injects schema version into the build environment
fn main() {
    let version = env::var("CARGO_PKG_VERSION").unwrap();
    let parts: Vec<&str> = version.split('.').collect();
    println!("cargo:rustc-env=CARGO_PKG_VERSION_MAJOR_MINOR={}_{}", parts[0], parts[1]);
}