Currently, the iceoryx2_bb_elementary::PackageVersion uses the env variables CARGO_PKG_VERSION_{MAJOR|MINOR|PATCH} to acquire the crate version. This is essential, since this number is also stored in every shared memory construct to prevent a communication between incompatible iceoryx2 versions. Sadly, those env variables are not set by Bazel and depend on the deployed environment that does not have to be cargo. Therefore, we need a method to set the iceoryx2 version number in code and ensure that it is consistent with CARGO_PKG_VERSION_** stuff.
Brief feature description
Currently, the
iceoryx2_bb_elementary::PackageVersion
uses the env variablesCARGO_PKG_VERSION_{MAJOR|MINOR|PATCH}
to acquire the crate version. This is essential, since this number is also stored in every shared memory construct to prevent a communication between incompatible iceoryx2 versions. Sadly, those env variables are not set by Bazel and depend on the deployed environment that does not have to be cargo. Therefore, we need a method to set the iceoryx2 version number in code and ensure that it is consistent withCARGO_PKG_VERSION_**
stuff.