package octez-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a
doc/octez-libs.version/Tezos_version/Version/index.html
Module Tezos_version.Version
Source
Version information.
This module provides the current version number.
Additional version information.
Dev
means "Development Version". All non-release branches should use this.
RC
means "Release Candidate". For each release, the first release candidate has number 1.
RC_dev
means "Release Candidate in development". This is a release branch where the release candidate tag is not associated to the HEAD of the branch.
Release
means "no additional information". This is an actual released version. No additional info is printed.
Convert additional version information to a string.
The result is a string of the form "+dev"
, "~rcX"
, "~rcX+dev"
or ""
.
type t = Tezos_version_parser.t = {
major : int;
minor : int;
additional_info : additional_info;
}
Version information.
Major versions include significant new features and are usually released in new branches which start from master.
Minor versions include mostly bug fixes and are usually released in branches which start from the previous release. When the major version is incremented, the minor version is reset to 0.
Convert a version to a string.
Examples:
to_string { major = 7; minor = 0; additional_info = Release } = "7.0"
to_string { major = 7; minor = 0; additional_info = Dev } = "7.0+dev"
to_string { major = 7; minor = 0; additional_info = RC 1 } = "7.0~rc1"
to_string { major = 7; minor = 0; additional_info = RC_dev 1 } = "7.0~rc1+dev"
Version printer.
pp f x
prints to_string x
in f