12345678910111213141516171819202122232425(**************************************************************************)(* *)(* OCamlFormat *)(* *)(* Copyright (c) Facebook, Inc. and its affiliates. *)(* *)(* This source code is licensed under the MIT license found in *)(* the LICENSE file in the root directory of this source tree. *)(* *)(**************************************************************************)typet={major:int;minor:int;patch:intoption}letmake~major~minor~patch={major;minor;patch}letto_string=function|{major;minor;patch=None}->Format.sprintf"%i.%i"majorminor|{major;minor;patch=Somepatch}->Format.sprintf"%i.%i.%i"majorminorpatchletppfsv=Format.fprintffs"%s"(to_stringv)letcurrent=letopenBuild_info.V1inversion()|>Option.value_map~f:Version.to_string~default:"unknown"