package octez-libs

  1. Overview
  2. Docs
A package that contains multiple base libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13

doc/octez-libs.version/Tezos_version/Version/index.html

Module Tezos_version.VersionSource

Version information.

This module provides the current version number.

Sourcetype additional_info = Tezos_version_parser.additional_info =
  1. | Dev
  2. | RC of int
  3. | RC_dev of int
  4. | Release

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.

Sourceval string_of_additional_info : additional_info -> string

Convert additional version information to a string.

The result is a string of the form "+dev", "~rcX", "~rcX+dev" or "".

Sourcetype t = Tezos_version_parser.t = {
  1. major : int;
  2. minor : int;
  3. 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.

Sourceval to_string : t -> string

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"
Sourceval pp : Format.formatter -> t -> unit

Version printer.

pp f x prints to_string x in f

Sourceval parse_version : string -> t option
OCaml

Innovation. Community. Security.