nym-bin-common 0.6.0

Common code for nym binaries
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
// SPDX-License-Identifier: Apache-2.0

use vergen::{vergen, Config};

fn main() {
    let mut config = Config::default();
    if std::env::var("DOCS_RS").is_ok() {
        // If we don't have access to git information, such as in a docs.rs build, don't error
        *config.git_mut().skip_if_error_mut() = true;
    }
    vergen(config).expect("failed to extract build metadata");
}