nimbus-eth2/beacon_chain/version.nim

27 lines
689 B
Nim
Raw Normal View History

when not defined(nimscript):
import times
let copyrights* = "Copyright (c) 2019-" & $(now().utc.year) & " Status Research & Development GmbH"
2019-11-11 14:43:12 +00:00
const
versionMajor* = 0
versionMinor* = 3
versionBuild* = 0
semanticVersion* = 2
# Bump this up every time a breaking change is introduced
# Clients having different semantic versions won't be able
# to join the same testnets.
useInsecureFeatures* = defined(insecure)
gitRevision* = staticExec("git rev-parse --short HEAD")
nimBanner* = staticExec("nim --version")
versionAsStr* =
$versionMajor & "." & $versionMinor & "." & $versionBuild
fullVersionStr* =
versionAsStr & " (" & gitRevision & ")"