casper-node 0.1.0

The Casper blockchain node
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::env;

use vergen::ConstantsFlags;

fn main() {
    let mut flags = ConstantsFlags::empty();
    flags.toggle(ConstantsFlags::SEMVER_LIGHTWEIGHT);
    flags.toggle(ConstantsFlags::SHA_SHORT);
    flags.toggle(ConstantsFlags::REBUILD_ON_HEAD_CHANGE);
    vergen::generate_cargo_keys(flags).expect("should generate the cargo keys");

    // Make the build profile available to rustc at compile time.
    println!(
        "cargo:rustc-env=NODE_BUILD_PROFILE={}",
        env::var("PROFILE").unwrap()
    );
}