Merge branch 'jon/fix/docs-rs-build'

This commit is contained in:
Jon Häggblad
2023-03-08 09:37:31 +01:00
4 changed files with 9 additions and 4 deletions
Generated
+1 -1
View File
@@ -4004,7 +4004,7 @@ dependencies = [
[[package]]
name = "nym-vesting-contract"
version = "1.2.0-pre.0"
version = "1.2.0-pre.1"
dependencies = [
"cosmwasm-std",
"cw-storage-plus",
+6 -1
View File
@@ -4,5 +4,10 @@
use vergen::{vergen, Config};
fn main() {
vergen(Config::default()).expect("failed to extract build metadata")
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");
}
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "nym-vesting-contract"
version = "1.2.0-pre.0"
version = "1.2.0-pre.1"
description = "Nym vesting contract"
edition = { workspace = true }
authors = { workspace = true }
+1 -1
View File
@@ -9,5 +9,5 @@ fn main() {
// 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::default()).expect("failed to extract build metadata")
vergen(config).expect("failed to extract build metadata")
}